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

Free Support Forum - aspose.com

Issue saving word doc to PDF

When saving this word doc as PDF, an exception is thrown

This is the code to repro:

         const string input = @".\\comment_spanning_pages.docx";
         var output = Path.GetTempFileName();
         var doc = new Document(input, new LoadOptions());
         doc.Save(output, SaveFormat.Pdf);

@PeteLee

Thanks for your inquiry. We have tested your provided document using the latest version of Aspose.Words 18.12 and found no issue. Please make sure you are using the latest version of Aspose.Words for .NET 18.12 . Also, please use the following code to save output PDF.

const string input = @ ".\\comment_spanning_pages.docx";
var output = Path.GetTempPath() + "output_18.12.pdf";
var doc = new Document(input, new LoadOptions());
doc.Save(output, SaveFormat.Pdf);

Please check document for your reference. output_18.12.pdf (26.1 KB)