Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

OpenStream returns -3 error code

More
11 years 3 months ago #9019 by gtoldosProton
Hello friends.
Today I came across a problem I don't know how to solve, I was hoping someone could give me some light.
This attached document is a regular pdf

File Attachment:

File Name: PDF_00050KB.pdf
File Size:73.61 KB
, edited externally with some annotations and highlights in other pdf application (with Foxit)
When we try to open it with OpenStream it returns a -3, given the documentation of your method (posted below) it seems it is damaged or it has invalid format so it won't open. We have been able to open it in other viewers, like Polaris and the PDFViewer in Android.
I was wondering if there is something I could do, or it may have something to do or any workaround to end up showing the pdf.
Any idea or sugestion will be muh apreciated.

Thanks in advance. Have a good day.

/**
* open document from stream.
* first time, SDK try password as user password, and then try password as owner password.
* @param stream PDFStream object.
* @param password password or null.
* @return error code:<br/>
* 0:succeeded, and continue<br/>
* -1:need input password<br/>
* -2:unknown encryption<br/>
* -3:damaged or invalid format<br/>
* -10:access denied or invalid file path<br/>
* others:unknown error
*/
public int OpenStream( PDFStream stream, String password )
More
11 years 3 months ago - 11 years 3 months ago #9027 by Davide
Hi,
can you reproduce this issue with the demo project? What version of the library are you using?
I have tested your pdf with the last version of the library and it works properly.
Last edit: 11 years 3 months ago by Davide.
More
11 years 3 months ago - 11 years 3 months ago #9030 by Davide
Hi,
if you are opening stream using http look at this important knowledge base .
Last edit: 11 years 3 months ago by Davide.
Time to create page: 0.403 seconds
Powered by Kunena Forum