How do I print ....
Roland Smith
rsmith at xs4all.nl
Tue Dec 30 00:45:26 UTC 2014
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-orientation-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 installed.
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
--
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20141230/dcf0bda0/attachment.sig>
More information about the freebsd-questions
mailing list