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;
}