PrintJob.setSourceFd

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 [method@Gtk.Printer.accepts_pdf] and [method@Gtk.Printer.accepts_ps].

This is similar to [method@Gtk.PrintJob.set_source_file], but takes expects an open file descriptor for the file, instead of a filename.

class PrintJob
bool
setSourceFd
(
int fd
)

Parameters

fd int

a file descriptor

Return Value

Type: bool

%FALSE if an error occurred

Throws

GException on failure.

Meta