Manuals

 

SetaPDF_Stamper::getPageCount()

Description

class SetaPDF_Stamper extends SetaPDF {
mixed getPageCount ( string $fileName ) }

Returns the page count of the given PDF document.

The parser that is used to get the page count is cached in the stamper object instance and will be used later if it is needed by the stampit-method. If you don't need the parser, just release it from the stamper instance by calling the cleanUp()-method.

Parameters

$fileName

The path to the PDF document.

Return value

The page count or a SetaPDF_Error object if an error occurs.

Version

as of version 1.7