pdf_length: Get the number of pages in a pdf file

View source: R/qpdf.R

pdf_lengthR Documentation

Get the number of pages in a pdf file

Description

Get the number of pages in a pdf file

Usage

pdf_length(input, password = "")

Arguments

input

path or url to the input pdf file

password

string with password to open pdf file

Value

an integer value with the number of pages in the pdf file

Examples

pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf")
pdf_length(pdf_file, "")

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