Welcome Guest Search | Active Topics | Sign In | Register

Password protected PDF on Iphone/Ipad Options
Ibiuna
Posted: Friday, September 2, 2011 10:31:04 AM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
Hello.

I don't know if that's a problem with your software or just the way apple works, but when i put a password on the pdf and open it on iphone or ipad, they completely ignore the password.

Could you tell me if it's your software or apple's ?

Thanks
eo_support
Posted: Friday, September 2, 2011 10:37:17 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

How did you put a password on the PDF file? Can you post a small piece of test code?

Thanks
Ibiuna
Posted: Friday, September 2, 2011 10:40:38 AM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
There:

HtmlToPdf.Options.AutoFitX = HtmlToPdfAutoFitMode.ShrinkToFit;
HtmlToPdf.Options.AutoFitY = HtmlToPdfAutoFitMode.ShrinkToFit;
HtmlToPdf.ConvertUrl(urlDashboard, pdfDoc);

HtmlToPdf.Options.StartPageIndex = pdfDoc.Pages.Count - 1;
HtmlToPdf.Options.StartPosition = 0;
HtmlToPdf.ConvertUrl(urlCharts, pdfDoc);

pdfDoc.Security.UserPassword = "xxxxxxx";

pdfDoc.Save(pdfFilePath);
eo_support
Posted: Friday, September 2, 2011 11:02:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Your code looks correct. We do not know why iPad would be able to open your password protected PDF file. Can you create a small test file and send it to us? Please let us know if you need our email address.

Thanks!
Ibiuna
Posted: Friday, September 2, 2011 11:05:31 AM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
Sure,

Please PM me the e-mail which to send the file.

Thanks.
eo_support
Posted: Friday, September 2, 2011 4:45:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This seems to be an iPad issue. Our documentation about password is inaccurate. In order to fully protect a PDF document, you should set both UserPassword and OwnerPassword.

PDF specification has a "default" internal password. If only one of the two passwords is set, this default internal password will be used as the other password. As a result, technically it is still possible to decode the PDF file with this default password, even though almost all PDF Viewer would refuse to do so ---- except iPad.

Please try to set both passwords and that should prevent iPad from correctly opening the document. It will still “open” it without prompting for a password (we do not know why), but it will not be able to display the PDF content (shows a blank page).

Thanks
Ibiuna
Posted: Friday, September 2, 2011 5:34:54 PM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
Hi

We still are gonna buy your product but most of our users are gonna open those pdfs in Ipad's, and since the are sent by e-mail, we need the security, so this outcome is pretty bad for us.

Is there anyway we can investigate this futher or there are any other way that we can secure the files ?

Thanks in advance.
eo_support
Posted: Friday, September 2, 2011 5:39:51 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I am not sure if I understand your question correctly. The file WILL BE SECURED if you set BOTH passwords.

Thanks!
Ibiuna
Posted: Friday, September 2, 2011 5:46:55 PM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
Yes it will be secure, but you said that the file won't open too, it will only display a blank page. And most of our users receive and open those reports in Ipad's, so that's not really a option.

Since I'm not very familiar with all the functions, i wanted to know if there's anything you guys can do to make it open in the ipad, or another way for me to secure the file, that will open on Ipad.

Thanks
Ibiuna
Posted: Friday, September 2, 2011 6:27:58 PM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
Reading around the internet i found out that it's really a problem to open protected pdfs on the Ipad.

Is there any other way of securing the pdf ?
eo_support
Posted: Friday, September 2, 2011 6:43:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I don't think so. The PDF file we generated is correct. All other platform would prompt the password correctly. It does appear that iPad does not have the ability to prompt password on a password protected PDF file. Obviously if it does not have this ability at all, then we have no way of making it to ask for password.

If this is the case, then only Apple can fix it --- I would not expect them to fix a bug for you tomorrow though. So you may want to seek alternative solutions. There are a number of PDF Viewer applications in Apple’s app store that claim to be able to open password protected files, so that’s one option. Another option is to email a link to your website instead of the PDF files itself. This way once they click the link, you web page can verify the password. This essentially takes the security feature off the PDF file and move to your website.

Thanks
Ibiuna
Posted: Friday, September 2, 2011 7:11:59 PM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
Yup, don't have the time to depend on apple.

We'll work out the solution here.

But thank you very much for the info and the support.
eo_support
Posted: Friday, September 2, 2011 7:15:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You are very welcome. Please feel free to let us know if you have any more questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.