The printing module

Printing facilities for qpageview.

class PrintJob(printer, pageList, parent=None)[source]

Bases: qpageview.backgroundjob.Job

Performs a print job in the background.

Emits the following signals:

progress(pageNumber, num, total)

before each Page

finished()

when done

progress
aborted = False
setPageList(pageList)[source]

Set the pagelist to print.

pageList may be a list of two-tuples (num, page). Otherwise, the pages are numbered from 1 in the progress message. The pages are copied.

work()[source]

Paint the pages to the printer in the background.

class PrintProgressDialog(job, parent=None)[source]

Bases: PyQt5.QtWidgets.QProgressDialog

A simple progress dialog displaying the printing progress.

showProgress(page, num, total)[source]

Called by the job when printing a page.

jobFinished()[source]

Called when the print job has finished.

showErrorMessage()[source]

Reimplement to show a different or translated error message.