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 supplied to LoadRegionFromByteArray |
RegionTop | Input supplied to LoadRegionFromByteArray |
RegionWidth | Input supplied to LoadRegionFromByteArray |
RegionHeight | Input supplied to LoadRegionFromByteArray |
Return value
Returns a Boolean value
Usage notes
- Use this API in the JBIG2 decoding workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values