I use Aspose.Words 19.12 to convert word document to PDF. I want to encrypt the PDF file by this code:
var document = new Aspose.Words.Document(sourceFilePath);
var pdfSaveOption = new Aspose.Words.Saving.PdfSaveOptions();
var ownerPassword = Guid.NewGuid().ToString("N");
var pdfSecurityDetails = new Aspose.Words.Saving.PdfEncryptionDetails(string.Empty, ownerPassword, Aspose.Words.Saving.PdfEncryptionAlgorithm.RC4_128);
pdfSecurityDetails.Permissions = Aspose.Words.Saving.PdfPermissions.DisallowAll;
pdfSaveOption.EncryptionDetails = pdfSecurityDetails;
document.Save(resultFilePath, pdfSaveOption);
How I can encrypt the PDF by the AESx128 algorithm?