Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Unable to Open Document 7 years 5 months ago #11353

  • sbettal
  • sbettal's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
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.
Attachments:

Please Log in or Create an account to join the conversation.

Unable to Open Document 7 years 5 months ago #11354

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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

Please Log in or Create an account to join the conversation.

Unable to Open Document 7 years 5 months ago #11355

  • sbettal
  • sbettal's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
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;
}

Please Log in or Create an account to join the conversation.

Unable to Open Document 7 years 5 months ago #11356

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
May you provide the full path you're reading from?
If possible, send us one of your PDF file.

Please Log in or Create an account to join the conversation.

Unable to Open Document 7 years 5 months ago #11357

  • sbettal
  • sbettal's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
Hi,

I provided one image in that the file path also there.

Please Log in or Create an account to join the conversation.

Unable to Open Document 7 years 5 months ago #11375

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum