]> git.ipfire.org Git - thirdparty/cups.git/blame - data/unclassified
Mass change of copyright to CUPS' new owner, Apple Inc.
[thirdparty/cups.git] / data / unclassified
CommitLineData
85ef1f5c 1%!PS-Adobe-3.0
2%%BoundingBox: 0 0 612 792
3%%Pages: 1
4%%LanguageLevel: 1
5%%DocumentData: Clean7Bit
3d0188f6 6%%DocumentSuppliedResources: procset bannerprint/1.0
85ef1f5c 7%%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
4e8d321f 8%%Creator: Michael Sweet, Apple Inc.
9%%CreationDate: D:20070620123000+0700
85ef1f5c 10%%Title: Test Page
11%%EndComments
12%%BeginProlog
4e8d321f 13%%BeginResource procset bannerprint 1.3 0
85ef1f5c 14%
3d0188f6 15% PostScript banner page for the Common UNIX Printing System ("CUPS").
85ef1f5c 16%
4e8d321f 17% Copyright 2007 Apple Inc.
c9d3f842 18% Copyright 1993-2005 Easy Software Products
85ef1f5c 19%
2c01f916 20% These coded instructions, statements, and computer programs are the
4e8d321f 21% property of Apple Inc. and are protected by Federal copyright law.
22% Distribution and use rights are outlined in the file "LICENSE.txt"
23% which is included with the CUPS source distribution.
85ef1f5c 24%
b31caa56 25/CENTER { % Draw centered text
85ef1f5c 26 % (name) CENTER -
27 dup stringwidth pop % Get the width of the string
28 0.5 mul neg 0 rmoveto % Shift left 1/2 of the distance
29 show % Show the string
30} bind def
b31caa56 31/RIGHT { % Draw right-justified text
85ef1f5c 32 % (name) RIGHT -
33 dup stringwidth pop % Get the width of the string
34 neg 0 rmoveto % Shift left the entire distance
35 show % Show the string
36} bind def
b31caa56 37/NUMBER { % Draw a number
85ef1f5c 38 % power n NUMBER -
b31caa56 39 1 index 1 eq { % power == 1?
85ef1f5c 40 round cvi exch pop % Convert "n" to integer
b31caa56 41 } {
85ef1f5c 42 1 index mul round exch div % Truncate extra decimal places
43 } ifelse
44 100 string cvs show % Convert to a string and show it...
45} bind def
85ef1f5c 46%%EndResource
47%%EndProlog
48%%Page: 1 1
49gsave
50
51 % Determine the imageable area and device resolution...
52 initclip newpath clippath pathbbox % Get bounding rectangle
53 72 div /pageTop exch def % Get top margin in inches
54 72 div /pageRight exch def % Get right margin in inches
55 72 div /pageBottom exch def % Get bottom margin in inches
56 72 div /pageLeft exch def % Get left margin in inches
57
85ef1f5c 58 /pageWidth pageRight pageLeft sub def % pageWidth = pageRight - pageLeft
59 /pageHeight pageTop pageBottom sub def% pageHeight = pageTop - pageBottom
60
b31caa56 61 /boxWidth % width of text box
62 pageWidth pageHeight lt
63 { pageWidth 54 mul }
64 { pageHeight 42 mul }
65 ifelse def
66
3d0188f6 67 newpath % Clear bounding path
85ef1f5c 68
69 % Create fonts...
70 /bigFont /Helvetica-Bold findfont % bigFont = Helvetica-Bold
b31caa56 71 pageHeight 3 mul scalefont def % size = pageHeight * 3 (nominally 33)
85ef1f5c 72
73 /mediumFont /Helvetica findfont % mediumFont = Helvetica
b31caa56 74 pageHeight 1.5 mul scalefont def % size = pageHeight * 1.5 (nominally 16.5)
85ef1f5c 75
85ef1f5c 76 % Offset page to account for lower-left margin...
77 pageLeft 72 mul
78 pageBottom 72 mul
79 translate
80
3d0188f6 81 % Draw the label at the top and bottom...
85ef1f5c 82 0 setgray % Color
83
3d0188f6 84 pageWidth 36 mul % Center of page
85 pageHeight 72 mul % Top of page
4e8d321f 86 pageWidth 9 mul sub % - 3 lines
3d0188f6 87 moveto % Position text
88 bigFont setfont % Font
89 (Unclassified) CENTER % Show text centered
85ef1f5c 90
3d0188f6 91 pageWidth 36 mul % Center of page
b31caa56 92 pageHeight 6 mul % Bottom of page
3d0188f6 93 moveto % Position text
94 bigFont setfont % Font
95 (Unclassified) CENTER % Show text centered
85ef1f5c 96
3d0188f6 97 % Job information box...
b31caa56 98 pageWidth 36 mul 9 add % x = pageWidth * 1/2 * 72 + 9
99 boxWidth 0.5 mul sub % x-= 1/2 box width
100 pageHeight 30 mul 9 sub % y = pageHeight * 1/2 * 72 - 9
101 boxWidth % w = box width
102 pageHeight 14 mul % h = pageHeight * 1/2 * 72
85ef1f5c 103 0.5 setgray rectfill % Draw a shadow
104
b31caa56 105 pageWidth 36 mul % x = pageWidth * 1/2 * 72
106 boxWidth 0.5 mul sub % x-= 1/2 box width
107 pageHeight 30 mul % y = pageHeight * 1/4 * 72
108 boxWidth % w = box width
109 pageHeight 14 mul % h = pageHeight * 1/2 * 72
85ef1f5c 110
85ef1f5c 111 4 copy 1 setgray rectfill % Clear the box to white
112 0 setgray rectstroke % Draw a black box around it...
113
3d0188f6 114 % Job information text...
115 mediumFont setfont % Medium sized font
85ef1f5c 116
3d0188f6 117 pageWidth 36 mul % x = pageWidth * 1/2 * 72
118 pageHeight 36 mul % y = pageHeight * 1/2 * 72
4e8d321f 119 pageHeight 5 mul add % y += 3.333 lines
3d0188f6 120 2 copy % Copy X & Y
121 moveto
ebde520c 122 (Job ID: ) RIGHT
4e8d321f 123 2 copy % Copy X & Y
3d0188f6 124 moveto
125 ({printer-name}-{job-id}) show
126
4e8d321f 127 pageHeight 3 mul sub % y -= 2 lines
3d0188f6 128 2 copy % Copy X & Y
129 moveto
ebde520c 130 (Title: ) RIGHT
4e8d321f 131 2 copy % Copy X & Y
3d0188f6 132 moveto
133 ({job-name}) show
134
4e8d321f 135 pageHeight 3 mul sub % y -= 2 lines
3d0188f6 136 2 copy % Copy X & Y
137 moveto
ebde520c 138 (Requesting User: ) RIGHT
3d0188f6 139 2 copy % Copy X & Y
140 moveto
4e8d321f 141 ({job-originating-user-name}) show
85ef1f5c 142
4e8d321f 143 ({?job-billing}) () ne {
144 pageHeight 3 mul sub % y -= 2 lines
145 2 copy % Copy X & Y
146 moveto
147 (Billing Info: ) RIGHT
148 2 copy % Copy X & Y
149 moveto
150 ({job-billing}) show
151 } if
85ef1f5c 152
85ef1f5c 153% Show the page...
154grestore
155showpage
156%
c9d3f842 157% End of "$Id$".
85ef1f5c 158%
159%%EOF