From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 00:45:26 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1DBFBDEE for ; Tue, 30 Dec 2014 00:45:26 +0000 (UTC) Received: from lb1-smtp-cloud2.xs4all.net (lb1-smtp-cloud2.xs4all.net [194.109.24.21]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A0686197E for ; Tue, 30 Dec 2014 00:45:24 +0000 (UTC) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud2.xs4all.net with ESMTP id ZckB1p00207iGuj01ckCJY; Tue, 30 Dec 2014 01:44:12 +0100 Received: by slackbox.erewhon.home (Postfix, from userid 1001) id 3BF2412456; Tue, 30 Dec 2014 01:44:11 +0100 (CET) Date: Tue, 30 Dec 2014 01:44:11 +0100 From: Roland Smith To: "William A. Mahaffey III" Subject: Re: How do I print .... Message-ID: <20141230004411.GA2910@slackbox.erewhon.home> Mail-Followup-To: "William A. Mahaffey III" , FreeBSD Questions !!!! References: <54A16ACB.3080805@hiwaay.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <54A16ACB.3080805@hiwaay.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.23 (2014-03-12) Cc: FreeBSD Questions !!!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2014 00:45:26 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 29, 2014 at 08:52:59AM -0600, William A. Mahaffey III wrote: > > > .... pdf files which were created as portrait layout in landscape ? I > normally pipe them through pdf2ps to lpr to print them. Pdf2ps is just a > wrapper for ghostscript, I think (according to the man page). FreeBSD > 9.3-RELEASE-p5, whatever lpr is current, I can't seem to determine lpr > version. Any more info needed, just ask & TIA .... There are at least three options to rotate the pages in PDF files that come= to mind; 1) Use Ghostscript's ``-dAutoRotatePages`` flag. See e.g. this stackoverflow answer: http://stackoverflow.com/questions/3089773/how-to-change-page-or= ientation-of-pdf-ghostscript-or-postsscript-solution-need Note that this *only* works for the pdfwrite device! So you'd have to rotate pages and *then* feed it to pdf2ps. 2) Use pdftk (needs gcj to build) 3) Use pdfjam (requires TeXLive) Option 1 us probably the easiest since you already have GhostScript install= ed. Option 2 requires a GCC built with the JAVA option enabled. Option 3 is probably only worthwhile if you were going to install TeXLive anyway. Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJUofVbAAoJEED21dyjijPgfysP+gN6E/WZMX155hKUZ98gCJML 0NGd49E2Q4s7wtGG56Udr4vCcqqhqYKV/xQXG8D9U4rC+AFivCuU869iLQHRmPKA x8kBhNIz5H2gUnrbM3j1Ii3gJzBJ6PIzCmCYdEcgUxdriWRkRj+9YGMdNm4EZ4+m tiV3uaXE+6mGefdoS+hDouTAokUplhAvTvwYFcSivVAIFDEIIYiBjYVlRUzEFP6c 5ft7Jz7zkkgzPpV8+sK3ohn3TFFxqS0Oy9OongAb0qGpH0L05RmVFz+aHgt+hLpi fqmgUfHEhYIggIhZ25HJGV5aM0D4qT0AzJRIR3Fz2EkHTCfptqX1Ew5hMzweUN4m A0Rs1sVzyiCTR9f8X2pbQcW7K40OHEZaIadqxj524zZSXNpMxtDqvzAMUSrsIIil akVFWTe7d1//RTRovK5l5WQcZIIy/v6ihT/hcRE/uj6KqpaKXfG0bPF3Fm/D/rnY fwLRHlAnmi6Z2TfaC8IS4VJeBvuwzGKREryorzdjh+t+ROT5PXzQoJFLNjg1ZGjL aNwk9kKhJ3PHL1koO0SgfLxlLV+Ag+7UBe5fd/42Wo9oQ4SgmUjpKKVezvyPT9W2 7taOQ3CufhPlIoU5dpjacMsOk2PvZHKqyXdwLXSZaEyNJCC39gIZfVdrFBLvevLF AftFQvYhzlr482yHXSHu =1e5v -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--