powered by
Compress a pdf file
pdf_compress(input, output = NULL, linearize = FALSE, password = "")
a character vector with the path of the compressed pdf file
path or url to the input pdf file
base path of the output file(s)
enable pdf linearization (streamable pdf)
string with password to open pdf file
pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf") fout <- tempfile() pdf_compress(pdf_file, fout, TRUE, "")
Run the code above in your browser using DataLab