THotPDF.DecodeLoadedJBIG2Stream Method
Provides the DecodeLoadedJBIG2Stream behavior 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 DecodeLoadedJBIG2Stream(AImageStream: THPDFStreamObject;
EncodedData: TStream= nil): TBitmap;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AImageStream | Stream instance used as the source or destination for byte data |
EncodedData | Optional bytes of the image after every filter that precedes the JBIG2 stage; when omitted, the stored stream is read |
Return value
Returns a TBitmap value
Usage notes
- Use this API in the document import and output workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values
- Pass
EncodedDatawhen the caller already holds the partially filtered image bytes, for example after earlier decode stages; leave it nil to let the method read the stored stream itself