PdfRequest
Represents a configuration request for loading and rendering a PDF document.
This class encapsulates all the settings and options that can be applied when loading and displaying a PDF. It's used to customize the behavior of the PDF viewer, such as enabling/disabling features, setting the initial page, defining the page fit policy, and more.
Constructors
Properties
Enables or disables rendering of PDF annotations. Defaults to false.
Enables or disables anti-aliasing for smoother rendering. Defaults to true.
If true, automatically adjusts spacing between pages based on screen size. Defaults to false.
The initial page number to display when the document is loaded. Defaults to 0 (the first page).
Disables long press gestures on the PDF view. Defaults to false.
A listener to be notified when the document is loaded and ready for rendering. Defaults to null.
Enables or disables double tap gestures for zooming. Defaults to true.
Enables or disables swipe gestures for page navigation. Defaults to true.
If true, each page will be individually fitted to the screen. Defaults to false.
A listener to be notified of gesture events (e.g., when a gesture is detected). Defaults to null.
A handler for processing link clicks in the PDF document. Defaults to null.
The policy to use for fitting the page content to the screen. Defaults to FitPolicy.WIDTH.
A listener to be notified of page navigation events (e.g., when a page is changed). Defaults to null.
An optional list of specific page numbers to load. If null, all pages are loaded.
Custom rendering options for the PDF document. Defaults to PdfViewerConfiguration.DEFAULT.
A listener to be notified of rendering events (e.g., when a page is rendered). Defaults to null.
The type of scroll handle to display. Defaults to null (no scroll handle).
Enables or disables scroll optimization. When true, bitmap generation is skipped during scrolling for better performance, but may show empty areas when scrolling to new content. Defaults to true.
The source of the PDF document to load (e.g., file, asset, URI).
If true, swipe gestures will navigate horizontally instead of vertically. Defaults to false.