THPDFLoadedImageStreamMode Type
Selects whether a loaded image is extracted as stored encoded bytes or as decoded image data
Declaration
THPDFLoadedImageStreamMode= (lismEncoded, lismDecoded);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
lismEncoded | Copy the raw filtered bytes exactly as stored in the PDF, including the original compression |
lismDecoded | Run the stream filter pipeline and write the fully decoded image bytes to the destination |
Usage notes
- Pass a value of this type to THotPDF.ExtractLoadedImageToStream, which defaults to lismEncoded when the parameter is omitted
- Use lismEncoded to pull out the original JPEG, JPX, or other encoded payload untouched, and lismDecoded when the caller needs raw sample data regardless of the stored filter
- Decoded extraction fails (returns False) when the image uses a filter combination the decode pipeline cannot process