Invalid password error while opening some files - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Invalid password error while opening some files

Invalid password error while opening some files 10 months 3 weeks ago #13267

  • rohitgarg2990
  • rohitgarg2990's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Hi Team, I am getting invalid password error while opening certain files. Following could be helpful info to debug this issue.

Path: /storage/emulated/0/SmartOffice/Drive/attachment.pdf
Find attached file.
I am getting ret = -1 from the below code while opening
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);
mDocPath = path; // Nermeen
}
return ret;
}
return 0;
}
Attachments:

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

Last edit: by rohitgarg2990.

Invalid password error while opening some files 10 months 3 weeks ago #13268

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
the demo project can open and view pages, so it is error from your project.

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

  • Page:
  • 1
Powered by Kunena Forum