sh_pdf 1.0.4
sh_pdf: ^1.0.4 copied to clipboard
A high-performance, optimized custom PDF viewer for Flutter with support for URLs, local files, zoom, and pagination.
Custom Optimized PDF Viewer #
A high-performance, open-source PDF viewer for Flutter. Built on top of pdfrx, this viewer is highly optimized for memory and speed, supporting large documents with ease.
Features #
- Load from URL: Easily load PDFs from any web URI.
- Load from Device: Pick and view PDF files from local storage.
- Optimized Performance: Smooth scrolling and fast rendering even for complex documents.
- Premium UI: Sleek, floating pill-shaped pagination bar with first/last page navigation.
- Zoom Support: Programmatic and gesture-based zoom.
- Jump to Page: Quickly navigate to any page by entering the page number.
Getting Started #
Add the dependency to your pubspec.yaml:
dependencies:
sh_pdf: ^1.0.4
Usage #
Loading from URL #
CustomPdfViewer.url('https://example.com/sample.pdf')
Loading from File #
CustomPdfViewer.file('/path/to/local/file.pdf')
Contributions #
Contributions are welcome! If you find a bug or want to suggest a feature, please open an issue or pull request.
License #
MIT License.