PDFium Delphi Component Docs

ReadPageObjectsSnapshot 方法

元件: TPdf  ·  單元: PDFium
讀取單一頁面上每個頁面物件的自主快照,其中不含任何控制代碼

語法

function ReadPageObjectsSnapshot(PageNumber: Integer; const Options: TPdfPageObjectSnapshotOptions; out Status: TPdfPageObjectSnapshotStatus): TPdfPageObjectsSnapshot;

說明

ReadPageObjectsSnapshot 會將一頁所有頁面物件的類型、邊界、轉換、文字、標記與相依性資訊,複製到自主擁有的 TPdfPageObjectsSnapshot,其中不含任何原生 FPDF_PAGEOBJECT 控制代碼

PageNumber 以一為基底(超出範圍的頁碼引發 EPdfError);Status 回報讀取是完成還是觸及明確的選項額度

備註

範例

在任何算繪回呼之外檢查頁面的所有物件

var Snap: TPdfPageObjectsSnapshot; Status: TPdfPageObjectSnapshotStatus;
Snap := Pdf1.ReadPageObjectsSnapshot(1, TPdfPageObjectSnapshotOptions.Default, Status);

另請參閱

PageObjectsSnapshot, PageObjectSnapshotCacheCapacity, ReadTextPageSnapshot, 頁面物件快照