I can used dompdf plugin but in pdf javascript is not working after enabling the $dompdf_option->setIsJavascriptEnabled(true);

Hi All,
Anyone suggest to me regarding javascript is not working in dompdf print functionality(For the javascript i enabled the $dompdf_option->setIsJavascriptEnabled(true)), so could please suggest me “How to integrate javascript in print”


What sort of functionality are you looking to have the JavaScript perform in your PDF?

I’m guessing showing or hiding some elements on the page?

Do yourself a favour and follow Zuluru’s unwritten advice - get rid of the javascript and just focus on plain HTML.

Further, I mainly use wkhtmltopdf for my PDF generation - and it doesn’t like relative URLs - used absolute links!