Extract pages from a PDF to new PDF(s)

extract_pdf(pdfin, pages, pdfout, prefix = NULL, DryRun = F,
  gscomp = FALSE, bookmarks = NULL)

extractpdf(pdfin, pages, pdfout, prefix = NULL, DryRun = F,
  gscomp = FALSE, bookmarks = NULL)

Arguments

pdfin, pdfout

Path to input and output PDF

pages

Integer vector or list. If named, the names specify output files

prefix

a prefix to add to the start of all output PDF file names

DryRun

Just say what would happen (when TRUE)

gscomp

Compress with ghostscript

bookmarks

Bookmarks info file (pdftk format) that can be used to add bookmarks to the output PDF

See also

Examples

if (FALSE) { aux='/path/to/myfile.aux' pdffile='/path/to/myfile.pdf' figurepages=findfigs(aux) extract_pdf(pdffile,figurepages,prefix='LastAuthor_',gscomp=TRUE) }