PdfFile
constructor(pdfiumCore: PdfiumCore, pageFitPolicy: FitPolicy, viewSize: Size, originalUserPages: List<Int>?, isVertical: Boolean, spacingPx: Int, autoSpacing: Boolean, fitEachPage: Boolean, maxPageCacheSize: Int)
Parameters
pdfiumCore
The {@link PdfiumCore} instance used to interact with the PDF document.
pageFitPolicy
The policy used to fit pages to the view.
viewSize
The size of the view where the PDF document is displayed.
originalUserPages
The original user-defined page order (optional).
isVertical
True if scrolling is vertical, else it's horizontal.
spacingPx
Fixed spacing between pages in pixels.
autoSpacing
Calculate spacing automatically so each page fits on its own in the center of the view.
fitEachPage
True if every page should fit separately according to the {@link FitPolicy}, else the largest page fits and other pages scale relatively.
maxPageCacheSize
The maximum number of pages that can be kept in the view