THotPDF.DecodeLoadedJBIG2Stream Method
Provides the DecodeLoadedJBIG2Stream 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 DecodeLoadedJBIG2Stream(AImageStream: THPDFStreamObject;
EncodedData: TStream= nil): TBitmap;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AImageStream | Loaded PDF stream object containing JBIG2 image data |
EncodedData | Optional bytes of the image after every filter that precedes the JBIG2 stage; when omitted, the stored stream is read |
Return value
Bitmap containing the decoded image
Usage notes
- Set THotPDF.UseExternalJBIG2Decoder when the deployment uses an external decoder path
- The caller owns the returned bitmap instance
- 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