THPDFViewer and Loaded Facade API Reference

Цей довідковий матеріал описує поведінку, параметри та використання відкритого API бібліотеки HotPDF

THPDFViewer

Use these members to host the VCL viewer, control navigation, connect observers, and expose viewer state

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

OnPageChange OnDocumentChange OnHighlightChange OnSearchChange OnViewRotationChange OnZoomChange OnRenderError OnMarqueeSelect

THPDFViewerModel

Use the model without creating a window when navigation, searching, hit testing, snapshots, or printing must be tested or automated

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 descendants use the standard VCL action contract to target a linked viewer

ExecuteTarget HandlesTarget UpdateTarget Viewer

Viewer support types

THPDFViewerZoomMode selects fixed zoom, fit width, fit page, actual size, or custom zoom behaviour for THPDFViewer and THPDFViewerModel

THPDFViewerFormFieldIndices contains the zero-based loaded form-field indexes returned for a page by GetPageFormFieldIndices

Loaded facade collections

THPDFLoadedOutlineCollection provides Count TryGet and FindByTitle

THPDFLoadedFormCollection provides Count TryGet TryGetByName SetValue SetReadOnly Rename Remove and Flatten

THPDFLoadedAnnotationCollection provides Count TryGet Remove and Flatten

THPDFLoadedResourceCollection provides FontCount TryGetFont ImageCount TryGetImage and ExtractImage

THPDFLoadedDocumentFacade exposes Document Outlines Forms Annotations and Resources

Related topics

Loaded Document Toolkit covers workflow examples and ownership rules

THPDFViewerModel Snapshot Methods covers bitmap snapshots and thumbnails

THPDFViewer Highlights and Marquee Selection covers persistent page-region highlights