[Paid] PDFViewerZ - Create customizable Pdf View

PDFViewerZ

Hey everyone, Hope you are fine.
Today I am going to introduce my first aar based extension that uses native libraries and xml resources.
As we know there are lots of webview based and basic extension for pdf view but all have some limitations.
I have tried my best to make this pdfviewer that of lots of customization and features to use.

Designer

Events

GotDocumentMetaData
image
Get all the meta information of the PDF file like title,author,creator,producer,etc


Layout Inflate Error
image
**message ** - Get error related to XML layouts.


On Error
image
message - Get all error occurs other than pages and Layout inflation.


OnPageError
image
page - page number
**message ** - Get all error occurs in any page loading.


OnDrawn
image
Event is triggered when pdf page is drawn to the screen…
pagetHeight - Height of the loaded pages
pageWidth - Width of the loaded pages
displayedPage - Page number which is drawn for displaying.


Load Complete - Triggered when pdf load is completed
image
totalPages - Total number of pages in pdf


OnPageChanged - Triggered when Page is changed from one to another
image
page - Page number of active page to which page is changed
pageCount - Total number of pages


OnPageScrolled
image
page - Active Page Number
positionOffset - Scrolled positon of the pdf


OnClick - Triggered when user clicks on the PdfView
image
x - Get x position of the click with respect to PdfView.
y - Get y position of the click with respect to PdfView.


OnLongClick - Triggered when user long clicks on the PdfView
image
x - Get x position of the click with respect to PdfView.
y - Get y position of the click with respect to PdfView.



Methods

AddPdfView
image
Add PDFView to the arrangement you want.


LoadPdf - Load Pdf from Internal storage, Assets or URL
image
path - String path of the pdf file. For assets must use prefix asset: with file name.
password - If pdf have password, set password else leave empty string.


GetMetaData - Get meta data of the pdf. Triggers event GotMetaData Event.
image



How to Use?

This extension uses native library and XML resources. So to use this app you’ll have to rebuild the extension from devzstore as it will be one of the easiest way instead of doing in manually.

Sizing of apk/aab

After rebuilding apk the size of will become around 24mb. And for aab size will be same as apk that is around 24mb. Dont be panic!!!
When you’ll upload aab to playstore the installable size of app will be around 8mb-10mb.

How to download?

You can buy it directly from devzstore. Or send me a message.
Price - 700inr or $10usd

Preview

Thanks you :brown_heart:
Hope you’ll like it. :brown_heart:

9 Likes

Mention the repo owner GitHub - barteksc/AndroidPdfViewerV1: Android view for displaying PDFs rendered with PdfiumAndroid

2 Likes

Can we use this extension to open pdf online from database?

1 Like

Yes you can

extension size

Will update these kinda data soon in the first post.

Updated!!
Have a look

I want that extension. How can I contact you?

If you add URL To View PDF then i will buy this extension…

1 Like

That’s already added.

Where is the block? There are only Path

You can use url too in that…

Path = URL is Same??:thinking:

Can say​:rofl::rofl:

You can use assets pdf,url and file path

This method is work on your extensions?

1 Like

Yes… in the same way…

can it load PDF File from Google Drive Online???

This post was flagged by the community and is temporarily hidden.

1 Like

You are promoting a paid extension in other’s paid extension topic?

1 Like

can you give me a test apk with more than 1000+ pages (host on Google Drive)