Copy link to clipboard
Copied
Im getting this error when converting docx to pdf , the docx is protected and i know the password, so i want to bypass the password before converting.{"Source file is protected and cannot be processed.; requestId=48671aa7-a481-47d8-a707-2d980edffd2d"}
Copy link to clipboard
Copied
I have tried this but didnt work
emoveProtectionOperation removeProtectionOperation = RemoveProtectionOperation.CreateNew();
FileRef sourceFileRef = FileRef.CreateFromLocalFile(@"test.docx");
removeProtectionOperation.SetInput(sourceFileRef);removeProtectionOperation.SetPassword("password");FileRef result = removeProtectionOperation.Execute(executionContext);
Copy link to clipboard
Copied
As I said in the other thread I believe you opened, you can't use our API to remove a password from a Word document.