From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 29 11:30:16 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F3A9F16A417 for ; Fri, 29 Dec 2006 11:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id D3BD713C45D for ; Fri, 29 Dec 2006 11:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBTBUFeB011564 for ; Fri, 29 Dec 2006 11:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBTBUFMK011562; Fri, 29 Dec 2006 11:30:15 GMT (envelope-from gnats) Resent-Date: Fri, 29 Dec 2006 11:30:15 GMT Resent-Message-Id: <200612291130.kBTBUFMK011562@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Evenson Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B8BB16A416 for ; Fri, 29 Dec 2006 11:21:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 105B713C46A for ; Fri, 29 Dec 2006 11:21:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBT8wOh9074175 for ; Fri, 29 Dec 2006 08:58:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kBT8wOex074174; Fri, 29 Dec 2006 08:58:24 GMT (envelope-from nobody) Message-Id: <200612290858.kBT8wOex074174@www.freebsd.org> Date: Fri, 29 Dec 2006 08:58:24 GMT From: Mark Evenson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/107304: print/apsfilter does not print PDF to raw PostScript printers with print/acroread7 installed X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2006 11:30:16 -0000 >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: