[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    Re: How do I print ....
From:       Roland Smith <rsmith () xs4all ! nl>
Date:       2014-12-30 0:44:11
Message-ID: 20141230004411.GA2910 () slackbox ! erewhon ! home
[Download RAW message or body]


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)


[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic