Method

GtkPrintOperationset_export_filename

since: 2.10

Declaration [src]

void
gtk_print_operation_set_export_filename (
  GtkPrintOperation* op,
  const gchar* filename
)

Description [src]

Sets up the GtkPrintOperation to generate a file instead of showing the print dialog. The indended use of this function is for implementing “Export to PDF” actions. Currently, PDF is the only supported format.

“Print to PDF” support is independent of this and is done by letting the user pick the “Print to PDF” item from the list of printers in the print dialog.

Available since: 2.10

Parameters

filename

Type: const gchar*

The filename for the exported file.

The data is owned by the caller of the method.
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.