About
The cpp11qpdf
package provides a set of functions to manipulate PDF files using the qpdf
library. It is a fork of qpdf
that uses cpp11
for those that require it for licensing or security purposes.
Installation
You can install the development version of cpp11qpdf like so:
remotes::install_github("pachadotdev/cpp11qpdf")
Example
See the vignette for more examples.
tmpdir <- tempdir()
library(cpp11qpdf)
file <- file.path(Sys.getenv("R_DOC_DIR"), "NEWS.pdf")
pdf_compress(file, file.path(tmpdir, "output.pdf"))
#> [1] "/tmp/RtmpqX9z6s/output.pdf"