Top | ![]() |
![]() |
![]() |
![]() |
GnomePrintJob * | gnome_print_job_new () |
GnomePrintConfig * | gnome_print_job_get_config () |
GnomePrintContext * | gnome_print_job_get_context () |
gint | gnome_print_job_close () |
gint | gnome_print_job_print () |
gint | gnome_print_job_render () |
gint | gnome_print_job_render_page () |
gint | gnome_print_job_get_pages () |
gboolean | gnome_print_job_get_page_size_from_config () |
gint | gnome_print_job_print_to_file () |
GnomePrintJob *
gnome_print_job_new (GnomePrintConfig *config
);
Creates a new GnomePrintJob.
GnomePrintConfig *
gnome_print_job_get_config (GnomePrintJob *job
);
Gets a referenced pointer to the configuration of the job
GnomePrintContext *
gnome_print_job_get_context (GnomePrintJob *job
);
Retrieve the GnomePrintContext which applications print to.
The caller is responsible to unref the context when s/he is done with it.
gint
gnome_print_job_close (GnomePrintJob *job
);
Closes the GnomePrintJob job
, ready for printing or
previewing. To be called after the application has finished
sending the drawing commands
gint
gnome_print_job_print (GnomePrintJob *job
);
Print the pages stored in the GnomePrintJob to the phyisical printing device.
gint gnome_print_job_render (GnomePrintJob *job
,GnomePrintContext *ctx
);
Renders printout to specified context (with layout, ignoring copies)
gint gnome_print_job_render_page (GnomePrintJob *job
,GnomePrintContext *ctx
,gint page
,gboolean pageops
);
Renders the specified page page
gint
gnome_print_job_get_pages (GnomePrintJob *job
);
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
gboolean gnome_print_job_get_page_size_from_config (GnomePrintConfig *config
,gdouble *width
,gdouble *height
);
Deprecated, use gnome_print_config_get_page_size
gint gnome_print_job_print_to_file (GnomePrintJob *job
,gchar *output
);