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);
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)
public static extern int pdfGetPageLGIDictCount(IntPtr IPDF);
Getters
pdfGetPageLGIDictCount
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.