1

Hi, how can i execute a javascript function (to hide a div containing an "generating PDF" animated gif) in the parent frame?
I tried at the end of the html code, but don't work because the pdf library don't parse the <script> tag. I also tried after $html2pdf->Output('file.pdf'); but, obviously, don't work because of the headers.

Thank you.

2

- in the php file who generate the PDF : save a variable in session that contain the time of end-generation
- in a new php file, return the variable in session, if exist
- in you parent frame : make a ajax call to the new php file to know the state.

this in not a html2pdf pb, but a PHP-html pb : how to know the state of a php child script in the parent HTML who call the child
Ancien pseudo : lolo

3

Thanks, Spipu.
I had thought of something like that, but wondered if perhaps there was some function for this in html2pdf.