Learn R Programming

cpp11qpdf (version 1.3.5)

pdf_length: Get the number of pages in a pdf file

Description

Get the number of pages in a pdf file

Usage

pdf_length(input, password = "")

Value

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

Arguments

input

path or url to the input pdf file

password

string with password to open pdf file

Examples

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

Run the code above in your browser using DataLab