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

Free Support Forum - aspose.com

insertHtml without effect after save to PDF

Document doc = new Document("document-with-merge-fields.odt");

// ... (fill merge fields operations) ...

DocumentBuilder builder = new DocumentBuilder(doc);
builder.moveToMergeField("SomeField");
builder.insertHtml("

Some Text To Insert

");

doc.save("result.pdf");
doc.save("result.odt");

result.pdf NOT contains "Some Text To Insert"
result.odt contains "Some Text To Insert"

Tested on Aspose.Words for Java 16.8.0, 16.11.0
Hi,

Thanks for your inquiry. Could you please ZIP and attach your input/output documents (document-with-merge-fields.odt/result.pdf files) here for testing? We will investigate the issue on our end and provide you more information.

Best regards,