PDFium Delphi Component Docs

PageZoom property

Component: TPdfView  ·  Unit: PDFium
Read-only zoom required to fit the current page into the view at the current DisplayMode

Syntax

property PageZoom[PageNumber: Integer]: Double; // read only

Description

Read-only zoom required to fit the current page within the view for the current DisplayMode

Combine it with PageWidthZoom / PageHeightZoom / ActualSizeZoom to build custom fit buttons

Pass a 1-based PageNumber in the range 1 .. PageCount, then assign the returned zoom factor to PdfView1.Zoom to put it into effect

Remarks

Example

begin
  PdfView1.Active := True;
  PdfView1.Zoom := PdfView1.PageZoom[1];
end;

See Also

Active, Pdf, Options, Zoom