PostScript

From Christoph's Personal Wiki

PostScript (PS) is a page description language and programming language used primarily in the electronic and desktop publishing areas.

Contents

PostScript utilities

pstops 
shuffle pages in a PostScript file (see manpage for details)

Examples

This section contains some sample re-arrangements. To put two pages on one sheet (of A4 paper), the pagespec to use is:

2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)
  • Select all of the odd pages in reverse order:
2:-0
  • Re-arrange pages for printing 2-up booklets:
4:-3L@.7(21cm,0)+0L@.7(21cm,14.85cm)

for the front sides, and

4:1L@.7(21cm,0)+-2L@.7(21cm,14.85cm)

for the reverse sides.

  • convert to two-up:
pstops '4:0L@.67(20cm,1cm)+1L@.67(20cm,15cm),3R@.67(1cm,15.25cm)\
    +2R@.67(1cm,29.25cm)' $*.ps $*.dps

External links

PostScript hacks

This article is curently a "stub". This means it is an incomplete article needing further elaboration.

I always welcome suggestions, comments, and criticism. If you have something to contribute to this site, please follow this link: Contributing Information. Thank you!

Personal tools