Difference between revisions of "PostScript"

From Christoph's Personal Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
'''PostScript''' ('''PS''') is a page description language and programming language used primarily in the electronic and desktop publishing areas.
 
'''PostScript''' ('''PS''') is a page description language and programming language used primarily in the electronic and desktop publishing areas.
 +
 +
==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 ==
 
== External links ==
Line 11: Line 32:
 
*[http://search.cpan.org/~mcnewton/PostScript-Simple-0.07/lib/PostScript/Simple.pm PostScript::Simple] — Produce PostScript files from [[Perl]]
 
*[http://search.cpan.org/~mcnewton/PostScript-Simple-0.07/lib/PostScript/Simple.pm PostScript::Simple] — Produce PostScript files from [[Perl]]
 
*[[wikipedia:PostScript]]
 
*[[wikipedia:PostScript]]
 +
*[[wikibooks:PostScript FAQ]]
  
 
=== PostScript hacks ===
 
=== PostScript hacks ===

Latest revision as of 01:21, 8 February 2009

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

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!