Free Support Forum - aspose.com

Generate dom in aspose.html java with html containing jquery and d3.js

Generate dom in aspose.html java with html containing jquery and d3.js

@sachinshahi,

Can you please explain your query in more details so that we may help you out.

inputfile.html
input.zip (178 Bytes)

Java Code
String dataDir = RunExamples.getDataDir_Data();
HTMLDocument document = new HTMLDocument(StringExtensions.concat(dataDir, “inputfile.html”));
System.out.println(document.getBody().getInnerHTML());

Acutal and Expected Output
output.png (17.5 KB)
output.png (17.5 KB)

Reference
d3.v3.js: https://d3js.org/d3.v3.min.js
jquery: https://code.jquery.com/jquery-3.4.1.min.js

It seems like jquery and d3 is not working. Can you please help me?

@sachinshahi,

I have observed your comments. Can you please visit this Convert HTML to PDF article for more details. This will help you to achieve your requirements.