Display a print preview dialog box for an html string.
Parameters: | html – a string containing the html to render in the print preview. |
---|
the rendering of the html can be customised using the same attributes as those of the PrintPreview class.
Render a jinja template into a print preview dialog.
Parameters: |
|
---|
Display a print preview dialog box.
Parameters: | document – an instance of QtGui.QTextDocument or QtWebKit.QWebView that has a print_() method. The thread affinity of this object will be changed to be able to use it in the GUI. |
---|
the print preview can be customised using these attributes :
the page size, by default QtGui.QPrinter.A4 is used
the page orientation, by default QtGui.QPrinter.Portrait is used.