Comment 26 for bug 419143

Revision history for this message
Johannes (hummlbach) wrote : Re: Printing from evince (and perhaps other GTK apps) to PostScript printers is broken

I suppose, that it's not a bug of evince but a feature... Since version 2.27.4 in ev-print-operation.c the lines

export->fc.format = file_format && g_ascii_strcasecmp (file_format, "pdf") == 0 ?
                        EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS;

changed to

if (file_format) {
                export->fc.format = g_ascii_strcasecmp (file_format, "pdf") == 0 ?
                        EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS;
        } else {
                export->fc.format = gtk_printer_accepts_pdf (printer) ?
                        EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS;
        }

so that evince > 2.27.3 sends pdf-file (if print system supports pdf-input) even if file_format is NULL what ever - I don't understand it completely...
In the case of the problematic files evince sends pdf-files since version 2.27.4 and ps-files in earlier versions. This change causes the problem. But the bug probably lies not in evince?!?