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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Decrypting pdf files

Thread ID:





124003 May 7,2016 09:31 AM UTC May 11,2016 09:28 AM UTC Windows Phone 3
Tags: PDF
Mateusz Rogulski
Asked On May 7, 2016 09:31 AM UTC


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,

Sasi Kumar Sekar [Syncfusion]
Replied On 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 

Mateusz Rogulski
Replied On 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,

Sasi Kumar Sekar [Syncfusion]
Replied On May 11, 2016 09:28 AM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon