pdf-l4
pdf-l4 copied to clipboard
Javascript is not working during PDF generation
I am using "dev-master" version of library. I have set "DOMPDF_ENABLE_JAVASCRIPT" to true but javascript function doesn't get execute to set dynamic content. So while PDF gets generate, it shows blank area.
I have added script tag as below in both <head>
and <body>
tag as below:
<script type="text/javascript">
function function1()
{
//Some javascript code to generate dynamic html content
}
function1();
</script>
I have tried couple of things to fix but doesn't found any solution. Nor found any solution on internet till now. Is there any solution to fix?