Date: Mon, 03 Sep 2018 00:22:29 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 231110] GTK print dialogs falsely believe lpr cannot accept PDF Message-ID: <bug-231110-6497@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231110 Bug ID: 231110 Summary: GTK print dialogs falsely believe lpr cannot accept PDF Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: george@m5p.com CC: gecko@FreeBSD.org, gnome@FreeBSD.org Created attachment 196805 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=196805&action=edit Patch to tell GTK that lpr accepts PDF output The LPR backend for GTK asserts that "lpr" cannot accept PDF files. Granted, you can't tell in general whether lpr in a given situation will be able to print a PDF or not, but declaring that it can't is needlessly restrictive. The attached patch (works for both GTK2 and GTK3) adds the "accepts-pdf" property to the lpr backend and fixes the problem. This patch is suggested as an alternative to the patch from the freebsd-gecko email thread "firefox-60.0_2,1 missing 'Print to LPR'", from May 13, 2018, which circumvents the problem by generating PostScript output instead of PDF. Fixing the problem in GTK means that other users of GTK won't have to create parallel workarounds. -- You are receiving this mail because: You are on the CC list for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231110-6497>
