Subset a pdf file to a new pdf file containing the selected pages
Examples
pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf")
fout <- tempfile()
pdf_subset(pdf_file, 1, fout, "")
#> [1] "/tmp/RtmpOgvruH/file27fb4109aa299.pdf"