Add method for compressing PDFs
HenrikBengtsson opened this issue · 2 comments
HenrikBengtsson commented
Add method for compressing PDFs, which can either be used standalone or as a post processor. Use tools::compactPDF()
for this.
HenrikBengtsson commented
tools::compactPDF(paths)
compresses all PDFs in paths
if length(paths) == 1
, so we need a way to compress/compact a single PDF. This can be done by creating a temporary directory, copying/moving the PDF there and call compactPDF()
.
Also, compactPDF()
also seem to discard compressions that are "not good enough" (at least 10% and 10kB), which may be an unnecessary feature. Not sure if we want to roll our own though.
HenrikBengtsson commented
Added compressPDF()
to R.utils.