API referencePDF/A & Conformance

pdfAddLGIDictToPage

Attach an /LGI (Legal Government/geospatial Information,

C
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);
Delphi
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.

ParameterDescription
IPDFDocument handle.
DictContentRaw PDF dictionary body text, caller-constructed.

Return value. A handle/status code on success; 0/negative on failure.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
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);
Area
PDF/A & Conformance
Category

Content Creation

Exported names

pdfAddLGIDictToPageW pdfAddLGIDictToPage pdfAddLGIDictToPageA

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.