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

PDF File Name is gibberish after unlocking

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

5 Replies

KC Karthikeyan Chandrasekar Syncfusion Team January 23, 2019 06:17 AM

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  



RC Ravi Chandran January 23, 2019 10:22 PM

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


KC Karthikeyan Chandrasekar Syncfusion Team January 24, 2019 06:58 AM

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  



RC Ravi Chandran January 24, 2019 07:00 AM

"test" is the password for the file


KC Karthikeyan Chandrasekar Syncfusion Team January 25, 2019 04:12 AM

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  


Loader.
Live Chat Icon For mobile
Up arrow icon