Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollbars and Fast Scrolling #52

Closed
LaatonWalaBhoot opened this issue Sep 28, 2017 · 3 comments
Closed

Scrollbars and Fast Scrolling #52

LaatonWalaBhoot opened this issue Sep 28, 2017 · 3 comments

Comments

@LaatonWalaBhoot
Copy link

First of all thankyou for this awesome library.
If any of you are getting the SIGSEGV error, try converting your pdf to doc and back to pdf again. In my case it fixed the error.

Secondly, is there a way to implement scrollbar in the viewpager and enable fast scrolling like google docs where we can zoom out and scroll quickly to the page of choice or scroll by dragging the scrollbar.

@voghDev
Copy link
Owner

voghDev commented Sep 28, 2017

Hi,

thanks for using the lib.

I haven't tried to implement fast scrolling, but I guess you have enough mechanisms to do a manual implementation. I would add the thumb, then capture its position each time and switch to the requested page. With the help of some CustomViews it should work and look great

@LaatonWalaBhoot
Copy link
Author

thanks for replying mate,

one more thing, i am using multiple instances of remotepdfviewpager to load two pdf's in respective fragments but on resuming the previous fragment the adapter crashes with 'cannot load page' error. Any idea how o fix this? already tried setting ofpagescreenlimit to a large value but it messes with page order

@voghDev
Copy link
Owner

voghDev commented Dec 2, 2017

Hello again,

you mean, having two fragments, and each one a PDFViewPager? are these fragments in Tabs? Maybe the scrolling could be counter-intuitive (scroll left/right to change tab, then to change page of the PDF).

I haven't tried to have multiple PDFViewPager objects in the same page, but it should work, as each instance is independent and manages its own memory.

Would be good to know your fragment configuration a little deeper. Thanks!

@voghDev voghDev closed this as completed Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants