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

Unable to Open Document

More
9 years 5 months ago #11353 by sbettal
Hi Team,

Its urgent requirement, I am stuck here.
When ever calling docStatus = pdfDocument.Open(docFilePath, null). It returns doc status as "-10". I checked the path, its fine and accessible. And am not getting this error every time, only some times. And i cant proceed with this error. Please suggest me on this as soon as possible.
More
9 years 5 months ago #11354 by Davide
Replied by Davide on topic Unable to Open Document
Hi,
can you reproduce the issue with the demo project? With all the pdfs?
If yes, can you please send us one of them, so we can check it?
You can send it privately via ticket : www.radaeepdf.com/support/tickets
More
9 years 5 months ago #11355 by sbettal
Replied by sbettal on topic Unable to Open Document
Hi,

Thanks for quick reply. I am not using the demo project. Implemented in my project. And the pdf is not static one its dynamic.
And the pdf which we are suing if will work, but getting this error only some times. And the document which we are suing is a general document for testing. I unable to debug the Exception in the fallowing code.

public int Open(String path, String password )
{
if( hand_val == 0 )
{
int ret = 0;
try {
hand_val = open(path, password);
}
catch (Exception e)
{
e.printStackTrace();
hand_val = -10;
}
if( hand_val <= 0 && hand_val >= -10 )//error
{
ret = (int)hand_val;
hand_val = 0;
page_count = 0;
}
else
page_count = getPageCount(hand_val);
return ret;
}
return 0;
}
More
9 years 5 months ago #11356 by support
Replied by support on topic Unable to Open Document
May you provide the full path you're reading from?
If possible, send us one of your PDF file.
More
9 years 5 months ago #11357 by sbettal
Replied by sbettal on topic Unable to Open Document
Hi,

I provided one image in that the file path also there.
More
9 years 4 months ago #11375 by Davide
Replied by Davide on topic Unable to Open Document
Hi,
if you are downloading the file before opening it, make sure that the pdf is completely downloaded.

We are not able to reproduce that issue with the demo project, so I invite you to send us a demo of your project so we can check it : www.radaeepdf.com/support/tickets
Time to create page: 0.467 seconds
Powered by Kunena Forum