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

Invalid password error while opening some files

More
IP: 192.168.0.71 8 years 8 months ago - 8 years 8 months ago #13267 by rohitgarg2990
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;
}
Last edit: 8 years 8 months ago by rohitgarg2990.
More
IP: 192.168.0.71 8 years 8 months ago #13268 by radaee
the demo project can open and view pages, so it is error from your project.
Time to create page: 0.387 seconds
Powered by Kunena Forum