C
const char* __stdcall pdfGetLanguage(PPDF IPDF);
BOOL32 __stdcall pdfSetLanguage(PPDF IPDF, const char* ISOTag);
Delphi
function pdfGetLanguage(const IPDF: PPDF): PAnsiChar; stdcall;
function pdfSetLanguage(const IPDF: PPDF; const ISOTag: PAnsiChar): LongBool; stdcall;
Purpose. Get/set the document's /Lang catalog entry (an RFC-3066/BCP-47-style language tag, e.g. "en-US").
Return value. Getter: pointer to the current tag, or nil if unset / IPDF invalid. Setter: True if IPDF is valid.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category
Setters
Exported names
pdfSetLanguage
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.