PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Mar 06, 2021 11:00 pm

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 

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:
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.Pages[0].AddWebLink(new PdfSharp.Pdf.PdfRectangle(new PdfSharp.Drawing.XRect(200,500,200,200)), "http://www.example.com/");


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:

Are you able to fix this bug soon?

Thank you for your effort
Best regards

L. Egli

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 5 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