Skip to contents

Runs pdfcpu.exe to optimize the PDF and reduce its size.

Usage

optimize_pdf(
  pdf_name,
  pdfcpu_path = system.file("bin/pdfcpu.exe", package = "RoundtableReporting")
)

Arguments

pdfcpu_path

Character string, path to pdfcpu executable

provider_name

Character string, name of the provider (used in file naming)

Value

Integer exit code (0 for success, non-zero for failure)

Note

This function requires Typst to be installed on the system

Examples

if (FALSE) { # \dontrun{
optimize_pdf("example")
} # }