PDFium Delphi Component Docs

TPdfView component

Unit: PDFium
TPdfView
Use TPdfView component to view PDF pages. TPdfView inherits from TScrollingWinControl and provides scrolling, zooming, page navigation, fit-zoom calculations, device/page coordinate conversion, text hit testing, and mouse drag scrolling

Example

PdfView.Pdf := Pdf1; // attach document component
PdfView.FitMode := pfmFitWidth; // fit page to control width
PdfView.PageNumber := 1; // display first page

Types

type TPdfDisplayMode = (dmSingleContinuous, dmTwoPageContinuous, dmTwoPageContinuousWithCover);

Determines how the PDF document pages are displayed

 

type TPdfFitMode = (pfmNone, pfmActualSize, pfmFitPage, pfmFitWidth, pfmFitHeight);

Automatic page-fit mode used by the FitMode property

 

type TPdfViewLinkOption = (loAutoGoto, loAutoOpenURI, loAutoLaunch, loAutoEmbeddedGoto);

type TPdfViewLinkOptions = set of TPdfViewLinkOption;

Link click handling options used by the LinkOptions property

 

For other types (TBookmark, TLinkAnnotation, TPdfAnnotation, TPdfImage, TRenderOption, TRotation, TSearchOption, TWebLink, etc.), see TPdf

 

Properties

Methods

Events

Partially clipped parent containers restrict visible tiles without recentering the page or spread; painting, reading cursors and page/device conversion retain the full viewer client origin

Destroying a bound TPdf deactivates its surviving views and clears their Pdf references; previously obtained native document and page handles must no longer be used