wordfiles.zip (18.8 KB)
Hi,
I have a Microsoft Word 2016 document (word16file.docx) which I want to convert to pdf like this:
com.aspose.words.Document doc = new com.aspose.words.Document(path);
doc.save(“pdffile.pdf”, SaveFormat.PDF);
I get this error: The document appears to be corrupted and cannot be loaded.
I have tried with different Word2016 documents and I always get the same error but, if I try to convert a Microsoft Word 2010 document (word10file.docx) using the same method, it works fine.
I am using aspose-words-18.3-jdk16.jar.
Waiting for your help. Thank you in advance.