We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Decrypting pdf files


Is there a way to decrypt PDF file using syncfusion File Formats? On your site there is info as endcypring/decrypting is one of the main features, but I haven't found such possibility. Each demo shows only encryption and after looking info PDFSecurity class I've also haven't found anything related to decrypting. Is there a way to do this?

Best regards,

3 Replies

SK Sasi Kumar Sekar Syncfusion Team May 9, 2016 11:28 AM UTC

Hi Mateusz, 

Thank you for using Syncfusion product, 

We can achieve Decrypting PDF file using PdfLoadedDocument. We have attached code snippet and sample for your reference. 

 PdfLoadedDocument ldoc = new PdfLoadedDocument(“Encrypt.pdf”, "syncfusion");   
 PdfDocument doc = new PdfDocument(); 
 doc.ImportPageRange(ldoc, 0, ldoc.Pages.Count - 1); 

Sample Link: 

Please let us know if you have any further assistance on this. 

Sasi Kumar S 

MR Mateusz Rogulski May 10, 2016 10:19 AM UTC

Hi Sasi,

thanks a lot! It solved my problem in 100%. My only suggestion is to somehow improve documentation because I've found it very hard to find anything about that.

Best regards,

SK Sasi Kumar Sekar Syncfusion Team May 11, 2016 09:28 AM UTC

Hi Mateusz,  
Thank you for your feedback, we will update in our UG documentation. 
Sasi Kumar S.  

Live Chat Icon For mobile
Up arrow icon