PDFium Delphi Component Docs

PageWidthZoom property

Component: TPdfView  ·  Unit: PDFium
Read-only zoom factor that fits the page width into the view

Syntax

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

Description

Read-only zoom factor that fits the page width into the view

Useful for building a "Fit Width" toolbar button

Pass a 1-based PageNumber in the range 1 .. PageCount, and assign the returned zoom factor to PdfView1.Zoom to apply it

Remarks

Example

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

See Also

Active, Pdf, Options, Zoom