powered by
Subset a pdf file to a new pdf file containing the selected pages
pdf_subset(input, pages = 1, output = NULL, password = "")
a character vector with the path of the subsetted pdf file
path or url to the input pdf file
a vector with page numbers to select. Negative numbers means removing those pages (same as R indexing)
base path of the output file(s)
string with password to open pdf file
pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf") fout <- tempfile() pdf_subset(pdf_file, 1, fout, "")
Run the code above in your browser using DataLab