dompdf javascript code enabling problem

1,705 views
Skip to first unread message

yogesh...@vodlo.com

unread,
Dec 17, 2014, 2:11:22 AM12/17/14
to dom...@googlegroups.com
Hi All,

I am using dompdf to generate report in my web application. It's working fine but it is not executing javascript code and not setting border to table.

PFA attachment for more details. I am setting today's date in javascript but it is not working.

I have made following changes in dompdf_config.inc.php file

def("DOMPDF_ENABLE_HTML5PARSER", true);

def("DOMPDF_ENABLE_CSS_FLOAT", true);

def("DOMPDF_ENABLE_JAVASCRIPT", true);


1_131_2014-11-12 (1).pdf

BrianS

unread,
Dec 22, 2014, 5:57:16 PM12/22/14
to dom...@googlegroups.com
dompdf does not support web browser javascript. The DOMPDF_ENABLE_JAVASCRIPT setting relates to JavaScript inserted into the PDF. And in this case dompdf still does not interpret the JS, it merely inserts it into the document and the PDF viewer parses/renders the code.

I do not know that we will ever support JS in the style that you want. For something like that you'll want to look at one of the browser-based renderes (e.g. PhantomJS).
Reply all
Reply to author
Forward
0 new messages