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)