My application is based on qt quick.So widget is not supported. I am trying to convert a html file to pdf, which has javascript inside. the html as below:
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>ECharts</title>
</head>
<body>
<div id="main" style="width:600px;height:400px;"></div>
**<script src="echarts.js"></script>**
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('main'));
is there any way to convert this html file to pdf with javascript taking effect?