Hi, Maybe you can use QPrinter using a QPainter: QPrinter printer; printer.setOutputFileName("file.pdf"); QPainter painter(&printer); //paint the widget of your text document - Michael.