GetDocumentFontDiagnostics

Fonts

Description

Returns a document-level font summary without requiring callers to select each font object and query scalar properties individually

The diagnostics record reports total fonts, embedded and non-embedded fonts, subsetted fonts, Standard 14 fonts, CID fonts, Type3 fonts, and unknown font entries

Syntax

Delphi

Function TPDFlib.GetDocumentFontDiagnostics(Out Diagnostics: TPDFlibFontDiagnostics): Integer;

Type

TPDFlibFontDiagnostics = Record
  FontCount: Integer;
  EmbeddedCount: Integer;
  NotEmbeddedCount: Integer;
  SubsettedCount: Integer;
  Standard14Count: Integer;
  CIDFontCount: Integer;
  Type3Count: Integer;
  UnknownCount: Integer;
End;

Parameters

Diagnostics receives the aggregated font counters for the current document

Return Values

Returns the number of document fonts summarized, or a negative error code when the document cannot be inspected

Remarks

Call this method after opening or creating the document whose font inventory should be inspected