# flutter_pdfview_will_delete **Repository Path**: openharmony-sig/flutter_pdfview_will_delete ## Basic Information - **Project Name**: flutter_pdfview_will_delete - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-10-10 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ๐Ÿšจ **้‡่ฆๆ็คบ | IMPORTANT** > > **โš ๏ธ ๆญคไปฃ็ ไป“ๅทฒๅฝ’ๆกฃใ€‚ๆ–ฐๅœฐๅ€่ฏท่ฎฟ้—ฎ [flutter_pdfview_will_delete](https://gitcode.com/openharmony-sig/flutter_pdfview_will_delete)ใ€‚| โš ๏ธ This repository has been archived. For the new address, please visit [flutter_pdfview_will_delete](https://gitcode.com/openharmony-sig/flutter_pdfview_will_delete).** > --- > # flutter_pdfview Native PDF View for iOS and Android

Buy Me A Coffee

# Use this package as a library ## 1. Depend on it Add this to your package's pubspec.yaml file: ``` dependencies: flutter_pdfview: 1.3.2 ``` ### 2. Install it You can install packages from the command line: with Flutter: ``` $ flutter packages get ``` Alternatively, your editor might support pub get or `flutter packages get`. Check the docs for your editor to learn more. ### 3. Import it Now in your Dart code, you can use: ``` import 'package:flutter_pdfview/flutter_pdfview.dart'; ``` ## Options | Name | Android | iOS | Default | | :-------------------- | :-----: | :-: | :---------------: | | defaultPage | โœ… | โœ… | `0` | | onViewCreated | โœ… | โœ… | `null` | | onRender | โœ… | โœ… | `null` | | onPageChanged | โœ… | โœ… | `null` | | onError | โœ… | โœ… | `null` | | onPageError | โœ… | โŒ | `null` | | onLinkHandle | โœ… | โœ… | `null` | | gestureRecognizers | โœ… | โœ… | `null` | | filePath | โœ… | โœ… | | | pdfData | โœ… | โœ… | | | fitPolicy | โœ… | โŒ | `FitPolicy.WIDTH` | | enableSwipe | โœ… | โœ… | `true` | | swipeHorizontal | โœ… | โœ… | `false` | | password | โœ… | โœ… | `null` | | nightMode | โœ… | โŒ | `false` | | password | โœ… | โœ… | `null` | | autoSpacing | โœ… | โœ… | `true` | | pageFling | โœ… | โœ… | `true` | | pageSnap | โœ… | โŒ | `true` | | preventLinkNavigation | โœ… | โœ… | `false` | ## Controller Options | Name | Description | Parameters | Return | | :------------- | :------------------: | :--------: | :------------: | | getPageCount | Get total page count | - | `Future` | | getCurrentPage | Get current page | - | `Future` | | setPage | Go to/Set page | `int page` | `Future` | ## Example ```dart PDFView( filePath: path, enableSwipe: true, swipeHorizontal: true, autoSpacing: false, pageFling: false, onRender: (_pages) { setState(() { pages = _pages; isReady = true; }); }, onError: (error) { print(error.toString()); }, onPageError: (page, error) { print('$page: ${error.toString()}'); }, onViewCreated: (PDFViewController pdfViewController) { _controller.complete(pdfViewController); }, onPageChanged: (int page, int total) { print('page change: $page/$total'); }, ), ``` # Dependencies ### Android [AndroidPdfViewer](https://github.com/barteksc/AndroidPdfViewer) ### iOS (only support> 11.0) [PDFKit](https://developer.apple.com/documentation/pdfkit) # Future plans - Replace barteksc/AndroidPdfViewer with MuPDF or Android Native PDF Renderer. - Improve documentation - Support other platforms such as MacOS, Windows, Linux and Web - Add search functionality - Improve performance on zooming, page changing - Improve image quality - Write more test # Support

Buy Me A Coffee

Donate with PayPal button

## Star History [![Star History Chart](https://api.star-history.com/svg?repos=endigo/flutter_pdfview&type=Date)](https://star-history.com/#endigo/flutter_pdfview&Date) ### Developer - [endigo](https://github.com/endigo)