THotPDF.GetLoadedSummary Method
Scans and extracts key statistical information from the loaded document, including total pages, number of annotations, fonts, images, form fields, and digital signatures.
Declaration
function GetLoadedSummary(out APageCount, AAnnotationCount, AFontCount, AImageCount, AFormFieldCount, ASignatureCount: Integer): Boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
APageCount | Returns the total number of pages in the PDF document. |
AAnnotationCount | Returns the total number of annotations contained in the document. |
AFontCount | Returns the total number of embedded or referenced fonts used in the document. |
AImageCount | Returns the total number of image objects contained in the document. |
AFormFieldCount | Returns the total number of interactive form fields contained in the document. |
ASignatureCount | Returns the number of digital signatures contained in the document. |
AIsEncrypted | Input supplied to GetLoadedSummary |
AHasAcroForm | Input supplied to GetLoadedSummary |
AHasStructureTree | Input supplied to GetLoadedSummary |
Return value
Returns True when the document summary statistics were extracted successfully
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- The returned values help to provide an overall assessment of the document's content complexity before processing or rendering.