PrintJob.setSourceFile

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 gtk_printer_accepts_pdf() and gtk_printer_accepts_ps(). Since 2.10

class PrintJob
int
setSourceFile
(
string filename
)

Parameters

filename string

the file to be printed. [type filename]

Return Value

Type: int

FALSE if an error occurred

Throws

GException on failure.

Meta