1

I have a page that I get into a file_get_contents and if I add a echo on my string, I get the right view i want.

Now im adding the FPDF tool with the HTML2PDF Script and im getting some:

Uncaught ERROR 1 tag HEADER does not yet exist

I have then added this to my html2pdf.class.php file (bc the same error come with the SECTION tag after adding HEADER)

/**
* tag : HEADER
* mode : OPEN
*
* @param array $param
* @return boolean
*/
protected function _tag_open_HEADER($param)
{
return $this->_tag_open_B($param, 'header');
}

/**
* tag : SECTION
* mode : OPEN
*
* @param array $param
* @return boolean
*/
protected function _tag_open_SECTION($param)
{
return $this->_tag_open_B($param, 'section');
}

/**
* tag : HEADER
* mode : CLOSE
*
* @param array $param
* @return boolean
*/
protected function _tag_close_HEADER($param)
{
return $this->_tag_close_B($param);
}

/**
* tag : SECTION
* mode : CLOSE
*
* @param array $param
* @return boolean
*/
protected function _tag_close_SECTION($param)
{
return $this->_tag_close_B($param);
}

After adding first the HEADER open/close tag i then got the error about the SECTION tag then i added that on the same way as the HEADER tag with the open/close tag, now i get this error..

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/domain.dk/public_html/_class/parsingCss.class.php on line 1246

Do someone know where i can increase the time or fix the error ? Or do someone have a working html2pdf.class.php file thats works with HTML5

2

This is a php limitation, not html2pdf.
You change increase the time limit in the php.ini, or add this line at the beginning of your script.set_time_limit(0);

3

Thomaspetersen Hello, you managed to put protection in pdf generated by html2pdf? if you could, could you help me by sending me an example? I thank you for your help.