ImageEn, unit iesettings

TIEGlobalSettings.EmbedPDFFontsAsCID

TIEGlobalSettings.EmbedPDFFontsAsCID


Declaration

property EmbedPDFFontsAsCID: Boolean;


Description

Specifies how fonts are embedded when using the PDFium PlugIn to output text layers to PDF.
When enabled PDFium will embed the font as a CID (Character Identifier) font. CID fonts are used primarily for fonts that contain large character sets such as those needed for CJK (Chinese, Japanese, and Korean) languages or other multi-byte character sets.

If EmbedPDFFontsAsCID = True (Advanced/multilingual usage):
PDFium treats the font as a CID font
The font's internal character mapping is handled using CID codes rather than simple Unicode or ANSI mappings
CID fonts are indexed by glyph IDs (CIDs) instead of Unicode characters
Useful when working with complex scripts or where precise control over character mapping is required (e.g. embedding CJK fonts)

If EmbedPDFFontsAsCID = False (Standard Unicode usage):
PDFium treats the font as a standard font with Unicode encoding
Character codes map directly to Unicode values for simpler use cases
Assumes the font does not require the special handling needed for CID fonts

Default: False


Example

procedure TMainForm.FormCreate(Sender: TObject);
begin
  IEGlobalSettings().EmbedPDFFontsAsCID := True;

  //  Output layers to PDF
  ImageEnView1.IO.SaveToFile( 'D:\test.pdf' );
end;