API referenceCore SDK

pdfGetPageCoords

Set/get the document's coordinate-system convention

C
BOOL32 __stdcall pdfSetPageCoords(PPDF IPDF, int32_t PageCoords);
int32_t __stdcall pdfGetPageCoords(PPDF IPDF);
Delphi
function pdfSetPageCoords(const IPDF: PPDF; PageCoords: Integer): LongBool; stdcall;
function pdfGetPageCoords(const IPDF: PPDF): Integer; stdcall;

Purpose. Set/get the document's coordinate-system convention (bottom-up PDF-native vs. top-down "visible"/GDI-style coordinates) — the per-document counterpart consulted alongside the gfRealTopDownCoords/ gfRestorePageCoords TGStateFlags bits documented in Line Style, Opacity, and Graphics-State Flags.

Return value. pdfSetPageCoords: True if IPDF valid. pdfGetPageCoords: the current mode; 0 if IPDF invalid.

See also. pdfSetGStateFlags.

C# (P/Invoke)

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

Getters

Exported names

pdfGetPageCoords

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.