1. Introduction
Description: PdfZ is an extension using which you create PDF Viewer with awesome features. It can be optimized as per users device to give the best experience possible.
Its key features include:
- Load pdf from Storage/ Assets/ URL
Supports Drive URLs as well. - Uses Recycler View implicitly
- Quality enhancer
- Zoom settings like Max Zoom and method to zoom page to particular level
- Dark Mode
- Lazy load page contents for Smooth Scrolling and avoiding OOM errors
- Vertical and Horizontal orientation
Latest Version: 1
Released: July 9, 2023
Last Updated: July 9, 2023
2. Blocks
3. Documentation
ErrorOccurred | Event raised when an error occurserrorMessage | text |
PdfDownloadProgress | Event raised when pdf downloading progress changesprogress | number |
PdfLoaded | Event raised when PDF is loaded in ViewerfilePath | text |
PageChanged | Event raised when current page is changedcurrentPage | number |
GetZoomLevel | Returns current zoom level |
GetPageCount | Returns total pages count |
GetCurrentPage | Returns current page number |
Zoom | Zooms current page to specified levellevel | number |
Initialize | Initialize PDF Viewer for a local pdf, stored in device.container | component pdfPath | text |
InitializeWithUrl | Initialize PDF Viewer from online pdf file. It should be a direct pdf url.Also works for pdf file stored in Google Drive.container | component pdfUrl | text |
InitializeFromAssets | Initialize PDF Viewer for pdf stored in assetcontainer | component pdfName | text |
RemovePdfViewer | Remove PDF Viewer from its parent layout |
OpenPage | Opens the given pagepageNo | number |
Vertical | Vertical orientation Property Type : read-only Accepts : number |
ScaleMultiplier | Sets quality multiplier. Default value is 2 for overall good experience. For best experience keep it between 2 and 3. A no. higher than that may cause crashes. Property Type : write-only Accepts : number |
Horizontal | Horizontal orientation Property Type : read-only Accepts : number |
Orientation | Set Pdf viewer orientation Property Type : write-only Accepts : number |
LazyLoad | Sets whether page contents should be loaded in background thread or main thread. Enable it for smooth experience while sliding between pages. Property Type : write-only Accepts : boolean |
DarkMode | Sets whether PDF Viewer should load pages in dark mode or not Property Type : write-only Accepts : boolean |
ZoomEnabled | Sets whether page can be zoomed via touch gestures or not Property Type : write-only Accepts : boolean |
MaxZoom | Property Type : read-write Accepts : number |
4. Preview
5. Purchase the extension
You can purchase extension by paying via PayPal and Upi. Either include your email-address in payment note or just contact me after the payment to get aix.
Thank you.
Hope it helps!