Welcome Guest Search | Active Topics | Sign In | Register

Password protected PDF is opening in Microsoft Edge browser without asking for password Options
Ramesh
Posted: Thursday, April 11, 2019 3:48:40 AM
Rank: Newbie
Groups: Member

Joined: 4/11/2019
Posts: 2
PDF is opening in Microsoft Edge browser without asking for its password where its actually working well in acrobat reader.
this file has created with EO HTML to PDF.
eo_support
Posted: Thursday, April 11, 2019 11:07:57 AM
Rank: Administration
Groups: Administration

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

This depends on what password you are setting. A PDF file has two passwords, one is owner password and one is user password. If you only set the owner password, everyone will still be able to open the file. The specification says in this case a reader SHOULD ask for the actual password but technically it's not needed so not every application does so. See here for more details:

https://www.essentialobjects.com/doc/pdf/advanced/encryption.aspx

Thanks!

Ramesh
Posted: Thursday, April 11, 2019 11:17:45 AM
Rank: Newbie
Groups: Member

Joined: 4/11/2019
Posts: 2
Thanks for the response.

i have created pdf using below code. but still i'm facing the issue in Edge browser.

EO.Pdf.PdfDocumentSecurity pdfSecurity = new EO.Pdf.PdfDocumentSecurity("xyzsecure");
EO.Pdf.PdfDocument pdfDoc = new EO.Pdf.PdfDocument(strPDFPath, pdfSecurity);
pdfDoc.Security.UserPassword = "123Secure";
pdfDoc.Save(strPDFPath);

eo_support
Posted: Thursday, April 11, 2019 1:28:17 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Have you tried to set both passwords?
Bikash
Posted: Wednesday, June 17, 2020 11:48:26 AM
Rank: Newbie
Groups: Member

Joined: 6/17/2020
Posts: 1
Any updates on this issue? I tried setting both the password but still facing the issue.
eo_support
Posted: Thursday, June 18, 2020 10:03:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Bikash wrote:
Any updates on this issue? I tried setting both the password but still facing the issue.


We are not aware of any issue on this. If you set both password, you will need to enter at least one password in order to open the file.


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.