Learn R Programming

cpp11qpdf (version 1.3.5)

pdf_split: Split a pdf file into individual pages

Description

Split a pdf file into individual pages

Usage

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

Value

a character vector with the paths of the split pdf files

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

Examples

Run this code
# extract some pages
pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf")
fout <- tempfile()
pdf_split(pdf_file, fout, password = "")

Run the code above in your browser using DataLab