API referenceCore SDK

pdfGetResolution

Set/get a document-global default resolution (DPI) value.

C
int32_t __stdcall pdfGetResolution(PPDF IPDF);
BOOL32 __stdcall pdfSetResolution(PPDF IPDF, uint32_t Value);
Delphi
function pdfGetResolution(const IPDF: PPDF): Integer; stdcall;
function pdfSetResolution(const IPDF: PPDF; Value: Cardinal): LongBool; stdcall;

Purpose. Set/get a document-global default resolution (DPI) value.

Description. Verified write-only no-op. Stores Value into FResolution (default 150, an explicit DIFF from the classic API's default); this field is never consulted outside its own getter — it does not affect image insertion scaling, page rendering, or any other DPI-sensitive computation in this SDK (per-image resolution is instead tracked and honored per-entry via ResolutionX/ResolutionY on each TLumasPdfImageEntry, set at insertion from the decoded image's own embedded DPI metadata, not from this document-global setting).

Parameters.

ParameterDescription
IPDFDocument handle.
ValueStored but never consulted.

Return value. Getter: the stored value (default 150); 0 if IPDF invalid. Setter: True if IPDF valid.

C# (P/Invoke)

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

Getters

Exported names

pdfGetResolution

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.