Declaration
function IEPDFPageCount(const Filename: WideString; const Password: string = ''): integer; overload;
function IEPDFPageCount(Stream: TStream; const Password: string = ''): integer; overload;
Description
Returns the number of pages in a PDF document.
Note:
◼Uses a plug-in such as
PDFium DLL when available
◼If a plug-in is not available, this method only supports uncompressed and unencoded files (i.e. Password cannot be specified).
cnt := IEPDFPageCount( 'C:\Document.pdf' );
ShowMessage( format( 'PDF has %d pages', [ cnt ]));
See Also
◼ImportPagesIntoPDF
◼DeletePagesFromPDF