gnomeprint.Job
gnomeprint.Job — Job object for GnomePrint
Constructor
gnomeprint.Job(config
)
Creates a new gnomeprint.Job
object.
Methods
gnomeprint.Job.get_config
def get_config()
The get_config
() method gets a reference to the configuration of the job.
gnomeprint.Job.get_context
def get_context()
Returns : | the printing context, None on error. |
The get_context
() method retrieve the gnomeprint.Context
which applications print to.
gnomeprint.Job.close
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.
gnomeprint.Job.print
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.
gnomeprint.Job.render
def render(ctx
)
The render
() renders printout to specified context (with layout, ignoring copies).
gnomeprint.Job.render_page
def render_page(ctx
, page
, pageops
)
The render_page
() method renders the specified page page
.
gnomeprint.Job.get_pages
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
gnomeprint.Job.print_to_file
def print_to_file(output
)
output : | filename. |
Returns : | |
The print_to_file
() method prints the output to filename
.