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

PDF File Name is gibberish after unlocking

Thread ID:

Created:

Updated:

Platform:

Replies:

142179 Jan 23,2019 05:27 AM UTC Jan 25,2019 09:12 AM UTC ASP.NET Web Forms 5
loading
Tags: PDF
Ravi Chandran
Asked On January 23, 2019 05:27 AM UTC

Hi,

Thanks for the pdf tools and it was working awesome. I have been using this tools since 2 yrs and it works really great than other paid version tools.

Now my issue is I'm trying to decrypt pdf ie..unlocking pdf using password and the file looks good but the file name after unlocking looks gibberish as you can see the image in he attachment.

This is what I'm trying to unlock pdf document:

Dim loadedDocument As New PdfLoadedDocument(inputPath, UnlockPassword)
 'Change the user password 
Dim security As PdfSecurity = loadedDocument.Security
security.UserPassword = String.Empty
security.Algorithm = PdfEncryptionAlgorithm.AES
security.KeySize = PdfEncryptionKeySize.Key128Bit
 security.Permissions = PdfPermissionsFlags.Default
'Save the password removed PDF document
 loadedDocument.Save(outputPath)

Attachment: filename_883a3e23.rar

Karthikeyan Chandrasekar [Syncfusion]
Replied On January 23, 2019 11:17 AM UTC

Hi Ravi, 
I have checked with the below code snippet but it is working fine as expected. Can you please send us the value in ‘outputPath’ and the input document if possible, so that we could reproduce it from our side and provide you a solution. 
loadedDocument.Save(@"Test.pdf") 
Regards, 
Karthikeyan  


Ravi Chandran
Replied On January 24, 2019 03:22 AM UTC

Hi Karthikeyan,

Thanks for your reply. The output path is nothing but the path where the converted file is stored
Here is the path : "C:\Users\XXX\Desktop\mysite\downloadedfiles\40do7Zb5.pdf"

Please see the attachement for the file.

Password for the pdf file : 

Attachment: testfile_3ad4998c.rar

Karthikeyan Chandrasekar [Syncfusion]
Replied On January 24, 2019 11:58 AM UTC

Hi Ravi, 
We could not see the password for the document which you sent in the last update. However, we have tested this code snippet with a sample document and it is working fine. I have sent you a simple working sample for your reference. Can you please check in it and let us know the result. 

Regards, 
Karthikeyan  


Ravi Chandran
Replied On January 24, 2019 12:00 PM UTC

"test" is the password for the file

Karthikeyan Chandrasekar [Syncfusion]
Replied On January 25, 2019 09:12 AM UTC

Hi Ravi, 
This issue is not reproduced from our side, we have created a sample and attached for your reference. Can you modify the sample to reproduce it, so that we could analyze it further. 

Regards, 
Karthikeyan  


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.

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

;