I have a class creating a pdf using QTextDocument and QPainter .

What I would like to do is I would like to craate a HTML file that looks exactly same lile pdf I created