ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.08k stars 237 forks source link

Add security password to PDF #17

Closed sanglanun closed 6 years ago

sanglanun commented 6 years ago

Hi, I'm follow this sample to add password security into the PDF generated. But there is an error here. 1

Below is my code for adding security: PdfSecuritySettings securitySettings = document.SecuritySettings; securitySettings.UserPassword = "user"; securitySettings.OwnerPassword = "owner";

I already checking PDFSharp forum, but didn't found any error regarding this. Can you help me?

ststeiger commented 6 years ago

@anglanun: Fixed missing MD5-implementation in master with commit 783079e2023732a6f6068e450d589dfeec863c70

Fixed with with mono implementation of TransformBlock and TransformFinalBlock. UserPassword & OwnerPassword now works !

@startnow65: Could you update the nuget ?

startnow65 commented 6 years ago

Updated. Almost done with the CI part that pushes a new nugget upon merge to master

ststeiger commented 6 years ago

Great news. @sanglanun: Pull the latest version from nuget. It's fixed. I'm closing the issue now.

sanglanun commented 6 years ago

Thanks guys. It works now. Awesome 👍