pdf-writer 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,5 +1,27 @@
1
1
  = PDF::Writer Change Log
2
2
 
3
+ == PDF::Writer 1.1.2: August 25, 2005
4
+ * Thomas Gantner <thomas.gantner@gmx.net> found a problem with the
5
+ interpretation of the placement of page numbers and provided a patch.
6
+ Thanks!
7
+ * Thomas also reported a problem with an inability to place page numbering on
8
+ the first page of a document, as well as strange results from not providing
9
+ a starting page number. This has been fixed. Also reported as #2204.
10
+ * Modified PDF::Writer requirements to require color-tools version 1.3.0 or
11
+ later. This necessitates that Color constants be changed to Color::RGB
12
+ constants.
13
+ * Updated supporting library documentation to include information on
14
+ color-tools version 1.3.
15
+ * Fixed a bug with Graphics#transform_matrix truncating one of the transform
16
+ parameters.
17
+ * Applied a fix to PDF::SimpleTable submitted by Mike Leddy in #2129 on the
18
+ RubyForge tracker.
19
+ * Applied a partial fix for PNG with index-transparency provided by Marc
20
+ Vleugels in #2245 on the RubyForge tracker. NOTE: This does not solve the
21
+ transparency problem; at this point, PDF::Writer cannot be said to support
22
+ PNGs with transparency. This will be fixed in a later version of
23
+ PDF::Writer.
24
+
3
25
  == PDF::Writer 1.1.1: July 1, 2005
4
26
  * Fixed the packaging process; the .tar.gz files will no longer corrupt the
5
27
  images.
@@ -79,6 +101,6 @@
79
101
  # Licensed under a MIT-style licence. See LICENCE in the main distribution
80
102
  # for full licensing information.
81
103
  #
82
- # $Id: ChangeLog,v 1.17 2005/07/01 16:48:26 austin Exp $
104
+ # $Id: ChangeLog,v 1.17.2.2 2005/08/25 03:43:59 austin Exp $
83
105
  #++
84
106
  # vim: sts=2 sw=2 ts=4 et ai tw=77
data/README CHANGED
@@ -17,7 +17,7 @@ Please read the file LICENCE for licensing restrictions on this library, as
17
17
  well as important patent considerations.
18
18
 
19
19
  == Requirements
20
- PDF::Writer requires Ruby 1.8.2 or better, color-tools 1.0.0 or better, and
20
+ PDF::Writer requires Ruby 1.8.2 or better, color-tools 1.3.0 or better, and
21
21
  Transaction::Simple 1.3.0 or better.
22
22
 
23
23
  #--
@@ -28,6 +28,6 @@ Transaction::Simple 1.3.0 or better.
28
28
  # Licensed under a MIT-style licence. See LICENCE in the main distribution
29
29
  # for full licensing information.
30
30
  #
31
- # $Id: README,v 1.7 2005/06/13 20:03:53 austin Exp $
31
+ # $Id: README,v 1.7.2.1 2005/08/25 03:38:05 austin Exp $
32
32
  #++
33
33
  # vim: sts=2 sw=2 ts=4 et ai tw=77
data/demo/colornames.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  # Licensed under a MIT-style licence. See LICENCE in the main distribution
7
7
  # for full licensing information.
8
8
  #
9
- # $Id: colornames.rb,v 1.2 2005/06/13 19:32:37 austin Exp $
9
+ # $Id: colornames.rb,v 1.2.2.1 2005/08/25 03:38:05 austin Exp $
10
10
  #++
11
11
  begin
12
12
  require 'pdf/writer'
@@ -19,833 +19,29 @@ rescue LoadError => le
19
19
  end
20
20
  end
21
21
 
22
+ require 'color/rgb/metallic'
23
+
22
24
  pdf = PDF::Writer.new
23
25
 
24
26
  pdf.start_columns 4
25
27
 
