components/u_pdf_viewer library

Classes

UPdf
PDF shortcuts: open a viewer, read text, read metadata; pure Dart, all platforms. UPdf.show(url: url)
UPdfOutlinePanel
Table of contents panel of a PDF.
UPdfPageView
One rendered PDF page with highlights and selection (a building block of UPdfViewer).
UPdfSettingsPanel
View settings (scroll mode, spread, color mode, fit).
UPdfThumbnail
Thumbnail image of one page.
UPdfThumbnailPanel
Grid of page thumbnails.
UPdfViewer
Full PDF reader in pure Dart (all platforms): search, select/copy, outline, thumbnails, night mode, highlights, notes, drawing, save. UPdfViewer(url: "https://x.com/a.pdf")
UPdfViewerState
State of UPdfViewer; use a GlobalKey to control it (pages, zoom, annotations).

Typedefs

UPdfPageOverlayBuilder = Widget Function(BuildContext context, int pageIndex, Size pageSize, double scale)
Builds extra widgets on top of a page (sized to the displayed page).