Comment 20 for bug 258421

Revision history for this message
none (ubuntu-bugs-nullinfinity-deactivatedaccount) wrote :

I believe the bug is in this line in ev-print-operation.c:

file_format = gtk_print_settings_get (print_settings, GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT);

... but the key GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT is only defined for the "output to file" pseudo-printer, according to http://library.gnome.org/devel/gtk/unstable/GtkPrintSettings.html

I'm attaching a new patch. If file_format is NULL (which it is for any real printer) or "pdf" (which it is when you select "print to file" and choose pdf as the format), the patch will make evince output pdf.

If file_format is "ps" (which it will only be if you select "print to file" and choose ps as the format), the patch will make evince output postscript.