I am developing app for android which has pdf to view. The PDF are in build into the app, so I have to just load pdf to view correctly.
There should be no option to share and all other stuff, but the user should be able to zoom the pdf.
I have used mupdf but the pdf scrolls horizontally (ie. the pages are side-by-side), I want the pdf to scroll vertically. I have tried everything but I am not getting result.
Thx for answer posted by @Arunjyothis but i have provided below class where variable reference are present :
ReaderView.java
Stepper.java
The solution to this for MuPDF 1.9a is simply changing the following variable in the file ReaderView.java;
to
You can do by changing the horizontal values to vertical ( change all width related calculations to height ). Change onLayout() & onFling() as below:
And,