poster VERSION (return code: 0)
%!PS-Adobe-3.0
%%Creator: poster
%%Pages: 1
%%DocumentMedia: a4 595 842 0 white ()
%%BoundingBox: 0 0 595 842
%%EndComments
% Print poster VERSION in 1x1 tiles with 1 magnification
%%BeginProlog
/cutmark % - cutmark -
{ % draw cutline
0.23 setlinewidth 0 setgray
clipmargin
dup 0 moveto
dup neg leftmargin add 0 rlineto stroke
% draw sheet alignment mark
dup dup neg moveto
dup 0 rlineto
dup dup lineto
0 rlineto
closepath fill
} bind def
% usage: row col tileprolog ps-code tilepilog
% these procedures output the tile specified by row & col
/tileprolog
{ %def
gsave
leftmargin botmargin translate
do_turn {exch} if
/colcount exch def
/rowcount exch def
% clip page contents
clipmargin neg dup moveto
pagewidth clipmargin 2 mul add 0 rlineto
0 pageheight clipmargin 2 mul add rlineto
pagewidth clipmargin 2 mul add neg 0 rlineto
closepath clip
% set page contents transformation
do_turn
{ pagewidth 0 translate
90 rotate
} if
pagewidth colcount 1 sub mul neg
pageheight rowcount 1 sub mul neg
do_turn {exch} if
translate
posterxl posteryb translate
sfactor dup scale
imagexl neg imageyb neg translate
tiledict begin
0 setgray 0 setlinecap 1 setlinewidth
0 setlinejoin 10 setmiterlimit [] 0 setdash newpath
} bind def
/tileepilog
{ end % of tiledict
grestore
% print the cutmarks
gsave
leftmargin botmargin translate
pagewidth pageheight translate cutmark 90 rotate cutmark
0 pagewidth translate cutmark 90 rotate cutmark
0 pageheight translate cutmark 90 rotate cutmark
0 pagewidth translate cutmark 90 rotate cutmark
grestore
% print the page label
0 setgray
leftmargin clipmargin 3 mul add clipmargin labelsize add neg botmargin add moveto
(Grid \( ) show
rowcount strg cvs show
( , ) show
colcount strg cvs show
( \)) show
showpage
} bind def
%%EndProlog
%%BeginSetup
% Try to inform the printer about the desired media size:
/setpagedevice where % level-2 page commands available...
{ pop % ignore where found
3 dict dup /PageSize [ 595 842 ] put
dup /Duplex false put
setpagedevice
} if
/sfactor 1.0000000000 def
/leftmargin 0 def
/botmargin 0 def
/pagewidth 595 def
/pageheight 842 def
/imagexl 0 def
/imageyb 0 def
/posterxl 0 def
/posteryb 0 def
/do_turn false def
/strg 10 string def
/clipmargin 6 def
/labelsize 9 def
/tiledict 250 dict def
tiledict begin
% delay users showpage until cropmark is printed.
/showpage {} def
/setpagedevice { pop } def
end
/Helvetica findfont labelsize scalefont setfont
%%EndSetup
%%Page: (1,1) 1
1 1 tileprolog
%%BeginDocument: VERSION
аиИў
%%EndDocument
tileepilog
%%EOF
poster --help (return code: 1)
poster: invalid option -- '-'
Usage: poster <options> infile
options are:
-v: be verbose
-f: ask manual feed on plotting/printing device
-i<box>: specify input image size
-c<margin>: horizontal and vertical cutmargin
-w<margin>: horizontal and vertical additional white margin
-m<box>: media paper size
-p<box>: output poster size
-s<number>: linear scale factor for poster
-P<pages>: comma-separated list of tile pages to print
-o<file>: output redirection to named file
At least one of -s -p -m is mandatory, and don't give both -s and -p
<box> is like 'A4', '3x3letter', '10x25cm', '200x200+10,10p'
<margin> is either a simple <box> or <number>%. Page lists are comma-
separated, each element being a single page or a page range.
(ex: 1,2-5,8,10-34)
Defaults are: '-ma4', '-c5%', '-i<box>' read from input file.
and output written to stdout.