C
const wchar_t* __stdcall pdfConvToUnicode(PPDF IPDF, const char* AString, int32_t CP);
Delphi
function pdfConvToUnicode(const IPDF: PPDF; const AString: PAnsiChar; CP: Integer): PWideChar; stdcall;
Purpose. Convert an ANSI byte string to Unicode using an explicit codepage CP — a codepage-aware alternative to the CP_ACP-default-only widening seen elsewhere in this SDK's various A-suffixed entry points.
Return value. Pointer to a document-owned transient wide-string buffer; nil if IPDF invalid.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern IntPtr pdfConvToUnicode(IntPtr IPDF, [MarshalAs(UnmanagedType.LPStr)] string AString, int CP);
Area
Core SDK
Category
Conversion
Exported names
pdfConvToUnicode
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.