THPDFViewer 與已載入 Facade API 參考

本參考主題說明 HotPDF 函式庫中公開 API 的行為、參數與使用方式

THPDFViewer

這些成員可用來承載 VCL 檢視器、控制導覽、接上觀察者,並公開檢視器狀態

RefreshDocument FirstPage PriorPage NextPage LastPage ZoomIn ZoomOut RotateClockwise RotateCounterClockwise ResetViewRotation ResetView HighlightRegion ClearHighlightRegions

AddDocumentChangeHandler RemoveDocumentChangeHandler

Model RenderError Align Anchors Color PDFDocument PageIndex PageNumber Zoom ZoomMode ViewRotation InteractionMode HighlightColor PrefetchRadius RenderAtPhysicalDPI

InteractionMode HighlightColor

OnPageChange OnDocumentChange OnHighlightChange OnSearchChange OnViewRotationChange OnZoomChange OnRenderError OnMarqueeSelect

THPDFViewerModel

需要在測試或自動化導覽、搜尋、點擊測試、快照或列印,又不想建立視窗時,可直接使用 model

BeginUpdate EndUpdate FirstPage PriorPage NextPage LastPage ZoomIn ZoomOut FindAll FindNext FindPrevious ClearSearch TryGetSearchHit TryGetActiveSearchHit

GetNextZoomLevel GetPreviousZoomLevel RotateClockwise RotateCounterClockwise ResetViewRotation ResetView ProcessKeyInput ProcessMouseWheel PagePointToView ViewPointToPage ApplyViewRotation

CreatePageSnapshot CreateCurrentPageSnapshot CreatePageThumbnail CreateCurrentPageThumbnail PrefetchPageSnapshots PrefetchCurrentPageSnapshots CreatePageRegionSnapshot CreateCurrentPageRegionSnapshot CreatePageMetafile CreateCurrentPageMetafile

DrawCurrentView PrintCurrentView SaveCurrentPageSnapshotToBMP SaveCurrentPageSnapshotToStream SaveCurrentPageSnapshot

AddHighlightRegion RemoveHighlightRegion ClearHighlightRegions TryGetHighlightRegion GetPageFormFieldIndices FindFormFieldAt FindNextFormField

Document PageCount PageIndex PageNumber Zoom ZoomMode ViewRotation SearchHitCount HighlightCount ActiveSearchHit UpdateCount

OnBeginUpdate OnEndUpdate OnHighlightChange OnPageChange OnZoomChange OnSearchChange OnViewRotationChange

THPDFViewerAction

action 後代類別透過標準 VCL action 合約鎖定已連結的檢視器

ExecuteTarget HandlesTarget UpdateTarget Viewer

檢視器支援型別

THPDFViewerZoomMode 會為下列對象選擇固定縮放、符合頁寬、符合頁面、實際大小或自訂縮放行為: THPDFViewer 與 THPDFViewerModel

THPDFViewerFormFieldIndices 內含以零為起點的已載入表單欄位索引,這些索引來自 GetPageFormFieldIndices

已載入 facade 集合

THPDFLoadedOutlineCollection provides Count TryGet 與 FindByTitle

THPDFLoadedFormCollection provides Count TryGet TryGetByName SetValue SetReadOnly Rename Remove 與 Flatten

THPDFLoadedAnnotationCollection provides Count TryGet Remove 與 Flatten

THPDFLoadedResourceCollection provides FontCount TryGetFont ImageCount TryGetImage 與 ExtractImage

THPDFLoadedDocumentFacade exposes Document Outlines Forms Annotations 與 Resources

相關主題

Loaded Document Toolkit 涵蓋流程範例與擁有權規則

THPDFViewerModel Snapshot Methods 涵蓋點陣圖快照與縮圖

THPDFViewer 高亮與框選 涵蓋永續保存的頁面區域高亮