When inserting HTML into the PDF using writeHTML(), if an element in the DOM has style "display:none" and there are no other elements after it, undefined offset errors occur.
PHP Notice: Undefined offset: 4 in /home/indrek/tcpdf/tcpdf.php on line 17362
PHP Notice: Undefined offset: 4 in /home/indrek/tcpdf/tcpdf.php on line 17376
PHP Notice: Undefined offset: 4 in /home/indrek/tcpdf/tcpdf.php on line 17427
PHP Notice: Undefined offset: 4 in /home/indrek/tcpdf/tcpdf.php on line 17479
PHP Notice: Undefined offset: 4 in /home/indrek/tcpdf/tcpdf.php on line 17687
PHP Notice: Undefined offset: 4 in /home/indrek/tcpdf/tcpdf.php on line 18145
PHP Notice: Undefined offset: 4 in /home/indrek/tcpdf/tcpdf.php on line 18435
When inserting HTML into the PDF using
writeHTML()
, if an element in the DOM has style "display:none" and there are no other elements after it, undefined offset errors occur.Simple test script:
Expected behaviour: no errors.
Actual behaviour: