Hi
It seams I found bug in Aspose.Words 14.5.0.
Aspose.Words.FileCorruptedException exception is thrown while saving DOCX as PDF1.5 if password was specified. File is not encrypted. I did not tested on other new formats, but it works OK with DOC file.
var name = "docx.docx";
var doc = new Document(d.FileName, new Aspose.Words.LoadOptions("1111111111"));
PdfSaveOptions docPdfOptions = new PdfSaveOptions();
docPdfOptions.Compliance = PdfCompliance.Pdf15;
doc.Save(name + ".pdf");
var doc = new Document(d.FileName, new Aspose.Words.LoadOptions("1111111111"));
PdfSaveOptions docPdfOptions = new PdfSaveOptions();
docPdfOptions.Compliance = PdfCompliance.Pdf15;
doc.Save(name + ".pdf");
Thanks,
Alex Shloma