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: 2
Released: 2023-07-08T18:30:00Z
Last Updated: 2023-12-20T18:30:00Z
Aix size: 284 kb
2. Blocks
3. Documentation
Events
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 |
Methods
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 |
Properties
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. Usages
Similar to PdfBook.
5. Purchase
PayPal:
UPI:
vknow360@apl
Contact me after payment to get aix and aia file.
6. Preview
Compressed video
Hope it helps!