When opening and decrypting a file into a buffer in Android, and trying to open the file using Mupdf OpenBuffer method, it fails with the following message:
cannot recognize version marker
The viewer shows all the pages blank, although it gets number of pages in document correctly.
The same buffer when saved to a file and opening that file, it works perfectly.
I have compared the code I use to the Mupdf sample, and didn't find anything significant difference.
What might be the cause of this ? Thanks in advance ...