pdfrx
library
Typedefs
-
PdfDocumentLoaderProgressCallback
= void Function(int downloadedBytes, [int? totalBytes])
-
Callback function to notify download progress.
-
PdfDocumentLoaderReportCallback
= void Function(int downloaded, int total, Duration elapsedTime)
-
Callback function to report download status on completion.
-
PdfDocumentViewBuilderFunction
= Widget Function(BuildContext context, PdfDocument? document)
-
A function that builds a widget tree with the PDF document.
-
PdfDownloadProgressCallback
= void Function(int downloadedBytes, [int? totalBytes])
-
Callback function to notify download progress.
-
PdfDownloadReportCallback
= void Function(int downloaded, int total, Duration elapsedTime)
-
Callback function to report download status on completion.
-
PdfLinkCustomPagePainter
= void Function(Canvas canvas, PdfPage page, List<PdfLink> links)
-
-
PdfLinkWidgetBuilder
= Widget? Function(BuildContext context, PdfLink link, Size size)
-
Function to build link widget for PdfLink.
-
PdfMatrixNormalizeFunction
= Matrix4 Function(Matrix4 matrix, Size viewSize, PdfPageLayout layout, PdfViewerController? controller)
-
Function to normalize the matrix.
-
PdfPageChangedCallback
= void Function(int? pageNumber)
-
Function called when the current page is changed.
-
PdfPageLayoutFunction
= PdfPageLayout Function(List<PdfPage> pages, PdfViewerParams params)
-
Function to customize the layout of the pages.
-
PdfPageOverlaysBuilder
= List<Widget> Function(BuildContext context, PdfPage page)
-
Function to build page overlays.
-
PdfPageViewDecorationBuilder
= Widget Function(BuildContext context, Size pageSize, PdfPage page, RawImage? pageImage)
-
Function to build a widget that wraps the page image.
-
PdfPageViewSizeCallback
= Size Function(Size biggestSize, PdfPage page)
-
Function to calculate the size of the page based on the size of the widget.
-
PdfPasswordProvider
= FutureOr<String?> Function()
-
Function to provide password for encrypted PDF.
-
PdfPerPageSelectableRegionInjector
= Widget Function(BuildContext context, Widget child, PdfPage page, )
-
Function to inject SelectionArea or SelectableRegion to customize text selection on each page.
-
PdfSelectableRegionInjector
= Widget Function(BuildContext context, Widget child)
-
Function to inject SelectionArea or SelectableRegion to customize text selection.
-
PdfTextMatch
= PdfTextRangeWithFragments
-
For backward compatibility; PdfTextRangeWithFragments is previously named PdfTextMatch.
-
PdfViewerCalculateCurrentPageNumberFunction
= int? Function(Rect visibleRect, PdfViewerController controller)
-
Function to guess the current page number based on the visible rectangle and page layouts.
-
PdfViewerCalculateInitialPageNumberFunction
= int? Function(PdfDocument document, PdfViewerController controller)
-
Function to calculate the initial page number.
-
PdfViewerDocumentChangedCallback
= void Function(PdfDocument? document)
-
Function to notify that the document is loaded/changed.
-
PdfViewerErrorBannerBuilder
= Widget Function(BuildContext context, Object error, StackTrace? stackTrace, PdfDocumentRef documentRef)
-
Function to build loading error banner.
-
Function to customize the rendering scale of the page.
-
PdfViewerHandleLinkTap
= bool Function(Offset position)
-
Function to handle link tap.
-
PdfViewerLoadingBannerBuilder
= Widget Function(BuildContext context, int bytesDownloaded, int? totalBytes)
-
Function to build loading banner.
-
PdfViewerOverlaysBuilder
= List<Widget> Function(BuildContext context, Size size, PdfViewerHandleLinkTap handleLinkTap)
-
Function to build viewer overlays.
-
PdfViewerPagePaintCallback
= void Function(Canvas canvas, PdfPage page)
-
Function to paint things on page.
-
PdfViewerPageTextSelectionChangeCallback
= void Function(PdfTextRanges selection)
-
Function to be notified when the text selection is changed.
-
PdfViewerReadyCallback
= void Function(PdfDocument document, PdfViewerController controller)
-
Function called when the viewer is ready.
-
PdfViewerTextSelectionChangeCallback
= void Function(List<PdfTextRanges> selections)
-
Function to be notified when the text selection is changed.
-
PdfViewerViewSizeChanged
= void Function(Size viewSize, Size? oldViewSize, PdfViewerController controller)
-
Function to be called when the viewer view size is changed.