THotPDF.AddJBIG2ImageBatch Method
Pre-encodes a bilevel page set and registers ordered JBIG2 image XObjects with shared global data
Declaration
Function AddJBIG2ImageBatch(Const Pages: TJBIG2BatchPageArray;
Out ImageIndexes: THPDFIntegerArray;
Out Statistics: TJBIG2BatchEncodeStatistics;
Const BatchOptions: TJBIG2BatchEncodeOptions): Boolean;
Unit
HPDFDoc
Behavior
- Requires an active output page and PDF 1.4 or later
- Encodes the complete batch before changing the document object graph
- Registers one indirect
/JBIG2Globalsstream used by every returned image XObject - Returns image indexes in input order and reuses the same index for exact duplicate encoded images
- Rejects PDF/A output profiles because those profiles do not permit JBIG2 image compression
Return value
Returns True only when the whole batch is encoded and registered