Compresses a PDF (into a new PDF)
Compresses a PDF (into a new PDF).
## Default S3 method: compressPDF(filename, path=NULL, outFilename=basename(pathname), outPath="compressedPDFs", skip=FALSE, overwrite=FALSE, compression="gs(ebook)+qpdf", ...)
filename, path |
The filename and (optional) path of the PDF to be compressed. |
outFilename, outPath |
The generated PDF. |
skip |
If |
overwrite |
If |
compression |
A |
... |
Additional arguments passed to |
Returns the pathname of the generated PDF.
Henrik Bengtsson
Internally compactPDF
is utilized.
## Not run: pathnameZ <- compressPDF("report.pdf") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.