Hello,
I created a PDF in c # using namespace PdfSharp pulled off the web.
Now I want to secure the document and set a 'Not Allowed' for a number of security parameters (such as 'Content Copying',' Page Extraction' and more),
and add a digitally sign the document.
All this through code in c #.
Can anyone help?
Thank you!
Loading
Tuhin PaulPosted Oct 4, 2025, 2:32 AM
This is preety old post. But still relevant. PDFsharp (PdfSharp) has significant limitations when it comes to PDF security and digital signatures:
PDFsharp Limitations
Syncfusion offers comprehensive PDF security and signing features.
Install:
Example:
Isla MartisPosted Oct 3, 2025, 10:15 AM
To protect your document from various security risks and ensure it remains tamper-proof, you should digitally sign the PDF. A digital signature adds authenticity, integrity, and protection to your file. If you also need a certificate for signing, you can get a Code Signing Certificate from SignMyCode.com.
Leon DPosted Sep 15, 2019, 8:45 PM
You can use Spire.PDF for .NET library to digitally sign a PDF and set the security permissions at once.
Mohamed AbedallahPosted Sep 12, 2019, 11:00 AM
1. About a year ago, I submitted this answer on how to change the PDF security options:
https://www.c-sharpcorner.com/forums/dev-express-pdf-viewer-control
About digital signature, here is another post where I explained how to sign a PDF and how to check the signature:
https://www.c-sharpcorner.com/Forums/digital-signatures-in-pdf-file
Bharat VasantPosted Sep 5, 2019, 1:59 AM
George ericPosted Jun 6, 2012, 4:03 AM
An alternative choice but commercial one is spire.pdf and I also direct you to a programming guide: How to Create PDF Digital Signature.
Hope the two can help you in this regards.