API referenceCore SDK

pdfGetJPEGQuality

Set/get the JPEG re-encoding quality applied when this SDK

C
int32_t __stdcall pdfGetJPEGQuality(PPDF IPDF);
BOOL32 __stdcall pdfSetJPEGQuality(PPDF IPDF, int32_t Value);
Delphi
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)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetJPEGQuality(IntPtr IPDF);
Area
Core SDK
Category

Getters

Exported names

pdfGetJPEGQuality

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.