gnomeprint.Job — Job object for GnomePrint
class gnomeprint.Job(gobject.GObject): |
|
gnomeprint.Job(config
)
| a gnomeprint.Config . |
Returns : | a new gnomeprint.Job .
|
Creates a new gnomeprint.Job
object.
def get_config()
Returns : | a referenced gnomeprint.Config for this job,
None on error. |
The get_config
() method gets a reference to the configuration of the job.
def get_context()
Returns : | the printing context, None on error. |
The get_context
() method retrieve the gnomeprint.Context
which applications print to.
def close()
The close
() method closes the gnomeprint.Job
job, ready for
printing or previewing. To be called after the application has finished sending the drawing commands.
def print()
Returns : | GNOME_PRINT_OK on success GNOME_PRINT_ERROR_UNKNOWN otherwise. |
The print
() method print the pages stored in the
gnomeprint.Job
to the phyisical printing device.
def render(ctx
)
| a gnomeprint.Context . |
Returns : |
The render
() renders printout to specified context (with layout, ignoring copies).
def render_page(ctx
, page
, pageops
)
| a gnomeprint.Context . |
| the page number to print. |
| |
Returns : |
The render_page
() method renders the specified page page
.
def get_pages()
Returns : | the number of pages, 0 on error. |
The get_double
() method find the number of pages stored in a completed printout. This is the number of physical pages, so if
the layout can hold 4 pages per page, and 5 logical pages are printed (5 beginpage/endpage convinations) 2 is returned