Skip to contents

Split a pdf file into individual pages

Usage

pdf_split(input, output = NULL, password = "")

Arguments

input

path or url to the input pdf file

output

base path of the output file(s)

password

string with password to open pdf file

Value

a character vector with the paths of the split pdf files

Examples

# extract some pages
pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf")
fout <- tempfile()
pdf_split(pdf_file, fout, password = "")
#> [1] "/tmp/RtmpOgvruH/file27fb4ef3830d_1.pdf"
#> [2] "/tmp/RtmpOgvruH/file27fb4ef3830d_2.pdf"