THPDFJBIG2Decoder.LoadRegionFromByteArray Method
Loads region from byte array input into the JBIG2 decoding workflow. Use loaded objects for page copying, form inspection, validation, repair, metadata reuse, or incremental processing
Declaration
Function LoadRegionFromByteArray(ImageData, GlobalData: TJBIG2ByteArray; RegionLeft, RegionTop, RegionWidth, RegionHeight: Integer): Boolean; Overload;
Unit
HPDFJBIG2
Parameters
| Name | Purpose |
|---|---|
ImageData | Raw byte payload embedded or validated by this API |
GlobalData | Raw byte payload embedded or validated by this API |
RegionLeft | Input used by LoadRegionFromByteArray |
RegionTop | Input used by LoadRegionFromByteArray |
RegionWidth | Input used by LoadRegionFromByteArray |
RegionHeight | Input used by LoadRegionFromByteArray |
Return value
Returns a Boolean value
Usage notes
- Use this API in the JBIG2 decoding 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