TPDFlibDocumentFont

Data Types

Description

TPDFlibDocumentFont is a record structure that holds detailed properties of a font resource embedded or referenced within a PDF document.

Syntax

Delphi

type TPDFlibDocumentFont = record
    FontID: Integer;
    ObjNum: Integer;
    BaseFont: WideString;
    FontType: Integer;
    Encoding: WideString;
    Embedded: Boolean;
    Subsetted: Boolean;
  end;

Fields

FontIDThe 1-based internal handle of the font, usable with standard font selection methods (e.g. SelectFont).
ObjNumThe raw PDF indirect object number of the font dictionary in the PDF catalog.
BaseFontThe PostScript name of the font (e.g., Helvetica-Bold or TimesNewRomanPSMT).
FontTypeThe type of the font represented as an integer from 1 to 11 (corresponds to type values 1=TrueType, 2=Type1, etc.).
EncodingThe name of the font's character encoding scheme (e.g., WinAnsiEncoding or Identity-H).
EmbeddedIndicates whether the actual font program file is embedded in the PDF document.
SubsettedIndicates whether the font is a subset of the original font program, which is typically marked by a 6-letter prefix followed by a plus sign (e.g., ARIALN+).

See also

EnumDocumentFonts, SelectFont