GetDocumentFontDiagnostics

字体

说明

返回文档级别的字体摘要,无需调用方逐一选择字体对象并单独查询各标量属性

诊断记录包含:字体总数、已嵌入字体数、未嵌入字体数、已子集化字体数、Standard 14 字体数、CID 字体数、Type3 字体数及未知字体条目数

语法

Delphi

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

类型

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

参数

Diagnostics 接收当前文档的汇总字体计数信息

返回值

返回汇总的文档字体数量;若无法检查文档,则返回负数错误码

备注

在打开或创建需要检查字体清单的文档后调用此方法