Hello!
When I convert XML to PDF/A, since 22.5 (Aspose.Words for Java 22.5 Release Notes) Apsose.Words mimics MS Word behavior. So now I am losing the Information about the XML-Structure during conversion to PDF. Is there a way to handle XML to PDF conversion the way it was before 22.5, so that in the PDF one can see the XML-structure?
Attached ist a Zip with input and resulting pdfs. xmlToPdf.zip (60.8 KB)
Kind regards!
@dvtdaten If you need the XML document to be loaded as a simple text, you can specify TEXT as a document load format explicitly. Please try using the following code:
LoadOptions opt = new LoadOptions();
opt.setLoadFormat(LoadFormat.TEXT);
Document doc = new Document("C:\\Temp\\xmlTest.xml", opt);
doc.save("C:\\Temp\\test.pdf");
Thank you, so it works as it did before 22.5.
@dvtdaten Yes, this code produces the following output: out.pdf (23.8 KB)