PDFium Delphi Component 文件

AnnotationObjectCount 方法

组件: TPdf  ·  单元: PDFium
统计一个注释自身绘制的页面对象数量

Syntax

function AnnotationObjectCount(Index: Integer): Integer;

IndexInteger。当前页注释的从零开始的索引。超出 AnnotationCount 的索引会引发 EPdfError
ResultInteger。该注释拥有的页面对象数量,当注释改从外观流绘制时为 0

Description

墨迹和图章注释以页面对象而非页面内容的形式承载其图形,因此这是检查或编辑此类注释显示内容的入口

其他子类型通常返回 0:其外观来自 /AP 流,而 PDFium 不将该流暴露为对象列表

该计数是实时值。一旦 AddPathToAnnotationRemoveAnnotationObject 运行,它就会改变

See Also

AnnotationObjectInfo, AddPathToAnnotation, RemoveAnnotationObject, AnnotationCount