PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jan 25, 2020 7:31 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Encrypted PDF addWebLink
PostPosted: Mon Jul 06, 2015 11:42 am 
Offline

Joined: Mon Jul 06, 2015 11:15 am
Posts: 1
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=637
viewtopic.php?f=2&t=2859

Are you able to fix this bug soon?

Thank you for your effort
Best regards

L. Egli


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group