|
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.
|
|
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.aspxThanks!
|
|
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);
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Have you tried to set both passwords?
|
|
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.
|
|
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.
|
|