Debian Codegraph @

contrib/pcl3/ps/margins-Letter.ps

raw
1 %!PS-Adobe-3.0
2 %%Title: Margin test file for the page size Letter
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:18 CEST 2001
6 %%Pages: 1
7 %%DocumentNeededResources: font Courier
8 %%DocumentMedia: Letter 612 792 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: 1
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 1.0 72 div put def
21 /temp 100 string def
22 /showrounded {100.0 mul round 100.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 1 in 1 sub mul /top exch def
34 1 in 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 Letter
54 /languagelevel where {pop languagelevel} {1} ifelse 2 lt
55 { letter }
56 { 1 dict begin /PageSize [612 792] def currentdict end setpagedevice }
57 ifelse
58 %%EndFeature
59 %%IncludeResource: font Courier
60 /Courier findfont 8 scalefont setfont
61 %%EndSetup
62
63 %%Page: 1 1
64
65 306 396 moveto (Page size: Letter)
66 dup stringwidth -2 div exch -2 div exch rmoveto show
67
68 -1 -1 1 in 1 in cross
69 1 -1 612 1 in sub 1 in cross
70 -1 1 1 in 792 1 in sub cross
71 1 1 612 1 in sub 792 1 in sub cross
72
73 showpage
74
75 %%Trailer
76 %%EOF