It derives from <GObject>.
Represents a job that is sent to a printer.
You only need to deal directly with print jobs if you use the
non-portable <GtkPrintUnixDialog> API.
Use print-job:get-surface to obtain
the cairo surface onto which the pages must be drawn. Use
print-job:send to send the finished job to
the printer. If you don’t use cairo
<GtkPrintJob> also supports printing of manually
generated PostScript, via print-job:set-source-file?.
Page setup.
Its value is a <GtkPageSetup>, or #f.
It can only be set when the object is made, with #:page-setup.
The printer to send the job to.
Its value is a <GtkPrinter>, or #f.
It can only be set when the object is made, with #:printer.
Printer settings.
Its value is a <GtkPrintSettings>, or
#f.
It can only be set when the object is made, with #:settings.
The title of the print job.
Its value is a string, or #f.
It can only be set when the object is made, with #:title.
#t if the print job will continue to emit status-changed signals
after the print data has been setn to the printer.
Its value is a boolean.
Set it with (set! (print-job:track-print-status self) value).
Gets whether this job is printed collated.
Passed: a <GtkPrintJob>.
Returned: a boolean.
whether the job is printed collated
Gets the n-up setting for this job.
Passed: a <GtkPrintJob>.
Returned: an unsigned 32-bit integer.
the n-up setting
Gets the n-up layout setting for this job.
Passed: a <GtkPrintJob>.
Returned: a <GtkNumberUpLayout>.
the n-up layout
Gets the number of copies of this job.
Passed: a <GtkPrintJob>.
Returned: a 32-bit integer.
the number of copies
Gets the page ranges for this job.
Passed: a <GtkPrintJob>.
Returned: a vector, each a <GtkPageRange>.
a pointer to an array of <GtkPageRange> structs
Not returned: it is the length of %return.
return location for the number of ranges
Gets the <GtkPageSet> setting for this job.
Passed: a <GtkPrintJob>.
Returned: a <GtkPageSet>.
the <GtkPageSet> setting
Gets the <GtkPrintPages> setting for this job.
Passed: a <GtkPrintJob>.
Returned: a <GtkPrintPages>.
the <GtkPrintPages> setting
Gets the <GtkPrinter> of the print job.
Passed: a <GtkPrintJob>.
Returned: a <GtkPrinter>.
the printer of self
Gets whether this job is printed reversed.
Passed: a <GtkPrintJob>.
Returned: a boolean.
whether the job is printed reversed.
Gets whether the job is printed rotated.
Passed: a <GtkPrintJob>.
Returned: a boolean.
whether the job is printed rotated
Gets the scale for this job.
Passed: a <GtkPrintJob>.
Returned: a real number.
the scale
Gets the <GtkPrintSettings> of the print
job.
Passed: a <GtkPrintJob>.
Returned: a <GtkPrintSettings>.
the settings of self
Gets the status of the print job.
Passed: a <GtkPrintJob>.
Returned: a <GtkPrintStatus>.
the status of self
Gets a cairo surface onto which the pages of the print job should be rendered.
Passed: a <GtkPrintJob>.
Returned: a <CairoSurface>.
the cairo surface of self
Gets the job title.
Passed: a <GtkPrintJob>.
Returned: a string.
the title of self
Returns whether jobs will be tracked after printing.
For details, see print-job:set-track-print-status.
Passed: a <GtkPrintJob>.
Returned: a boolean.
#t if print job status will be reported after printing
Creates a new <GtkPrintJob>.
Passed: a string.
the job title
Passed: a <GtkPrinter>.
Passed: a <GtkPrintSettings>.
Passed: a <GtkPageSetup>.
Returned: a <GtkPrintJob>.
a new <GtkPrintJob>
Sends the print job off to the printer.
Passed: a <GtkPrintJob>.
Passed: a procedure.
function to call when the job completes or an error occurs
See GtkPrintJobCompleteFunc for how
it is called.
Not passed: guile-gi supplies it.
user data that gets passed to callback
Not passed: guile-gi supplies it.
destroy notify for user-data
See GDestroyNotify for how it is
called.
Sets whether this job is printed collated.
Passed: a <GtkPrintJob>.
Passed: a boolean.
whether the job is printed collated
Sets the n-up setting for this job.
Passed: a <GtkPrintJob>.
Passed: an unsigned 32-bit integer.
the n-up value
Sets the n-up layout setting for this job.
Passed: a <GtkPrintJob>.
Passed: a <GtkNumberUpLayout>, or one of
its symbols.
the n-up layout setting
Sets the number of copies for this job.
Passed: a <GtkPrintJob>.
Passed: a 32-bit integer.
the number of copies
Sets the page ranges for this job.
Passed: a <GtkPrintJob>.
Passed: a list or vector, each a <GtkPageRange>.
pointer to an array of <GtkPageRange> structs
Not passed: guile-gi gives the length of ranges.
the length of the ranges array
Sets the <GtkPageSet> setting for this job.
Passed: a <GtkPrintJob>.
Passed: a <GtkPageSet>, or one of its symbols.
a <GtkPageSet> setting
Sets the <GtkPrintPages> setting for this job.
Passed: a <GtkPrintJob>.
Passed: a <GtkPrintPages>, or one of its
symbols.
the <GtkPrintPages> setting
Sets whether this job is printed reversed.
Passed: a <GtkPrintJob>.
Passed: a boolean.
whether the job is printed reversed
Sets whether this job is printed rotated.
Passed: a <GtkPrintJob>.
Passed: a boolean.
whether to print rotated
Sets the scale for this job.
1.0 means unscaled.
Passed: a <GtkPrintJob>.
Passed: a real number.
the scale
Make the <GtkPrintJob> send an existing document
to the printing system.
The file can be in any format understood by the platforms printing
system (typically PostScript, but on many platforms PDF may work too).
See printer:accepts-pdf? and
printer:accepts-ps?.
This is similar to print-job:set-source-file?, but takes expects an open
file descriptor for the file, instead of a filename.
Passed: a <GtkPrintJob>.
Passed: a 32-bit integer.
a file descriptor
Returned: a boolean.
#f if an error occurred
Make the <GtkPrintJob> send an existing document
to the printing system.
The file can be in any format understood by the platforms printing
system (typically PostScript, but on many platforms PDF may work too).
See printer:accepts-pdf? and
printer:accepts-ps?.
Passed: a <GtkPrintJob>.
Passed: a file name, as a string.
the file to be printed
Returned: a boolean.
#f if an error occurred
If track_status is #t, the print job will try to continue report
on the status of the print job in the printer queues and printer.
This can allow your application to show things like “out of paper” issues, and when the print job actually reaches the printer.
This function is often implemented using some form of polling, so it should not be enabled unless needed.
Passed: a <GtkPrintJob>.
Passed: a boolean.
#t to track status after printing
Connect a handler with (connect object print-job:status-changed
handler). It is called as (handler self).
Emitted when the status of a job changes.
The signal handler can use print-job:get-status to obtain the new status.
Passed: a <GtkPrintJob>.