PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Aug 21, 2024 6:13 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Feb 18, 2016 6:17 am 
Offline

Joined: Thu Feb 18, 2016 6:04 am
Posts: 2
Hi Team,

I am trying to update an application to use the latest version of Pdfsharp.

Pdfsharp is used to password protect the document, save it to a location and then add a watermark to the document at the location. After updating to latest Pdfsharp the property SecuritySettings.MaintainOwnerAndUserPassword seems to be obsolete.

Does the latest pdfsharp maintain the password after adding the watermark without setting the MaintainOwnerAndUserPassword property?

Any help would be much appreciated.

Thanks!!


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2016 9:07 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3109
Location: Cologne, Germany
Hi!

There are no intended changes with respect to password handling.

If you think there is a new bug, then please submit a sample project that allows us to replicate the issue.

See also:
viewtopic.php?f=2&t=832
http://www.pdfsharp.net/wiki/IssueSubmissions.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2016 10:10 pm 
Offline

Joined: Thu Feb 18, 2016 6:04 am
Posts: 2
Hi Thomas,

Thanks for the reply.

The application I am updating is an old one and there are no unit tests written to conduct a test. I will have to wait till an integration testing can be done. For the time being I have commented the line as below

if (document.SecurityHandler.Elements.Count > 0)
{
document.SecuritySettings.DocumentSecurityLevel = PdfDocumentSecurityLevel.Encrypted128Bit;
//document.SecuritySettings.MaintainOwnerAndUserPassword = true;
}
This is a code snippet in the function for creating the watermark.

Hope that the latest pdfsharp would maintain the password after watermarking.

Thanks again!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 30 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