mateprint.Job

Job object for MatePrint

## Synopsis

        mateprint.Job
        gobject.GObject

    	   mateprint.Job
    	   config

    	    get_config

            get_context

            close

            print

            render
            ctx

            render_page
            ctx
            page
            pageops

            get_pages

            print_to_file
            output

## Ancestry

    +-- gobject.GObject
      +-- mateprint.Job

## Properties

> "config" | Read | The configuration for the print job.
> "context" | Read-Write | The context for the print job.

## Description

## Constructor

    	  mateprint.Job
    	  config

`config` :

- a `mateprint.Config`.

Returns :

- a new `mateprint.Job`.

Creates a new `mateprint.Job` object.

## Methods

### mateprint.Job.get_config

                    get_config

Returns :

- a referenced `mateprint.Config` for this job, `None` on error.

The `get_config`() method gets a reference to the configuration of the job.

### mateprint.Job.get_context

                    get_context

Returns :

- the printing context, `None` on error.

The `get_context`() method retrieve the `mateprint.Context` which applications print to.

### mateprint.Job.close

                    close

The `close`() method closes the `mateprint.Job` job, ready for printing or previewing. To be called after the application has finished sending the drawing commands.

### mateprint.Job.print

                    print

Returns :

- MATE_PRINT_OK on success MATE_PRINT_ERROR_UNKNOWN otherwise.

The `print`() method print the pages stored in the `mateprint.Job` to the phyisical printing device.

### mateprint.Job.render

                    render
                    ctx

`ctx` :

- a `mateprint.Context`.

Returns :

The `render`() renders printout to specified context (with layout, ignoring copies).

### mateprint.Job.render_page

                    render_page
                    ctx
                    page
                    pageops

`ctx` :

- a `mateprint.Context`.

`page` :

- the page number to print.

`pageops` :

Returns :

The `render_page`() method renders the specified page `page`.

### mateprint.Job.get_pages

                    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

### mateprint.Job.print_to_file

                    print_to_file
                    output

`output` :

- filename.

Returns :

The `print_to_file`() method prints the output to `filename`.