Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Apr 10, 2017 6:36 am

Hi,

I have an issue regarding the encryption of document.
I'm load an docx document, and then encrypt it using password.
Then I save it as PDF, and I assume that the PDF will be secured as well.
But it looks that is not secured.

Code I use for encryption:
document.Encrypt("pass");

Could you help me achieve this?

mihai.cotet
 
Posts: 2
Joined: Tue Mar 14, 2017 10:00 am

Mon Apr 10, 2017 8:56 am

Dear mihai.cotet,

Thanks for your inquiry.
Sorry that at present Spire.Doc doesn’t support converting Word to PDF with encrypted password.
But we have added this new feature into our schedule. Once it is done, we will inform you immediately.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Apr 21, 2017 7:07 am

Dear mihai.cotet,

Thanks for waiting.
Now the new feature has been done, welcome to test Spire.Doc Pack(hot fix) Version:5.8.92.
Code snippet for your kind reference.
Code: Select all
ToPdfParameterList toPdf = new ToPdfParameterList();
toPdf.PdfSecurity.UserPassword = "e-iceblue";
doc.SaveToFile("testPdfSecurity.Pdf", toPdf);

Looking forward to your feedback.

Sincerely,
Betsy
E-icbelue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc