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

TOPIC:

Invalid password error while opening some files 6 years 3 months ago #13267

  • rohitgarg2990
  • rohitgarg2990's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • 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 6 years 3 months ago #13268

  • radaee
  • radaee's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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