Hello,
I want to open a PDF document. I use this code:
PDFFileStream stream = new PDFFileStream();
stream.open(fullPath);
res = doc.OpenStream(stream, "");
This code throws an exception NullPointerException with message "println needs a message". This exception is thrown in Document.OpenStream method on this line:
hand_val = openStream(stream, password);
My variable fullPath is existing path to the PDF document.
Can you give me an advice, please, what I'm doing wrong?
EDIT
I found, that the code above works, but only if variable fullPath is a path to the internal storage of device. When fullPath is a path to the external memory card, the code above throws the exception.