--- ev-print-operation.c.orig	2009-06-19 14:19:09.731890488 -0300
+++ ev-print-operation.c	2009-06-20 14:32:17.863714599 -0300
@@ -1187,8 +1187,12 @@
 
 	get_first_and_last_page (export, &first_page, &last_page);
 
-	export->fc.format = file_format && g_ascii_strcasecmp (file_format, "pdf") == 0 ?
-		EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS;
+	if (file_format)
+	  export->fc.format = !g_ascii_strcasecmp (file_format, "pdf")  ?
+	    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;
 	export->fc.filename = export->temp_file;
 	export->fc.first_page = MIN (first_page, last_page);
 	export->fc.last_page = MAX (first_page, last_page);
