pdf_compress | R Documentation |
Compress a pdf file
pdf_compress(input, output = NULL, linearize = FALSE, password = "")
input |
path or url to the input pdf file |
output |
base path of the output file(s) |
linearize |
enable pdf linearization (streamable pdf) |
password |
string with password to open pdf file |
a character vector with the path of the compressed pdf file
pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf")
fout <- tempfile()
pdf_compress(pdf_file, fout, TRUE, "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.