int32_t __stdcall pdfGetResolution(PPDF IPDF);
BOOL32 __stdcall pdfSetResolution(PPDF IPDF, uint32_t Value);
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.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Value | Stored but never consulted. |
Return value. Getter: the stored value (default 150); 0 if IPDF invalid. Setter: True if IPDF valid.
C# (P/Invoke)
public static extern int pdfGetResolution(IntPtr IPDF);
Getters
pdfGetResolution
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.