spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.68k stars 749 forks source link

Problem with draw & circle #744

Closed wptechnology closed 1 year ago

wptechnology commented 1 year ago

Hello,

In a PDF generation, I've got the following code, which is inside a div:

I have tried the normal <circle .... /> syntax, tried also a <circle ...> and then the one without closing tag, found in one of you example.

I always get the following error : Fatal error: Uncaught Spipu\Html2Pdf\Exception\HtmlParsingException: The asked [circle] tag is not in a [DRAW] tag

wptechnology commented 1 year ago

Answering my own question : crazy thing, a draw tag MUST NOT been inserted into div tags !!! Not really HTML compliant :/