Counting PDF pages

Learn how to count pages of a PDF file.

Before you begin

Before you count the pages of a PDF file, you must open a PDF instance. For more information, see Opening, closing, and saving PDF files.

Procedure

Add the Count PDF File Pages (pdfCount) command to your script. This command receives one PDF file at time and returns the page count for that file. Read this command's specification for examples on how to use it.