API referenceCore SDK

pdfGetPageLGIDictContent

Manage /LGIDict (geospatial coordinate-system)

C
int32_t __stdcall pdfDeletePageLGIDict(PPDF IPDF, int32_t DictIndex);
const char* __stdcall pdfGetPageLGIDictContentA(PPDF IPDF, int32_t DictIndex);
const wchar_t* __stdcall pdfGetPageLGIDictContentW(PPDF IPDF, int32_t DictIndex);
int32_t __stdcall pdfGetPageLGIDictCount(PPDF IPDF);
Delphi
function pdfDeletePageLGIDict(const IPDF: PPDF; DictIndex: Integer): Integer; stdcall;
function pdfGetPageLGIDictContentA(const IPDF: PPDF; DictIndex: Integer): PAnsiChar; stdcall;
function pdfGetPageLGIDictContentW(const IPDF: PPDF; DictIndex: Integer): PWideChar; stdcall;
function pdfGetPageLGIDictCount(const IPDF: PPDF): Integer; stdcall;

Purpose. Manage /LGIDict (geospatial coordinate-system) dictionaries attached to the current page — a lower-level, raw-content sibling to pdfCreateGeospatialMeasure below (this trio reads/writes the /LGIDict content as opaque text; the measure API instead builds a structured /Measure dictionary).

Return value. pdfDeletePageLGIDict: 1 on success, 0 if DictIndex doesn't resolve. pdfGetPageLGIDictContent: the dict's raw content text, or nil if DictIndex doesn't resolve. pdfGetPageLGIDictCount: the count on the current page; 0 if IPDF invalid.

See also. pdfCreateGeospatialMeasure.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern IntPtr pdfGetPageLGIDictContentW(IntPtr IPDF, int DictIndex);
public static extern IntPtr pdfGetPageLGIDictContent(IntPtr IPDF, int DictIndex);
public static extern IntPtr pdfGetPageLGIDictContentA(IntPtr IPDF, int DictIndex);
Area
Core SDK
Category

Getters

Exported names

pdfGetPageLGIDictContentW pdfGetPageLGIDictContent pdfGetPageLGIDictContentA

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.