Learn R Programming

cpp11qpdf (version 1.3.5)

pdf_compress: Compress a pdf file

Description

Compress a pdf file

Usage

pdf_compress(input, output = NULL, linearize = FALSE, password = "")

Value

a character vector with the path of the compressed pdf file

Arguments

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

Examples

Run this code
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