THotPDF.ExtractObjectFromStream Method
Provides extract object from stream behaviour for the document import and output workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function ExtractObjectFromStream(StreamIndex, ObjectIndex: Integer): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
StreamIndex | Stream instance used as the source or destination for byte data |
ObjectIndex | Zero-based index or object index used to select an existing item |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the document import and output workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised