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.
Unfortunately, activation email could not send to your email. Please try again.

Decrypting pdf files

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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,
Mateusz

Sasi Kumar Sekar [Syncfusion]
Replied On May 9, 2016 07:28 AM

 
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. 

Regards, 
Sasi Kumar S 












Mateusz Rogulski
Replied On May 10, 2016 06:19 AM

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,
Mateusz

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

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


CONFIRMATION

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.

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.

;