Manuals

 

SetaPDF_Merger::getPageCount()

Description

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

Returns the page count of a given PDF document.

Parameters

$fileName

A string that defines the path (relative or absolute) to the document. Only local paths are allowed.

Return Value

The page count, if everything works as expected - an SetaPDF_Error object if an error occurs.