property PageCount: Integer;
此唯讀屬性對一般 PDF 傳回原生文件頁數,對作用中的動態 XFA 表單則傳回目前版面配置的頁數
在 v3.126.1 中,XFA 頁面新增與移除事件會先查詢已完成版面配置的總頁數,再通知 OnXfaPageCountChanged;較早的版本可能把原生事件的差值誤當成總數
PageNumber 無關OnXfaPageCountChanged 中重新整理快取的導覽與捲動範圍
if Pdf1.Active then
Memo1.Lines.Add('PageCount = ' + IntToStr(Pdf1.PageCount));