API reference › PDF/A & Conformance
pdfAddLGIDictToPage
Attach an /LGI (Legal Government/geospatial Information,
int32_t __stdcall pdfAddLGIDictToPage(PPDF IPDF, const char* DictContent);
int32_t __stdcall pdfAddLGIDictToPageA(PPDF IPDF, const char* DictContent);
int32_t __stdcall pdfAddLGIDictToPageW(PPDF IPDF, const wchar_t* DictContent);
function pdfAddLGIDictToPageA(const IPDF: PPDF; DictContent: PAnsiChar): Integer; stdcall;
function pdfAddLGIDictToPageW(const IPDF: PPDF; DictContent: PWideChar): Integer; stdcall;
Purpose. Attach an /LGI (Legal Government/geospatial Information, an Adobe extension used by GeoPDF-style workflows) dictionary, supplied as a raw pre-formatted PDF dictionary content string, to the current page.
Description. A raw-content-injection API — DictContent is a literal PDF dictionary body string the caller must construct themselves (not a structured parameter set this SDK parses field-by-field). This chapter did not further trace the exact parse/validation the engine applies to DictContent before embedding it.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
DictContent | Raw PDF dictionary body text, caller-constructed. |
Return value. A handle/status code on success; 0/negative on failure.
C# (P/Invoke)
public static extern int pdfAddLGIDictToPageW(IntPtr IPDF, IntPtr DictContent);
public static extern int pdfAddLGIDictToPage(IntPtr IPDF, IntPtr DictContent);
public static extern int pdfAddLGIDictToPageA(IntPtr IPDF, IntPtr DictContent);
Content Creation
pdfAddLGIDictToPageW
pdfAddLGIDictToPage
pdfAddLGIDictToPageA
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.