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

openFile method return null #3

Closed
samsoft00 opened this issue Dec 2, 2014 · 3 comments
Closed

openFile method return null #3

samsoft00 opened this issue Dec 2, 2014 · 3 comments

Comments

@samsoft00
Copy link

Hello @tekinarslan great work, in the process of making use of your library, i encounter a problem... it says
int lastSlashPos = path.lastIndexOf('/') return null result to java.lang.NullPointerException
also shut down VM, D/AndroidRuntime﹕ Shutting down VM... please what can i do? i'm loading file from pdf file from assest folder.

@samsoft00
Copy link
Author

Hello @tekinarslan, after spending hours in debugging... it works, i was able to load the pdf file but had a little problem, the page hang after loading the second page and is there a way to make it vertical instead of horizontal??

@tekinarslan
Copy link
Owner

Hi,
You cannot read pdf from assets folder directly. You must read it and open from func (openBuffer(byte[] pdf)).

@samsoft00
Copy link
Author

Thanks @tekinarslan , I'm able to read the PDF, but how can i make the scrolling to move Vertical instead of horizontal??? Thanks

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