Date: Fri, 29 Dec 2006 08:58:24 GMT From: Mark Evenson<mark.evenson@gmx.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/107304: print/apsfilter does not print PDF to raw PostScript printers with print/acroread7 installed Message-ID: <200612290858.kBT8wOex074174@www.freebsd.org> Resent-Message-ID: <200612291130.kBTBUFMK011562@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 107304 >Category: ports >Synopsis: print/apsfilter does not print PDF to raw PostScript printers with print/acroread7 installed >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 29 11:30:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Mark Evenson >Release: RELENG_6_1 >Organization: >Environment: FreeBSD elvis.intern.etel.at 6.1-RELEASE-p11 FreeBSD 6.1-RELEASE-p11 #3: Thu Dec 7 15:00:28 CET 2006 evenson@elvis.intern.etel.at:/usr/obj/usr/src/sys/GENERIC i386 >Description: apsfilter will not print PDF files to PostScript printers with print/acroread7 installed because of the dependency of acroread7 on the X11 libraries and a connection to a running X11 server, which lpd (which invokes apsfilter) typically does not have. apsfilter uses a per-invocation, non-configurable search algorithm to look for a utility to convert PDF to Postscript stopping to use the first utility it finds without regards to encountered error conditions. Down the list from trying various versions of acroread, is the use of 'pdftops' and 'pdf2ps', both of which work successfully. Attached is patch which comments out the search for acroread. A better solution would be to somehow add this to apsfilter's configuration mechanism. >How-To-Repeat: Attempt to print PDF documents using an apsfilter /etc/printcap entry to a remote raw PostScript printer (HP LaserJet in my case). One will get a silent failure without any log messages. >Fix: Apply this patch (using the Web form complained about "wrong content type") --- bin/apsfilter.in.orig Fri Dec 29 09:38:56 2006 +++ bin/apsfilter.in Fri Dec 29 09:40:30 2006 @@ -1128,13 +1128,13 @@ ${ACROREAD_OPTS:--level2 -fast}" cat > "$APS_TMPDIR/pdf" - if find_filter acroread5; then - eval acroread5 $ACROREAD_OPTS -pairs "$APS_TMPDIR/pdf" /dev/stdout - elif find_filter acroread4; then - eval acroread4 $ACROREAD_OPTS -pairs "$APS_TMPDIR/pdf" /dev/stdout - elif find_filter acroread; then - eval acroread $ACROREAD_OPTS -pairs "$APS_TMPDIR/pdf" /dev/stdout - elif find_filter pdftops; then +# if find_filter acroread5; then +# eval acroread5 $ACROREAD_OPTS -pairs "$APS_TMPDIR/pdf" /dev/stdout +# elif find_filter acroread4; then +# eval acroread4 $ACROREAD_OPTS -pairs "$APS_TMPDIR/pdf" /dev/stdout +# elif find_filter acroread; then +# eval acroread $ACROREAD_OPTS -pairs "$APS_TMPDIR/pdf" /dev/stdout + if find_filter pdftops; then pdftops ${PDFTOPS_OPTS:--q} -paperw $WIDTH_POINTS \ -paperh $HEIGHT_POINTS "$APS_TMPDIR/pdf" - else >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612290858.kBT8wOex074174>