THotPDF.GetObjectType Method
Reads from a stream and detects the specific data type of the next PDF object.
Declaration
function GetObjectType(ObjStream: TStream; UseIndirect: boolean): THPDFObjectType;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ObjStream | Object holding the PDF data stream |
UseIndirect | Flag controlling whether indirect objects are resolved |
Return values
Returns the detected PDF object type enumeration value.
Usage
- Call: THotPDF.GetObjectType
- Used when parsing an existing PDF file stream to decide what class to use for instantiating the extracted object.
See also
- THotPDF
- Directory
- Contents