Unit: PDFium
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;
PdfView.FitMode := pfmFitWidth;
PdfView.PageNumber := 1;
Types
type TPdfDisplayMode = (dmSingleContinuous, dmTwoPageContinuous, dmTwoPageContinuousWithCover);
Determines how the PDF document pages are displayed.
- dmSingleContinuous - Display pages continuously in a single column
- dmTwoPageContinuous - Display pages continuously in two columns
- dmTwoPageContinuousWithCover - Display the first page alone, then display the remaining pages continuously in two columns
type TPdfFitMode = (pfmNone, pfmActualSize, pfmFitPage, pfmFitWidth);
Automatic page-fit mode used by the FitMode property.
- pfmNone - honours whatever Zoom the caller set (legacy behaviour)
- pfmActualSize - forces Zoom := 1.0
- pfmFitPage - picks the largest Zoom that still shows the whole page
- pfmFitWidth - picks the Zoom that matches the page width to the viewport width
type TPdfViewLinkOption = (loAutoGoto, loAutoOpenURI, loAutoLaunch, loAutoEmbeddedGoto);
type TPdfViewLinkOptions = set of TPdfViewLinkOption;
Link click handling options used by the LinkOptions property.
- loAutoGoto - jump to internal destinations automatically
- loAutoOpenURI - open URI links via ShellExecute automatically
- loAutoLaunch - launch file/application links via ShellExecute automatically
- loAutoEmbeddedGoto - reserved for future embedded goto support
For other types (TBookmark, TLinkAnnotation, TPdfAnnotation, TPdfImage, TRenderOption, TRotation, TSearchOption, TWebLink, etc.), see TPdf.
Properties
Methods
Events