pdf_split: Split a pdf file into individual pages

View source: R/qpdf.R

pdf_splitR Documentation

Split a pdf file into individual pages

Description

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 = "")

cpp11qpdf documentation built on April 4, 2025, 4:39 a.m.