It depends what you want to do with the document and how long the document would be. If it is short and you only need to print it then using QPainter directly on a printer would be the simplest approach. Using HTML is also easy but it is hard to control the size of the document this way.
Bookmarks