> gtk_printer_accepts_pdf() has been fixed in gtk+ 2.24 so this function can be
> used to check if the printer supports PDF.
On Ubuntu 10.10, Firefox with this patch (and <https://bugzilla.mozilla.org/attachment.cgi?id=502460>, of course) applied still passes PS instead of PDF to CUPS, so probably either CUPS or gtk2 on Ubuntu lies. Would it be better to offer a preference to override detection and enforce PDF?
(In reply to comment #4)
> gtk_printer_ accepts_ pdf() has been fixed in gtk+ 2.24 so this function can be
> used to check if the printer supports PDF.
On Ubuntu 10.10, Firefox with this patch (and <https:/ /bugzilla. mozilla. org/attachment. cgi?id= 502460>, of course) applied still passes PS instead of PDF to CUPS, so probably either CUPS or gtk2 on Ubuntu lies. Would it be better to offer a preference to override detection and enforce PDF?
I get perfect prints of <http:// weblogs. mozillazine. org/asa/ archives/ 2010/12/ new_firefox_ 4_betas. html> out of my HP inkjet printer only with a dirty private hack when I swap kOutputFormatPS and kOutputFormatPDF in
format = (gtk_printer_ accepts_ ps(mGtkPrinter) ) ? nsIPrintSetting s::kOutputForma tPS
: nsIPrintSetting s::kOutputForma tPDF;