PDFium Delphi Component Docs

AnnotationObjectCount 方法

元件: TPdf  ·  單元: PDFium
計算註解自行繪製所用的頁面物件數量

語法

function AnnotationObjectCount(Index: Integer): Integer;

IndexInteger. 註解在目前頁面上以零為基底的索引。超出 AnnotationCount 的索引會拋出 EPdfError
ResultInteger. 該註解擁有的頁面物件數量;若註解改以外觀串流繪製則為 0

說明

筆跡與圖章註解以頁面物件而非頁面內容攜帶其圖形,因此這是檢視或編輯此類註解顯示內容的入口

其他子類型通常傳回 0:其外觀來自 /AP 串流,而 PDFium 不會將它公開為物件清單

此計數是即時值,只要 AddPathToAnnotation 或 RemoveAnnotationObject 執行就會立即變更

另請參閱

AnnotationObjectInfo, AddPathToAnnotation, RemoveAnnotationObject, AnnotationCount