afreakyelf / Pdf-Viewer

A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space.
https://afreakyelf.github.io/Pdf-Viewer/
MIT License
822 stars 173 forks source link

How to jump to a particular page in PDF, when you open it. #111

Closed angad305 closed 8 months ago

angad305 commented 8 months ago

Can i jump to a particular page, like to a last saved page position which i can save using "onPageChanged" , so when i reopen the same PDF, i can jump to that particular page, instead of scrolling. i couldn't find method to achieve that. am i missing something?

github-actions[bot] commented 8 months ago

Thank you for creating your first issue. We appreciate your help in making this project better. We will look into it, and get back to you soon. Need help or want to discuss this issue? Join our Discord community here to ask questions and discuss this issue live!

afreakyelf commented 8 months ago

Hey angad, are you rendering your PDF in a view or using PdfViewerActivity to open the pdf?

angad305 commented 8 months ago

Rendering pdf in a view

afreakyelf commented 8 months ago

Hi, The Above issue has been fixed in new release. https://github.com/afreakyelf/Pdf-Viewer/releases/tag/v2.1.0

Please migrate to Maven central. More here: https://github.com/afreakyelf/Pdf-Viewer/releases/tag/v2.1.0

Thank you for using the library. Please reopen/raise a new issue if you still face this error.

I have added jumpToPage method. Check MainActivity for usecase.

Join our discord for more updates!