26
- pdf.fill_color Color::Black
27
- pdf.text("Black", :font_size => 24)
28
- pdf.fill_color Color::Black
29
- pdf.text("Black", :font_size => 12, :justification => :center)
30
-
31
- pdf.fill_color Color::Navy
32
- pdf.text("Navy", :font_size => 24)
33
- pdf.fill_color Color::Black
34
- pdf.text("Navy", :font_size => 12, :justification => :center)
35
-
36
- pdf.fill_color Color::DarkBlue
37
- pdf.text("DarkBlue", :font_size => 24)
38
- pdf.fill_color Color::Black
39
- pdf.text("DarkBlue", :font_size => 12, :justification => :center)
40
-
41
- pdf.fill_color Color::MediumBlue
42
- pdf.text("MediumBlue", :font_size => 24)
43
- pdf.fill_color Color::Black
44
- pdf.text("MediumBlue", :font_size => 12, :justification => :center)
45
-
46
- pdf.fill_color Color::Blue
47
- pdf.text("Blue", :font_size => 24)
48
- pdf.fill_color Color::Black
49
- pdf.text("Blue", :font_size => 12, :justification => :center)
50
-
51
- pdf.fill_color Color::DarkGreen
52
- pdf.text("DarkGreen", :font_size => 24)
53
- pdf.fill_color Color::Black
54
- pdf.text("DarkGreen", :font_size => 12, :justification => :center)
55
-
56
- pdf.fill_color Color::Green
57
- pdf.text("Green", :font_size => 24)
58
- pdf.fill_color Color::Black
59
- pdf.text("Green", :font_size => 12, :justification => :center)
60
-
61
- pdf.fill_color Color::Teal
62
- pdf.text("Teal", :font_size => 24)
63
- pdf.fill_color Color::Black
64
- pdf.text("Teal", :font_size => 12, :justification => :center)
65
-
66
- pdf.fill_color Color::DarkCyan
67
- pdf.text("DarkCyan", :font_size => 24)
68
- pdf.fill_color Color::Black
69
- pdf.text("DarkCyan", :font_size => 12, :justification => :center)
70
-
71
- pdf.fill_color Color::DeepSkyBlue
72
- pdf.text("DeepSkyBlue", :font_size => 24)
73
- pdf.fill_color Color::Black
74
- pdf.text("DeepSkyBlue", :font_size => 12, :justification => :center)
75
-
76
- pdf.fill_color Color::DarkTurquoise
77
- pdf.text("DarkTurquoise", :font_size => 24)
78
- pdf.fill_color Color::Black
79
- pdf.text("DarkTurquoise", :font_size => 12, :justification => :center)
80
-
81
- pdf.fill_color Color::MediumSpringGreen
82
- pdf.text("MediumSpringGreen", :font_size => 24)
83
- pdf.fill_color Color::Black
84
- pdf.text("MediumSpringGreen", :font_size => 12, :justification => :center)
85
-
86
- pdf.fill_color Color::Lime
87
- pdf.text("Lime", :font_size => 24)
88
- pdf.fill_color Color::Black
89
- pdf.text("Lime", :font_size => 12, :justification => :center)
90
-
91
- pdf.fill_color Color::SpringGreen
92
- pdf.text("SpringGreen", :font_size => 24)
93
- pdf.fill_color Color::Black
94
- pdf.text("SpringGreen", :font_size => 12, :justification => :center)
95
-
96
- pdf.fill_color Color::Aqua
97
- pdf.text("Aqua", :font_size => 24)
98
- pdf.fill_color Color::Black
99
- pdf.text("Aqua", :font_size => 12, :justification => :center)
100
-
101
- pdf.fill_color Color::Cyan
102
- pdf.text("Cyan", :font_size => 24)
103
- pdf.fill_color Color::Black
104
- pdf.text("Cyan", :font_size => 12, :justification => :center)
105
-
106
- pdf.fill_color Color::MidnightBlue
107
- pdf.text("MidnightBlue", :font_size => 24)
108
- pdf.fill_color Color::Black
109
- pdf.text("MidnightBlue", :font_size => 12, :justification => :center)
110
-
111
- pdf.fill_color Color::DodgerBlue
112
- pdf.text("DodgerBlue", :font_size => 24)
113
- pdf.fill_color Color::Black
114
- pdf.text("DodgerBlue", :font_size => 12, :justification => :center)
115
-
116
- pdf.fill_color Color::LightSeaGreen
117
- pdf.text("LightSeaGreen", :font_size => 24)
118
- pdf.fill_color Color::Black
119
- pdf.text("LightSeaGreen", :font_size => 12, :justification => :center)
120
-
121
- pdf.fill_color Color::ForestGreen
122
- pdf.text("ForestGreen", :font_size => 24)
123
- pdf.fill_color Color::Black
124
- pdf.text("ForestGreen", :font_size => 12, :justification => :center)
125
-
126
- pdf.fill_color Color::SeaGreen
127
- pdf.text("SeaGreen", :font_size => 24)
128
- pdf.fill_color Color::Black
129
- pdf.text("SeaGreen", :font_size => 12, :justification => :center)
130
-
131
- pdf.fill_color Color::DarkSlateGray
132
- pdf.text("DarkSlateGray", :font_size => 24)
133
- pdf.fill_color Color::Black
134
- pdf.text("DarkSlateGray", :font_size => 12, :justification => :center)
135
-
136
- pdf.fill_color Color::DarkSlateGrey
137
- pdf.text("DarkSlateGrey", :font_size => 24)
138
- pdf.fill_color Color::Black
139
- pdf.text("DarkSlateGrey", :font_size => 12, :justification => :center)
140
-
141
- pdf.fill_color Color::LimeGreen
142
- pdf.text("LimeGreen", :font_size => 24)
143
- pdf.fill_color Color::Black
144
- pdf.text("LimeGreen", :font_size => 12, :justification => :center)
145
-
146
- pdf.fill_color Color::MediumSeaGreen
147
- pdf.text("MediumSeaGreen", :font_size => 24)
148
- pdf.fill_color Color::Black
149
- pdf.text("MediumSeaGreen", :font_size => 12, :justification => :center)
150
-
151
- pdf.fill_color Color::Turquoise
152
- pdf.text("Turquoise", :font_size => 24)
153
- pdf.fill_color Color::Black
154
- pdf.text("Turquoise", :font_size => 12, :justification => :center)
155
-
156
- pdf.fill_color Color::RoyalBlue
157
- pdf.text("RoyalBlue", :font_size => 24)
158
- pdf.fill_color Color::Black
159
- pdf.text("RoyalBlue", :font_size => 12, :justification => :center)
160
-
161
- pdf.fill_color Color::SteelBlue
162
- pdf.text("SteelBlue", :font_size => 24)
163
- pdf.fill_color Color::Black
164
- pdf.text("SteelBlue", :font_size => 12, :justification => :center)
165
-
166
- pdf.fill_color Color::DarkSlateBlue
167
- pdf.text("DarkSlateBlue", :font_size => 24)
168
- pdf.fill_color Color::Black
169
- pdf.text("DarkSlateBlue", :font_size => 12, :justification => :center)
170
-
171
- pdf.fill_color Color::MediumTurquoise
172
- pdf.text("MediumTurquoise", :font_size => 24)
173
- pdf.fill_color Color::Black
174
- pdf.text("MediumTurquoise", :font_size => 12, :justification => :center)
175
-
176
- pdf.fill_color Color::Indigo
177
- pdf.text("Indigo", :font_size => 24)
178
- pdf.fill_color Color::Black
179
- pdf.text("Indigo", :font_size => 12, :justification => :center)
180
-
181
- pdf.fill_color Color::DarkoliveGreen
182
- pdf.text("DarkoliveGreen", :font_size => 24)
183
- pdf.fill_color Color::Black
184
- pdf.text("DarkoliveGreen", :font_size => 12, :justification => :center)
185
-
186
- pdf.fill_color Color::CadetBlue
187
- pdf.text("CadetBlue", :font_size => 24)
188
- pdf.fill_color Color::Black
189
- pdf.text("CadetBlue", :font_size => 12, :justification => :center)
190
-
191
- pdf.fill_color Color::CornflowerBlue
192
- pdf.text("CornflowerBlue", :font_size => 24)
193
- pdf.fill_color Color::Black
194
- pdf.text("CornflowerBlue", :font_size => 12, :justification => :center)
195
-
196
- pdf.fill_color Color::MediumAquamarine
197
- pdf.text("MediumAquamarine", :font_size => 24)
198
- pdf.fill_color Color::Black
199
- pdf.text("MediumAquamarine", :font_size => 12, :justification => :center)
200
-
201
- pdf.fill_color Color::DimGray
202
- pdf.text("DimGray", :font_size => 24)
203
- pdf.fill_color Color::Black
204
- pdf.text("DimGray", :font_size => 12, :justification => :center)
205
-
206
- pdf.fill_color Color::DimGrey
207
- pdf.text("DimGrey", :font_size => 24)
208
- pdf.fill_color Color::Black
209
- pdf.text("DimGrey", :font_size => 12, :justification => :center)
210
-
211
- pdf.fill_color Color::SlateBlue
212
- pdf.text("SlateBlue", :font_size => 24)
213
- pdf.fill_color Color::Black
214
- pdf.text("SlateBlue", :font_size => 12, :justification => :center)
215
-
216
- pdf.fill_color Color::Olivedrab
217
- pdf.text("Olivedrab", :font_size => 24)
218
- pdf.fill_color Color::Black
219
- pdf.text("Olivedrab", :font_size => 12, :justification => :center)
220
-
221
- pdf.fill_color Color::SlateGray
222
- pdf.text("SlateGray", :font_size => 24)
223
- pdf.fill_color Color::Black
224
- pdf.text("SlateGray", :font_size => 12, :justification => :center)
225
-
226
- pdf.fill_color Color::SlateGrey
227
- pdf.text("SlateGrey", :font_size => 24)
228
- pdf.fill_color Color::Black
229
- pdf.text("SlateGrey", :font_size => 12, :justification => :center)
230
-
231
- pdf.fill_color Color::LightSlateGray
232
- pdf.text("LightSlateGray", :font_size => 24)
233
- pdf.fill_color Color::Black
234
- pdf.text("LightSlateGray", :font_size => 12, :justification => :center)
235
-
236
- pdf.fill_color Color::LightSlateGrey
237
- pdf.text("LightSlateGrey", :font_size => 24)
238
- pdf.fill_color Color::Black
239
- pdf.text("LightSlateGrey", :font_size => 12, :justification => :center)
240
-
241
- pdf.fill_color Color::MediumSlateBlue
242
- pdf.text("MediumSlateBlue", :font_size => 24)
243
- pdf.fill_color Color::Black
244
- pdf.text("MediumSlateBlue", :font_size => 12, :justification => :center)
245
-
246
- pdf.fill_color Color::LawnGreen
247
- pdf.text("LawnGreen", :font_size => 24)
248
- pdf.fill_color Color::Black
249
- pdf.text("LawnGreen", :font_size => 12, :justification => :center)
250
-
251
- pdf.fill_color Color::Chartreuse
252
- pdf.text("Chartreuse", :font_size => 24)
253
- pdf.fill_color Color::Black
254
- pdf.text("Chartreuse", :font_size => 12, :justification => :center)
255
-
256
- pdf.fill_color Color::Aquamarine
257
- pdf.text("Aquamarine", :font_size => 24)
258
- pdf.fill_color Color::Black
259
- pdf.text("Aquamarine", :font_size => 12, :justification => :center)
260
-
261
- pdf.fill_color Color::Maroon
262
- pdf.text("Maroon", :font_size => 24)
263
- pdf.fill_color Color::Black
264
- pdf.text("Maroon", :font_size => 12, :justification => :center)
265
-
266
- pdf.fill_color Color::Purple
267
- pdf.text("Purple", :font_size => 24)
268
- pdf.fill_color Color::Black
269
- pdf.text("Purple", :font_size => 12, :justification => :center)
270
-
271
- pdf.fill_color Color::Olive
272
- pdf.text("Olive", :font_size => 24)
273
- pdf.fill_color Color::Black
274
- pdf.text("Olive", :font_size => 12, :justification => :center)
275
-
276
- pdf.fill_color Color::Gray
277
- pdf.text("Gray", :font_size => 24)
278
- pdf.fill_color Color::Black
279
- pdf.text("Gray", :font_size => 12, :justification => :center)
280
-
281
- pdf.fill_color Color::Grey
282
- pdf.text("Grey", :font_size => 24)
283
- pdf.fill_color Color::Black
284
- pdf.text("Grey", :font_size => 12, :justification => :center)
285
-
286
- pdf.fill_color Color::SkyBlue
287
- pdf.text("SkyBlue", :font_size => 24)
288
- pdf.fill_color Color::Black
289
- pdf.text("SkyBlue", :font_size => 12, :justification => :center)
290
-
291
- pdf.fill_color Color::LightSkyBlue
292
- pdf.text("LightSkyBlue", :font_size => 24)
293
- pdf.fill_color Color::Black
294
- pdf.text("LightSkyBlue", :font_size => 12, :justification => :center)
295
-
296
- pdf.fill_color Color::BlueViolet
297
- pdf.text("BlueViolet", :font_size => 24)
298
- pdf.fill_color Color::Black
299
- pdf.text("BlueViolet", :font_size => 12, :justification => :center)
300
-
301
- pdf.fill_color Color::DarkRed
302
- pdf.text("DarkRed", :font_size => 24)
303
- pdf.fill_color Color::Black
304
- pdf.text("DarkRed", :font_size => 12, :justification => :center)
305
-
306
- pdf.fill_color Color::DarkMagenta
307
- pdf.text("DarkMagenta", :font_size => 24)
308
- pdf.fill_color Color::Black
309
- pdf.text("DarkMagenta", :font_size => 12, :justification => :center)
310
-
311
- pdf.fill_color Color::SaddleBrown
312
- pdf.text("SaddleBrown", :font_size => 24)
313
- pdf.fill_color Color::Black
314
- pdf.text("SaddleBrown", :font_size => 12, :justification => :center)
315
-
316
- pdf.fill_color Color::DarkSeaGreen
317
- pdf.text("DarkSeaGreen", :font_size => 24)
318
- pdf.fill_color Color::Black
319
- pdf.text("DarkSeaGreen", :font_size => 12, :justification => :center)
320
-
321
- pdf.fill_color Color::LightGreen
322
- pdf.text("LightGreen", :font_size => 24)
323
- pdf.fill_color Color::Black
324
- pdf.text("LightGreen", :font_size => 12, :justification => :center)
325
-
326
- pdf.fill_color Color::MediumPurple
327
- pdf.text("MediumPurple", :font_size => 24)
328
- pdf.fill_color Color::Black
329
- pdf.text("MediumPurple", :font_size => 12, :justification => :center)
330
-
331
- pdf.fill_color Color::DarkViolet
332
- pdf.text("DarkViolet", :font_size => 24)
333
- pdf.fill_color Color::Black
334
- pdf.text("DarkViolet", :font_size => 12, :justification => :center)
335
-
336
- pdf.fill_color Color::PaleGreen
337
- pdf.text("PaleGreen", :font_size => 24)
338
- pdf.fill_color Color::Black
339
- pdf.text("PaleGreen", :font_size => 12, :justification => :center)
340
-
341
- pdf.fill_color Color::DarkOrchid
342
- pdf.text("DarkOrchid", :font_size => 24)
343
- pdf.fill_color Color::Black
344
- pdf.text("DarkOrchid", :font_size => 12, :justification => :center)
345
-
346
- pdf.fill_color Color::YellowGreen
347
- pdf.text("YellowGreen", :font_size => 24)
348
- pdf.fill_color Color::Black
349
- pdf.text("YellowGreen", :font_size => 12, :justification => :center)
350
-
351
- pdf.fill_color Color::Sienna
352
- pdf.text("Sienna", :font_size => 24)
353
- pdf.fill_color Color::Black
354
- pdf.text("Sienna", :font_size => 12, :justification => :center)
355
-
356
- pdf.fill_color Color::Brown
357
- pdf.text("Brown", :font_size => 24)
358
- pdf.fill_color Color::Black
359
- pdf.text("Brown", :font_size => 12, :justification => :center)
360
-
361
- pdf.fill_color Color::DarkGray
362
- pdf.text("DarkGray", :font_size => 24)
363
- pdf.fill_color Color::Black
364
- pdf.text("DarkGray", :font_size => 12, :justification => :center)
365
-
366
- pdf.fill_color Color::DarkGrey
367
- pdf.text("DarkGrey", :font_size => 24)
368
- pdf.fill_color Color::Black
369
- pdf.text("DarkGrey", :font_size => 12, :justification => :center)
370
-
371
- pdf.fill_color Color::LightBlue
372
- pdf.text("LightBlue", :font_size => 24)
373
- pdf.fill_color Color::Black
374
- pdf.text("LightBlue", :font_size => 12, :justification => :center)
375
-
376
- pdf.fill_color Color::GreenYellow
377
- pdf.text("GreenYellow", :font_size => 24)
378
- pdf.fill_color Color::Black
379
- pdf.text("GreenYellow", :font_size => 12, :justification => :center)
380
-
381
- pdf.fill_color Color::PaleTurquoise
382
- pdf.text("PaleTurquoise", :font_size => 24)
383
- pdf.fill_color Color::Black
384
- pdf.text("PaleTurquoise", :font_size => 12, :justification => :center)
385
-
386
- pdf.fill_color Color::LightsteelBlue
387
- pdf.text("LightsteelBlue", :font_size => 24)
388
- pdf.fill_color Color::Black
389
- pdf.text("LightsteelBlue", :font_size => 12, :justification => :center)
390
-
391
- pdf.fill_color Color::PowderBlue
392
- pdf.text("PowderBlue", :font_size => 24)
393
- pdf.fill_color Color::Black
394
- pdf.text("PowderBlue", :font_size => 12, :justification => :center)
395
-
396
- pdf.fill_color Color::Firebrick
397
- pdf.text("Firebrick", :font_size => 24)
398
- pdf.fill_color Color::Black
399
- pdf.text("Firebrick", :font_size => 12, :justification => :center)
400
-
401
- pdf.fill_color Color::DarkGoldenrod
402
- pdf.text("DarkGoldenrod", :font_size => 24)
403
- pdf.fill_color Color::Black
404
- pdf.text("DarkGoldenrod", :font_size => 12, :justification => :center)
405
-
406
- pdf.fill_color Color::MediumOrchid
407
- pdf.text("MediumOrchid", :font_size => 24)
408
- pdf.fill_color Color::Black
409
- pdf.text("MediumOrchid", :font_size => 12, :justification => :center)
410
-
411
- pdf.fill_color Color::RosyBrown
412
- pdf.text("RosyBrown", :font_size => 24)
413
- pdf.fill_color Color::Black
414
- pdf.text("RosyBrown", :font_size => 12, :justification => :center)
415
-
416
- pdf.fill_color Color::DarkKhaki
417
- pdf.text("DarkKhaki", :font_size => 24)
418
- pdf.fill_color Color::Black
419
- pdf.text("DarkKhaki", :font_size => 12, :justification => :center)
420
-
421
- pdf.fill_color Color::Silver
422
- pdf.text("Silver", :font_size => 24)
423
- pdf.fill_color Color::Black
424
- pdf.text("Silver", :font_size => 12, :justification => :center)
425
-
426
- pdf.fill_color Color::MediumVioletRed
427
- pdf.text("MediumVioletRed", :font_size => 24)
428
- pdf.fill_color Color::Black
429
- pdf.text("MediumVioletRed", :font_size => 12, :justification => :center)
430
-
431
- pdf.fill_color Color::IndianRed
432
- pdf.text("IndianRed", :font_size => 24)
433
- pdf.fill_color Color::Black
434
- pdf.text("IndianRed", :font_size => 12, :justification => :center)
435
-
436
- pdf.fill_color Color::Peru
437
- pdf.text("Peru", :font_size => 24)
438
- pdf.fill_color Color::Black
439
- pdf.text("Peru", :font_size => 12, :justification => :center)
28
+ colours = Color::RGB.constants.sort
440
29
 
