GNOME Bugzilla – Bug 514122
Print dialog should use file name as basis for output PDF/PS file name
Last modified: 2010-10-11 04:09:20 UTC
Currently, when you print to PDF, the print-manager uses 'output.pdf' as the default for the file name it produces. I would be better if it used the name of the file being printed as the basis for the file name. This would alleviate a lot of need to change the name before 'printing' and also help make it more obvious which file the output went to.
*** Bug 151387 has been marked as a duplicate of this bug. ***
Perhaps gtk_print_operation_set_export_filename() could be (ab)used for this. If the documentation was changed, this should be OK and it would not break existing users of this API, as far as I can see.
Actually, the application can already set the filename used. Just call gtk_print_settings_set (GTK_PRINT_SETTINGS_OUTPUT_URI, uri) with a file: URI. You should make sure that you set a filename that matches the output format as specified using the GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT key.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 587086 ***