Syncfusion.DocIO.Base new WordDocument to encrypted .doc file

Hello,

Im working with Syncfusion, and I need to open an encrypted .doc (1997-2003), and save it a as a new, not encrypted, .doc file.
The problem is that when I try to open it as a new WordDocument, I get "Specified password "x" is incorrect!", despite the fact that it is correct...
I will point out that this problem does not occur when I try to do the same for a .docx file...
Do you support decryption of .doc files?
The relevant code:
WordDocument word = new WordDocument(path_to_encrypted_file, password);
I also tried:
WordDocument word = new WordDocument(path_to_encrypted_file, Syncfusion.DocIO.FormatType.Doc, password);
The password is encoded with bash64 if it matters..
Thank you, Dani.

6 Replies 1 reply marked as answer

HC Hemalatha Chiranjeevulu Syncfusion Team February 1, 2021 11:43 AM UTC

Hi Dani,

Thank you for contacting Syncfusion support.

We suspect that the reported issue might be based on the file level information in the input Word documents used at your end. Could you please share us the input Word document and password. Thereby we will analyze further on the reported problem using that details and update you with appropriate solution at the earliest.

Note: If you have any confidential data in your document, please replace with some dummy data and provide us the same. We just need your document to recreate the problem you face.

Please let us know if you have any other questions.

Regards,
Hemalatha C 



DB Dani Benjamin February 1, 2021 12:27 PM UTC

Thank you for the response.
I uploaded a zip (you don't allow to upload .doc), and the encrypted file is in it.
It is just a dummy file, and its password is "qwerty" (without the apostrophes..)

Just a note, I'm using version 17.1460.0.38 of Syncfusion.DocIO.Base.

Thanks.

Attachment: abc1_f243374.zip


HC Hemalatha Chiranjeevulu Syncfusion Team February 2, 2021 10:34 AM UTC

Hi Dani,

Thank you for sharing the details.

We can reproduce the reported exception issue in our end, and we suspect it to be a defect. We will validate this issue and update you with more details on 4th February 2021.

Please let us know if you have any other questions.

Regards,
Hemalatha C
 



HC Hemalatha Chiranjeevulu Syncfusion Team February 4, 2021 02:37 PM UTC

Hi Dani,

Thank you for your patience.

On further analysis we have found that you have been trying to open the strongly Word document (DOC format) with the password. DocIO does not have support to decrypt and open strongly encrypted DOC format Word documents and also we did not have plans to implement this feature.

As we are concentrating to add DOCX file format specific features, there is no plan for adding this feature for DOC file format. We have support to open the strongly encrypted Word documents in DOCX format. So, we recommend you use the DOCX file format by convert using Microsoft Word application, to achieve your requirement.

Please let us know if you have any other questions.

Regards,
Hemalatha C



DB Dani Benjamin February 7, 2021 01:51 PM UTC

Ok, Thank you.
Are not supporting the same issue with .ppt and .xls? 
Because I got "Wrong Presentation version" when trying to open .ppt with a password.
Using Syncfusion.Presentation.Presentation.

FileStream fs = File.Open(protectedPowerPointFilePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrtie);
IPresentation pw = Presentation.Open(fs, password);


HC Hemalatha Chiranjeevulu Syncfusion Team February 8, 2021 11:20 AM UTC

Hi Dani,

Thank you for your update.

Regarding .ppt:
Essential Presentation library doesn’t support the PPT format document. It supports the .PPTX, .PPTM, .POTX, .POTM file formats only. We recommend you to use *.pptx format at your end.

Please refer our UG documentation link to get more detail about Essential Presentation:
https://help.syncfusion.com/file-formats/presentation/overview

Regarding .xls:
Essential XlsIO supports opening an encrypted workbook and removing the encryption. Kindly refer the below UG link.
https://help.syncfusion.com/file-formats/xlsio/security#protect-workbook

But XlsIO doesn’t support the strong encryption algorithms and not have immediate plans to implement this.

Please let us know if you have any other questions.

Regards,
Hemalatha C

 


Marked as answer
Loader.
Up arrow icon