Is the DocumentFactory able to convert *.docx to *.pdf?
For a curernt application, we have the requirement to convert *.docx and *.doc files to a *.pdf file and append a page. Can this be done with the DocumentFactory or do we have to implement this by utilizing other tools?
The Aspose API should be able to do that, but I couldn't find an example on the Jira page for the DocumentFactory.DocumentFactory.
Edit - due to a [related question][1], I could answer it myself. Both scenarios are possible by utilizing Aspose directly.
Document doc = new Document("C:\\Users\\m.hoffmann\\Documents\\Die Kultur im Sudetenland.docx");
DocumentBuilder docBuilder = new DocumentBuilder(doc);
docBuilder.moveToDocumentEnd();
docBuilder.insertBreak(BreakType.PAGE_BREAK);
docBuilder.writeln("Dies ist ein Beispielausgabetext, welcher mit Aspose eingefügt wurde");
docBuilder.getDocument().save("C:\\Users\\m.hoffmann\\Documents\\asposeOutputEdited.pdf", SaveFormat.PDF);
[1]: https://answers.axonivy.com/questions/2526/aspose-evaluation-only-message