pdf-l4 icon indicating copy to clipboard operation
pdf-l4 copied to clipboard

Javascript is not working during PDF generation

Open krunaltech opened this issue 9 years ago • 0 comments

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?

krunaltech avatar Jan 22 '16 06:01 krunaltech