print_file


Description:

public async bool print_file (Window? parent, PrintSetup? setup, File file, Cancellable? cancellable) throws Error

This function prints a file.

If you pass `NULL` as setup, then this method will present a print dialog. Otherwise, it will attempt to print directly, without user interaction.

The callback will be called when the printing is done. It should call [method@Gtk.PrintDialog.print_file_finish] to obtain the results.

Parameters:

this

a `GtkPrintDialog`

parent

the parent `GtkWindow`

setup

the `GtkPrintSetup` to use

file

the `GFile` to print

cancellable

a `GCancellable` to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback