Hi,

try to draw QTextDocument on QImage and then draw this image on your QPrinter, this should solve your issue