print_file
Description:
public async bool print_file (Parent? parent, string title, uint token, string file, PrintFlags flags, Cancellable? cancellable) throws Error
Prints a file.
If a valid token is present in the options, then this call will print with the settings from the Print call that the token refers
to. If no token is present, then a print dialog will be presented to the user.
When the request is done, callback will be called. You can then call [method@Portal.print_file_finish] to get the results.
Parameters:
| this |
a [class@Portal] |
| parent |
parent window information |
| title |
tile for the print dialog |
| token |
token that was returned by a previous [method@Portal.prepare_print] call, or 0 |
| file |
path of the document to print |
| flags |
options for this call |
| cancellable |
optional [class@Gio.Cancellable] |
| callback |
a callback to call when the request is done |
| data |
data to pass to |