pdfSetJPEGQuality
Set/get the JPEG re-encoding quality applied when this SDK
int32_t __stdcall pdfGetJPEGQuality(PPDF IPDF);
BOOL32 __stdcall pdfSetJPEGQuality(PPDF IPDF, int32_t Value);
function pdfGetJPEGQuality(const IPDF: PPDF): Integer; stdcall;
function pdfSetJPEGQuality(const IPDF: PPDF; Value: Integer): LongBool; stdcall;
Purpose. Set/get the JPEG re-encoding quality applied when this SDK re-compresses image data as JPEG (e.g. converting a non-JPEG source image to DCT-encoded output).
Description. Real: FJPEGQuality (default 70, set in the constructor so it "persists across CreateNewPDF" per a source comment) directly drives jpg.CompressionQuality at the JPEG-encode call site. Value outside 1..100 is silently rejected (prior value retained).
Return value. Getter: current quality (default 70); 0 if IPDF invalid. Setter: True if IPDF valid (regardless of whether Value passed the 1..100 range check).
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetJPEGQuality
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.