We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Words sets owner password when only user password is specified during conversion to PDF

Hi!

Scenario: I convert DOCX files to encrypted PDF (specify user password) using Aspose.Words 18.8.

Issue: The problem is that it seems that Aspose.Words also sets some owner password. Adobe Reader says “Yes” in “Permissions Password” (Screenshot from Adobe Reader.png 43.2 KB).

Foxit Phantom editor does not allow to change permissions on the generated PDF. It asks for permission password (Screenshot from Foxit Phantom.png 20.4 KB). I tried empty string and “11” (used as user password in code sample) - neither one works.

Here is a code sample

var document = new Document("sample.docx", null);
var docPdfOptions = new PdfSaveOptions();
docPdfOptions.EncryptionDetails = new PdfEncryptionDetails(
    "11", string.Empty, PdfEncryptionAlgorithm.RC4_128);
docPdfOptions.Compliance = PdfCompliance.Pdf15;
document.Save("sample.docx.pdf", docPdfOptions);

sample.zip (22.5 KB)

@licenses,

For the sake of any correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17316. We will further look into the details of this problem and will keep you updated on the status of this issue. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-17316) have been fixed in this Aspose.Words for .NET 18.9 update and this Aspose.Words for Java 18.9 update.