codifyiq_pdf_viewer 1.1.0
codifyiq_pdf_viewer: ^1.1.0 copied to clipboard
A PDF viewer widget with zoom controls, a page indicator, and optional text search, powered by pdfrx.
1.1.0 #
PdfSource.urigains apreferRangeAccessflag (defaultfalse). When enabled, the viewer streams a network PDF via HTTP range requests instead of downloading it in full first, so the first page of a large document renders after a single small request. Servers that don't support range requests fall back to a full download automatically. No effect on web.PdfViewerWidgetnow shows a linear download progress bar across the top of the viewer while a network PDF loads — determinate when the server reports a content length, indeterminate otherwise. Disable it withshowDownloadProgress: false, and/or passonDownloadProgress: (received, total) { ... }to drive your own progress UI.PdfSource.urigains auseProgressiveLoadingflag (defaulttrue) that hands back pages as the document parses instead of only after the whole file is available. Combined withpreferRangeAccess: trueand a linearized ("Fast Web View") PDF, later pages of a large remote document can render before the download finishes; non-linearized PDFs still need a near-complete download first.PdfViewerWidgetgains aninitialPageNumber(default1) to open a document to a specific page — handy for deep links or resuming where the reader left off. Applies to all source types.PdfViewerWidgetgains anetworkTimeout(default 30 seconds) forPdfSource.uri: if a network request fails to start responding within the window it surfaces the error UI instead of waiting forever. It bounds the response start (connect + headers) per request, not the total download time.
1.0.0 #
- Initial release as a standalone package, extracted from
codifyiq_core_components. PdfViewerWidgetandPdfSource— a PDF viewer with a built-in search UI, consistent zoom bounds, web zoom buttons, a page indicator, and a unified network/file/bytes source.