THotPDF.ResolveLoadedStream Method
Resolves a given PDF object to a stream object, following indirect references automatically and returning the final THPDFStreamObject
Declaration
function ResolveLoadedStream(Obj: THPDFObject): THPDFStreamObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Obj | The PDF object to be parsed, which can be a direct stream object or an indirect reference to a stream |
Return value
Returns the corresponding THPDFStreamObject when resolution succeeds
Usage notes
- When the object passed in is an indirect reference the method follows the reference chain automatically until it reaches the stream, so the caller never dereferences by hand
- The return value is nil when the object chain contains no stream
- The returned stream object reference is managed by the document, and the caller must not free it; the reference becomes immediately invalid after the document is closed