PdfFile
Manages PDF document and its pages.
Parameters
The {@link PdfiumCore} instance used to interact with the PDF document.
The policy used to fit pages to the view.
The size of the view where the PDF document is displayed.
The original user-defined page order (optional).
True if scrolling is vertical, else it's horizontal.
Fixed spacing between pages in pixels.
Calculate spacing automatically so each page fits on its own in the center of the view.
True if every page should fit separately according to the {@link FitPolicy}, else the largest page fits and other pages scale relatively.
The maximum number of pages that can be kept in the view
Constructors
Properties
Functions
Ensures the given user-specified page number is within the valid range, considering the original user-defined page order if provided.
Get the page's height if swiping vertical, or width if swiping horizontal.
Get primary page offset, that is Y for vertical scroll and X for horizontal scroll
Get secondary page offset, that is X for vertical scroll and Y for horizontal scroll
Recalculates the page sizes, offsets, and document length based on the current view size.