Please enable JavaScript to view this site.

CopiaFacts™ Reference Manual

Return Count of PDF Pages

CFUTIL PDFPAGECOUNT pathname.pdf [batchname.bat]

This utility returns the pagecount of the specified PDF file as the errorlevel.

If a batch file name is provided, the command:

SET PDFPAGECOUNT=n

will be written to the batch file, where n is the pagecount.  A negative value for the pagecount indicates an error.