Debian Codegraph @

contrib/pcl3/ps/margins-A4Rotated.ps

raw
1 %!PS-Adobe-3.0
2 %%Title: Margin test file for the page size A4Rotated
3 %%Copyright: Copyright (C) 1997, 1998, 1999, 2000 by Martin Lottermoser. All rights reserved.
4 %%Creator: makemtf 1.19
5 %%CreationDate: Sun Aug 19 12:16:17 CEST 2001
6 %%Pages: 1
7 %%DocumentNeededResources: font Courier
8 %%DocumentMedia: A4Rotated 842 595 0 () ()
9 %%Comments: The first entry in the preceding line should really be an empty
10 %%+ string. That it is not is a concession to bugs in ghostview and gv.
11 %%LanguageLevel: 2
12 %%EndComments
13
14 %%BeginProlog
15 /in {72 mul} def
16 /mm {0.0 mul} dup 0 72 25.4 div put def
17
18 /crossdict 8 dict def % 4 defined here, 4 more defined at runtime
19 crossdict begin
20 /reverse {0.0 mul} dup 0 25.4 72 div put def
21 /temp 100 string def
22 /showrounded {10.0 mul round 10.0 div temp cvs show} def
23 /append { % <string> <substring> append <string+substring>
24 exch dup dup length % <substring> <string> <string> <length>
25 4 -1 roll putinterval
26 } def
27 end
28
29 /cross { % <right> <top> <x> <y> cross -
30 crossdict begin
31 /y exch def /x exch def
32 % 1 pt distance from the edges:
33 25 mm 1 sub mul /top exch def
34 25 mm 1 sub mul /right exch def
35 0 setlinewidth
36 newpath
37 x y moveto
38 right 0 rmoveto
39 x y lineto
40 0 top rlineto
41 stroke
42 x y moveto
43 right -0.2 mul dup 0 lt {70 sub} if
44 top -0.2 mul dup 0 lt { 8 sub} if
45 rmoveto
46 (\() show x reverse showrounded (, ) show
47 y reverse showrounded (\)) show
48 end
49 } def
50 %%EndProlog
51
52 %%BeginSetup
53 %%BeginFeature: *PageSize A4Rotated
54 1 dict begin /PageSize [841.88 595.27] def currentdict end setpagedevice
55 %%EndFeature
56 %%IncludeResource: font Courier
57 /Courier findfont 8 scalefont setfont
58 %%EndSetup
59
60 %%Page: 1 1
61
62 421 297 moveto (Page size: A4Rotated)
63 dup stringwidth -2 div exch -2 div exch rmoveto show
64
65 -1 -1 25 mm 25 mm cross
66 1 -1 841.88 25 mm sub 25 mm cross
67 -1 1 25 mm 595.27 25 mm sub cross
68 1 1 841.88 25 mm sub 595.27 25 mm sub cross
69
70 showpage
71
72 %%Trailer
73 %%EOF