441
- pdf.fill_color Color::Chocolate
442
- pdf.text("Chocolate", :font_size => 24)
443
- pdf.fill_color Color::Black
444
- pdf.text("Chocolate", :font_size => 12, :justification => :center)
445
-
446
- pdf.fill_color Color::Tan
447
- pdf.text("Tan", :font_size => 24)
448
- pdf.fill_color Color::Black
449
- pdf.text("Tan", :font_size => 12, :justification => :center)
450
-
451
- pdf.fill_color Color::LightGray
452
- pdf.text("LightGray", :font_size => 24)
453
- pdf.fill_color Color::Black
454
- pdf.text("LightGray", :font_size => 12, :justification => :center)
455
-
456
- pdf.fill_color Color::LightGrey
457
- pdf.text("LightGrey", :font_size => 24)
458
- pdf.fill_color Color::Black
459
- pdf.text("LightGrey", :font_size => 12, :justification => :center)
460
-
461
- pdf.fill_color Color::Thistle
462
- pdf.text("Thistle", :font_size => 24)
463
- pdf.fill_color Color::Black
464
- pdf.text("Thistle", :font_size => 12, :justification => :center)
465
-
466
- pdf.fill_color Color::Orchid
467
- pdf.text("Orchid", :font_size => 24)
468
- pdf.fill_color Color::Black
469
- pdf.text("Orchid", :font_size => 12, :justification => :center)
470
-
471
- pdf.fill_color Color::Goldenrod
472
- pdf.text("Goldenrod", :font_size => 24)
473
- pdf.fill_color Color::Black
474
- pdf.text("Goldenrod", :font_size => 12, :justification => :center)
475
-
476
- pdf.fill_color Color::PaleVioletRed
477
- pdf.text("PaleVioletRed", :font_size => 24)
478
- pdf.fill_color Color::Black
479
- pdf.text("PaleVioletRed", :font_size => 12, :justification => :center)
480
-
481
- pdf.fill_color Color::Crimson
482
- pdf.text("Crimson", :font_size => 24)
483
- pdf.fill_color Color::Black
484
- pdf.text("Crimson", :font_size => 12, :justification => :center)
485
-
486
- pdf.fill_color Color::Gainsboro
487
- pdf.text("Gainsboro", :font_size => 24)
488
- pdf.fill_color Color::Black
489
- pdf.text("Gainsboro", :font_size => 12, :justification => :center)
490
-
491
- pdf.fill_color Color::Plum
492
- pdf.text("Plum", :font_size => 24)
493
- pdf.fill_color Color::Black
494
- pdf.text("Plum", :font_size => 12, :justification => :center)
495
-
496
- pdf.fill_color Color::Burlywood
497
- pdf.text("Burlywood", :font_size => 24)
498
- pdf.fill_color Color::Black
499
- pdf.text("Burlywood", :font_size => 12, :justification => :center)
500
-
501
- pdf.fill_color Color::LightCyan
502
- pdf.text("LightCyan", :font_size => 24)
503
- pdf.fill_color Color::Black
504
- pdf.text("LightCyan", :font_size => 12, :justification => :center)
505
-
506
- pdf.fill_color Color::Lavender
507
- pdf.text("Lavender", :font_size => 24)
508
- pdf.fill_color Color::Black
509
- pdf.text("Lavender", :font_size => 12, :justification => :center)
510
-
511
- pdf.fill_color Color::Darksalmon
512
- pdf.text("Darksalmon", :font_size => 24)
513
- pdf.fill_color Color::Black
514
- pdf.text("Darksalmon", :font_size => 12, :justification => :center)
515
-
516
- pdf.fill_color Color::Violet
517
- pdf.text("Violet", :font_size => 24)
518
- pdf.fill_color Color::Black
519
- pdf.text("Violet", :font_size => 12, :justification => :center)
520
-
521
- pdf.fill_color Color::PaleGoldenrod
522
- pdf.text("PaleGoldenrod", :font_size => 24)
523
- pdf.fill_color Color::Black
524
- pdf.text("PaleGoldenrod", :font_size => 12, :justification => :center)
525
-
526
- pdf.fill_color Color::LightCoral
527
- pdf.text("LightCoral", :font_size => 24)
528
- pdf.fill_color Color::Black
529
- pdf.text("LightCoral", :font_size => 12, :justification => :center)
530
-
531
- pdf.fill_color Color::Khaki
532
- pdf.text("Khaki", :font_size => 24)
533
- pdf.fill_color Color::Black
534
- pdf.text("Khaki", :font_size => 12, :justification => :center)
535
-
536
- pdf.fill_color Color::AliceBlue
537
- pdf.text("AliceBlue", :font_size => 24)
538
- pdf.fill_color Color::Black
539
- pdf.text("AliceBlue", :font_size => 12, :justification => :center)
540
-
541
- pdf.fill_color Color::Honeydew
542
- pdf.text("Honeydew", :font_size => 24)
543
- pdf.fill_color Color::Black
544
- pdf.text("Honeydew", :font_size => 12, :justification => :center)
545
-
546
- pdf.fill_color Color::Azure
547
- pdf.text("Azure", :font_size => 24)
548
- pdf.fill_color Color::Black
549
- pdf.text("Azure", :font_size => 12, :justification => :center)
550
-
551
- pdf.fill_color Color::SandyBrown
552
- pdf.text("SandyBrown", :font_size => 24)
553
- pdf.fill_color Color::Black
554
- pdf.text("SandyBrown", :font_size => 12, :justification => :center)
555
-
556
- pdf.fill_color Color::Wheat
557
- pdf.text("Wheat", :font_size => 24)
558
- pdf.fill_color Color::Black
559
- pdf.text("Wheat", :font_size => 12, :justification => :center)
560
-
561
- pdf.fill_color Color::Beige
562
- pdf.text("Beige", :font_size => 24)
563
- pdf.fill_color Color::Black
564
- pdf.text("Beige", :font_size => 12, :justification => :center)
565
-
566
- pdf.fill_color Color::WhiteSmoke
567
- pdf.text("WhiteSmoke", :font_size => 24)
568
- pdf.fill_color Color::Black
569
- pdf.text("WhiteSmoke", :font_size => 12, :justification => :center)
570
-
571
- pdf.fill_color Color::MintCream
572
- pdf.text("MintCream", :font_size => 24)
573
- pdf.fill_color Color::Black
574
- pdf.text("MintCream", :font_size => 12, :justification => :center)
575
-
576
- pdf.fill_color Color::GhostWhite
577
- pdf.text("GhostWhite", :font_size => 24)
578
- pdf.fill_color Color::Black
579
- pdf.text("GhostWhite", :font_size => 12, :justification => :center)
580
-
581
- pdf.fill_color Color::Salmon
582
- pdf.text("Salmon", :font_size => 24)
583
- pdf.fill_color Color::Black
584
- pdf.text("Salmon", :font_size => 12, :justification => :center)
585
-
586
- pdf.fill_color Color::AntiqueWhite
587
- pdf.text("AntiqueWhite", :font_size => 24)
588
- pdf.fill_color Color::Black
589
- pdf.text("AntiqueWhite", :font_size => 12, :justification => :center)
590
-
591
- pdf.fill_color Color::Linen
592
- pdf.text("Linen", :font_size => 24)
593
- pdf.fill_color Color::Black
594
- pdf.text("Linen", :font_size => 12, :justification => :center)
595
-
596
- pdf.fill_color Color::LightGoldenrodYellow
597
- pdf.text("LightGoldenrodYellow", :font_size => 24)
598
- pdf.fill_color Color::Black
599
- pdf.text("LightGoldenrodYellow", :font_size => 12, :justification => :center)
600
-
601
- pdf.fill_color Color::OldLace
602
- pdf.text("OldLace", :font_size => 24)
603
- pdf.fill_color Color::Black
604
- pdf.text("OldLace", :font_size => 12, :justification => :center)
605
-
606
- pdf.fill_color Color::Red
607
- pdf.text("Red", :font_size => 24)
608
- pdf.fill_color Color::Black
609
- pdf.text("Red", :font_size => 12, :justification => :center)
610
-
611
- pdf.fill_color Color::Fuchsia
612
- pdf.text("Fuchsia", :font_size => 24)
613
- pdf.fill_color Color::Black
614
- pdf.text("Fuchsia", :font_size => 12, :justification => :center)
615
-
616
- pdf.fill_color Color::Magenta
617
- pdf.text("Magenta", :font_size => 24)
618
- pdf.fill_color Color::Black
619
- pdf.text("Magenta", :font_size => 12, :justification => :center)
620
-
621
- pdf.fill_color Color::DeepPink
622
- pdf.text("DeepPink", :font_size => 24)
623
- pdf.fill_color Color::Black
624
- pdf.text("DeepPink", :font_size => 12, :justification => :center)
625
-
626
- pdf.fill_color Color::OrangeRed
627
- pdf.text("OrangeRed", :font_size => 24)
628
- pdf.fill_color Color::Black
629
- pdf.text("OrangeRed", :font_size => 12, :justification => :center)
630
-
631
- pdf.fill_color Color::Tomato
632
- pdf.text("Tomato", :font_size => 24)
633
- pdf.fill_color Color::Black
634
- pdf.text("Tomato", :font_size => 12, :justification => :center)
635
-
636
- pdf.fill_color Color::HotPink
637
- pdf.text("HotPink", :font_size => 24)
638
- pdf.fill_color Color::Black
639
- pdf.text("HotPink", :font_size => 12, :justification => :center)
640
-
641
- pdf.fill_color Color::Coral
642
- pdf.text("Coral", :font_size => 24)
643
- pdf.fill_color Color::Black
644
- pdf.text("Coral", :font_size => 12, :justification => :center)
645
-
646
- pdf.fill_color Color::Darkorange
647
- pdf.text("Darkorange", :font_size => 24)
648
- pdf.fill_color Color::Black
649
- pdf.text("Darkorange", :font_size => 12, :justification => :center)
650
-
651
- pdf.fill_color Color::Lightsalmon
652
- pdf.text("Lightsalmon", :font_size => 24)
653
- pdf.fill_color Color::Black
654
- pdf.text("Lightsalmon", :font_size => 12, :justification => :center)
655
-
656
- pdf.fill_color Color::Orange
657
- pdf.text("Orange", :font_size => 24)
658
- pdf.fill_color Color::Black
659
- pdf.text("Orange", :font_size => 12, :justification => :center)
660
-
661
- pdf.fill_color Color::LightPink
662
- pdf.text("LightPink", :font_size => 24)
663
- pdf.fill_color Color::Black
664
- pdf.text("LightPink", :font_size => 12, :justification => :center)
665
-
666
- pdf.fill_color Color::Pink
667
- pdf.text("Pink", :font_size => 24)
668
- pdf.fill_color Color::Black
669
- pdf.text("Pink", :font_size => 12, :justification => :center)
670
-
671
- pdf.fill_color Color::Gold
672
- pdf.text("Gold", :font_size => 24)
673
- pdf.fill_color Color::Black
674
- pdf.text("Gold", :font_size => 12, :justification => :center)
675
-
676
- pdf.fill_color Color::Peachpuff
677
- pdf.text("Peachpuff", :font_size => 24)
678
- pdf.fill_color Color::Black
679
- pdf.text("Peachpuff", :font_size => 12, :justification => :center)
680
-
681
- pdf.fill_color Color::NavajoWhite
682
- pdf.text("NavajoWhite", :font_size => 24)
683
- pdf.fill_color Color::Black
684
- pdf.text("NavajoWhite", :font_size => 12, :justification => :center)
685
-
686
- pdf.fill_color Color::Moccasin
687
- pdf.text("Moccasin", :font_size => 24)
688
- pdf.fill_color Color::Black
689
- pdf.text("Moccasin", :font_size => 12, :justification => :center)
690
-
691
- pdf.fill_color Color::Bisque
692
- pdf.text("Bisque", :font_size => 24)
693
- pdf.fill_color Color::Black
694
- pdf.text("Bisque", :font_size => 12, :justification => :center)
695
-
696
- pdf.fill_color Color::MistyRose
697
- pdf.text("MistyRose", :font_size => 24)
698
- pdf.fill_color Color::Black
699
- pdf.text("MistyRose", :font_size => 12, :justification => :center)
700
-
701
- pdf.fill_color Color::BlanchedAlmond
702
- pdf.text("BlanchedAlmond", :font_size => 24)
703
- pdf.fill_color Color::Black
704
- pdf.text("BlanchedAlmond", :font_size => 12, :justification => :center)
705
-
706
- pdf.fill_color Color::PapayaWhip
707
- pdf.text("PapayaWhip", :font_size => 24)
708
- pdf.fill_color Color::Black
709
- pdf.text("PapayaWhip", :font_size => 12, :justification => :center)
710
-
711
- pdf.fill_color Color::LavenderBlush
712
- pdf.text("LavenderBlush", :font_size => 24)
713
- pdf.fill_color Color::Black
714
- pdf.text("LavenderBlush", :font_size => 12, :justification => :center)
715
-
716
- pdf.fill_color Color::Seashell
717
- pdf.text("Seashell", :font_size => 24)
718
- pdf.fill_color Color::Black
719
- pdf.text("Seashell", :font_size => 12, :justification => :center)
720
-
721
- pdf.fill_color Color::Cornsilk
722
- pdf.text("Cornsilk", :font_size => 24)
723
- pdf.fill_color Color::Black
724
- pdf.text("Cornsilk", :font_size => 12, :justification => :center)
725
-
726
- pdf.fill_color Color::LemonChiffon
727
- pdf.text("LemonChiffon", :font_size => 24)
728
- pdf.fill_color Color::Black
729
- pdf.text("LemonChiffon", :font_size => 12, :justification => :center)
730
-
731
- pdf.fill_color Color::FloralWhite
732
- pdf.text("FloralWhite", :font_size => 24)
733
- pdf.fill_color Color::Black
734
- pdf.text("FloralWhite", :font_size => 12, :justification => :center)
735
-
736
- pdf.fill_color Color::Snow
737
- pdf.text("Snow", :font_size => 24)
738
- pdf.fill_color Color::Black
739
- pdf.text("Snow", :font_size => 12, :justification => :center)
740
-
741
- pdf.fill_color Color::Yellow
742
- pdf.text("Yellow", :font_size => 24)
743
- pdf.fill_color Color::Black
744
- pdf.text("Yellow", :font_size => 12, :justification => :center)
745
-
746
- pdf.fill_color Color::LightYellow
747
- pdf.text("LightYellow", :font_size => 24)
748
- pdf.fill_color Color::Black
749
- pdf.text("LightYellow", :font_size => 12, :justification => :center)
750
-
751
- pdf.fill_color Color::Ivory
752
- pdf.text("Ivory", :font_size => 24)
753
- pdf.fill_color Color::Black
754
- pdf.text("Ivory", :font_size => 12, :justification => :center)
755
-
756
- pdf.fill_color Color::White
757
- pdf.text("White", :font_size => 24)
758
- pdf.fill_color Color::Black
759
- pdf.text("White", :font_size => 12, :justification => :center)
760
-
761
- pdf.fill_color Color::Gray10
762
- pdf.text("Gray10", :font_size => 24)
763
- pdf.fill_color Color::Black
764
- pdf.text("Gray10", :font_size => 12, :justification => :center)
765
-
766
- pdf.fill_color Color::Grey10
767
- pdf.text("Grey10", :font_size => 24)
768
- pdf.fill_color Color::Black
769
- pdf.text("Grey10", :font_size => 12, :justification => :center)
770
-
771
- pdf.fill_color Color::Gray20
772
- pdf.text("Gray20", :font_size => 24)
773
- pdf.fill_color Color::Black
774
- pdf.text("Gray20", :font_size => 12, :justification => :center)
775
-
776
- pdf.fill_color Color::Grey20
777
- pdf.text("Grey20", :font_size => 24)
778
- pdf.fill_color Color::Black
779
- pdf.text("Grey20", :font_size => 12, :justification => :center)
780
-
781
- pdf.fill_color Color::Gray30
782
- pdf.text("Gray30", :font_size => 24)
783
- pdf.fill_color Color::Black
784
- pdf.text("Gray30", :font_size => 12, :justification => :center)
785
-
786
- pdf.fill_color Color::Grey30
787
- pdf.text("Grey30", :font_size => 24)
788
- pdf.fill_color Color::Black
789
- pdf.text("Grey30", :font_size => 12, :justification => :center)
790
-
791
- pdf.fill_color Color::Gray40
792
- pdf.text("Gray40", :font_size => 24)
793
- pdf.fill_color Color::Black
794
- pdf.text("Gray40", :font_size => 12, :justification => :center)
795
-
796
- pdf.fill_color Color::Grey40
797
- pdf.text("Grey40", :font_size => 24)
798
- pdf.fill_color Color::Black
799
- pdf.text("Grey40", :font_size => 12, :justification => :center)
800
-
801
- pdf.fill_color Color::Gray50
802
- pdf.text("Gray50", :font_size => 24)
803
- pdf.fill_color Color::Black
804
- pdf.text("Gray50", :font_size => 12, :justification => :center)
805
-
806
- pdf.fill_color Color::Grey50
807
- pdf.text("Grey50", :font_size => 24)
808
- pdf.fill_color Color::Black
809
- pdf.text("Grey50", :font_size => 12, :justification => :center)
810
-
811
- pdf.fill_color Color::Gray60
812
- pdf.text("Gray60", :font_size => 24)
813
- pdf.fill_color Color::Black
814
- pdf.text("Gray60", :font_size => 12, :justification => :center)
815
-
816
- pdf.fill_color Color::Grey60
817
- pdf.text("Grey60", :font_size => 24)
818
- pdf.fill_color Color::Black
819
- pdf.text("Grey60", :font_size => 12, :justification => :center)
820
-
821
- pdf.fill_color Color::Gray70
822
- pdf.text("Gray70", :font_size => 24)
823
- pdf.fill_color Color::Black
824
- pdf.text("Gray70", :font_size => 12, :justification => :center)
825
-
826
- pdf.fill_color Color::Grey70
827
- pdf.text("Grey70", :font_size => 24)
828
- pdf.fill_color Color::Black
829
- pdf.text("Grey70", :font_size => 12, :justification => :center)
830
-
831
- pdf.fill_color Color::Gray80
832
- pdf.text("Gray80", :font_size => 24)
833
- pdf.fill_color Color::Black
834
- pdf.text("Gray80", :font_size => 12, :justification => :center)
835
-
836
- pdf.fill_color Color::Grey80
837
- pdf.text("Grey80", :font_size => 24)
838
- pdf.fill_color Color::Black
839
- pdf.text("Grey80", :font_size => 12, :justification => :center)
840
-
841
- pdf.fill_color Color::Gray90
842
- pdf.text("Gray90", :font_size => 24)
843
- pdf.fill_color Color::Black
844
- pdf.text("Gray90", :font_size => 12, :justification => :center)
30
+ colours.each do |colour|
31
+ next if colour == "PDF_FORMAT_STR"
32
+ next if colour == "Metallic"
33
+ pdf.fill_color Color::RGB.const_get(colour)
34
+ pdf.text colour, :font_size => 24
35
+ pdf.fill_color Color::RGB::Black
36
+ pdf.text colour, :font_size => 12, :justification => :center
37
+ end
845
38
 
846
- pdf.fill_color Color::Grey90
847
- pdf.text("Grey90", :font_size => 24)
848
- pdf.fill_color Color::Black
849
- pdf.text("Grey90", :font_size => 12, :justification => :center)
39
+ colours = Color::RGB::Metallic.constants.sort
40
+ colours.each do |colour|
41
+ pdf.fill_color Color::RGB::Metallic.const_get(colour)
42
+ pdf.text colour, :font_size => 24
43
+ pdf.fill_color Color::RGB::Black
44
+ pdf.text colour, :font_size => 12, :justification => :center
45
+ end
850
46
 
851
47
  pdf.save_as "colornames.pdf"