THPDFHeadlessPageImportResult

THPDFHeadlessPageImportResult = record
  AddedPages, FlattenedAnnotations, RemovedAnnotations: Integer;
  SynthesizedFreeTextAnnotations: Integer;
end;

在成功的原子导入之后,报告新增页面数、摊平的 appearance 数以及显式移除或隐藏的注解数

SynthesizedFreeTextAnnotations 统计通过显式 opt-in 策略补建的缺失 FreeText appearance;每一个同时计入 FlattenedAnnotations,而既有的普通 appearance 不递增补建计数器

空选择返回全零计数;失败或取消的导入抛出异常,不会发布部分页面或成功结果

新增的计数器改变了 Pascal record 布局,Pascal 单元与客户端需要一起重新编译;此扩展不向既有 Linux C ABI 记录添加字段

页面导入与保留的归档契约 · 原生文档工作流