Hi Developers
I'm using PDFSharp for my project and found a possible Bug with encryption and webLinks.
Consider this code:
Code:
PdfSharp.Pdf.PdfDocument doc = new PdfSharp.Pdf.PdfDocument();
var securitySettings = doc.SecuritySettings;
securitySettings.OwnerPassword = "dummypassword"; // <<---- will encrypt links
securitySettings.PermitModifyDocument = false;
securitySettings.PermitAssembleDocument = false;
securitySettings.PermitExtractContent = true;
securitySettings.PermitAnnotations = false;
securitySettings.PermitFormsFill = false;
securitySettings.PermitFullQualityPrint = true;
securitySettings.PermitAccessibilityExtractContent = true;
doc.AddPage();
doc.Pages[0].AddWebLink(new PdfSharp.Pdf.PdfRectangle(new PdfSharp.Drawing.XRect(200,500,200,200)), "http://www.example.com/");
doc.Save("test.pdf");
Now, if we open the created document, the weblink isn't decrypted, thus completly messed up.
Btw. It also happens, if you use the userPassword setting.
It's the same bug as described here, i guess:
viewtopic.php?f=3&t=637viewtopic.php?f=2&t=2859Are you able to fix this bug soon?
Thank you for your effort
Best regards
L. Egli