API referenceRendering & Viewer

rasSetCMapDir

Nominally: point the rasterizer/viewer at an external CJK

C
int32_t __stdcall rasSetCMapDirA(IPGC CachePtr, const char* Path, int32_t Flags);
int32_t __stdcall rasSetCMapDirW(IPGC CachePtr, const wchar_t* Path, int32_t Flags);
Delphi
function rasSetCMapDirA(CachePtr: IPGC; const Path: PAnsiChar; Flags: Integer): Integer; stdcall;
function rasSetCMapDirW(CachePtr: IPGC; const Path: PWideChar; Flags: Integer): Integer; stdcall;

Purpose. Nominally: point the rasterizer/viewer at an external CJK CMap directory for CID-keyed font rendering.

Description — confirmed complete stub, both variants. rasSetCMapDirA and rasSetCMapDirW are each a single line, Result := Integer(0)CachePtr, Path, and Flags are all unread. This SDK's real CMap support (used for actual CID-font text extraction/embedding, CID Fonts, CMaps & Alternate Font Lists) does not depend on an external CMap directory at all — it is entirely self-contained — so this pair exists for ABI compatibility only and has no effect regardless of what Path is supplied.

Parameters.

ParameterDescription
CachePtr, Path, FlagsAll accepted but never read.

Return value. Always 0.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int rasSetCMapDirA(IntPtr CachePtr, [MarshalAs(UnmanagedType.LPStr)] string Path, int Flags);
public static extern int rasSetCMapDirW(IntPtr CachePtr, [MarshalAs(UnmanagedType.LPWStr)] string Path, int Flags);
Area
Rendering & Viewer
Category

Rasterizer/Rendering

Exported names

rasSetCMapDirA rasSetCMapDirW

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.