rghost-ruby1.9-beta 0.8.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/lib/rghost.rb +18 -0
  2. data/lib/rghost/border.rb +44 -0
  3. data/lib/rghost/callback.rb +58 -0
  4. data/lib/rghost/circle.rb +102 -0
  5. data/lib/rghost/color.rb +175 -0
  6. data/lib/rghost/constants.rb +626 -0
  7. data/lib/rghost/convert.rb +43 -0
  8. data/lib/rghost/cursor.rb +124 -0
  9. data/lib/rghost/dash.rb +59 -0
  10. data/lib/rghost/document.rb +546 -0
  11. data/lib/rghost/document_callback_facade.rb +64 -0
  12. data/lib/rghost/dsc_entry.rb +20 -0
  13. data/lib/rghost/dynamic_document_callback.rb +15 -0
  14. data/lib/rghost/eps.rb +31 -0
  15. data/lib/rghost/font.rb +48 -0
  16. data/lib/rghost/font_map.rb +54 -0
  17. data/lib/rghost/frame.rb +105 -0
  18. data/lib/rghost/function.rb +38 -0
  19. data/lib/rghost/gif.rb +41 -0
  20. data/lib/rghost/graphic.rb +26 -0
  21. data/lib/rghost/grid/base_grid.rb +228 -0
  22. data/lib/rghost/grid/callback_facade.rb +136 -0
  23. data/lib/rghost/grid/csv_grid.rb +51 -0
  24. data/lib/rghost/grid/dynamic_callback.rb +12 -0
  25. data/lib/rghost/grid/field_format.rb +43 -0
  26. data/lib/rghost/grid/grid.rb +15 -0
  27. data/lib/rghost/grid/header.rb +120 -0
  28. data/lib/rghost/grid/matrix.rb +10 -0
  29. data/lib/rghost/grid/rails_grid.rb +74 -0
  30. data/lib/rghost/grid/static_callback.rb +13 -0
  31. data/lib/rghost/grid/style/border_lines.rb +44 -0
  32. data/lib/rghost/grid/style/bottom_lines.rb +28 -0
  33. data/lib/rghost/grid/style/old_forms.rb +28 -0
  34. data/lib/rghost/grid/style/style.rb +8 -0
  35. data/lib/rghost/gs_alone.rb +25 -0
  36. data/lib/rghost/helpers.rb +13 -0
  37. data/lib/rghost/horizontal_line.rb +45 -0
  38. data/lib/rghost/how_to.rb +75 -0
  39. data/lib/rghost/image.rb +26 -0
  40. data/lib/rghost/jpeg.rb +39 -0
  41. data/lib/rghost/line.rb +89 -0
  42. data/lib/rghost/line_width.rb +28 -0
  43. data/lib/rghost/load.rb +43 -0
  44. data/lib/rghost/newpath.rb +19 -0
  45. data/lib/rghost/paper.rb +147 -0
  46. data/lib/rghost/parse_text.rb +53 -0
  47. data/lib/rghost/pdf_security.rb +36 -0
  48. data/lib/rghost/point.rb +23 -0
  49. data/lib/rghost/point_with_command.rb +17 -0
  50. data/lib/rghost/polygon.rb +75 -0
  51. data/lib/rghost/ps/AdobeExpert.enc +258 -0
  52. data/lib/rghost/ps/AdobeLatinEncoding.enc +258 -0
  53. data/lib/rghost/ps/Bengali.enc +386 -0
  54. data/lib/rghost/ps/CodePage1250.enc +258 -0
  55. data/lib/rghost/ps/CodePage1251.enc +258 -0
  56. data/lib/rghost/ps/CodePage1252.enc +258 -0
  57. data/lib/rghost/ps/CodePage1253.enc +258 -0
  58. data/lib/rghost/ps/CodePage1254.enc +258 -0
  59. data/lib/rghost/ps/CodePage1256.enc +258 -0
  60. data/lib/rghost/ps/CodePage1257.enc +258 -0
  61. data/lib/rghost/ps/CodePage1258.enc +258 -0
  62. data/lib/rghost/ps/CodePage874.enc +258 -0
  63. data/lib/rghost/ps/Fontmap +5 -0
  64. data/lib/rghost/ps/IsoLatin.enc +352 -0
  65. data/lib/rghost/ps/MacCentralEuropean.enc +258 -0
  66. data/lib/rghost/ps/MacCyrillice.desnc +258 -0
  67. data/lib/rghost/ps/MacGreek.enc +258 -0
  68. data/lib/rghost/ps/MacHebrew.enc +258 -0
  69. data/lib/rghost/ps/TeX-CorkEncoding.enc +258 -0
  70. data/lib/rghost/ps/TeX-LGR-Greek.enc +258 -0
  71. data/lib/rghost/ps/TeX-T2AModified2Encoding.enc +258 -0
  72. data/lib/rghost/ps/TeX-T2BAdobeEncoding.enc +258 -0
  73. data/lib/rghost/ps/TeX-T2CAdobeEncoding.enc +258 -0
  74. data/lib/rghost/ps/TeX-X2AdobeEncoding.enc +258 -0
  75. data/lib/rghost/ps/TeX-XL2encoding.enc +258 -0
  76. data/lib/rghost/ps/TeXMathExtensionEncoding.enc +258 -0
  77. data/lib/rghost/ps/TeXMathItalicEncoding.enc +258 -0
  78. data/lib/rghost/ps/TeXMathSymbolEncoding.enc +258 -0
  79. data/lib/rghost/ps/US-ASCII.enc +258 -0
  80. data/lib/rghost/ps/UTF-8.enc +3 -0
  81. data/lib/rghost/ps/_cusor.ps +46 -0
  82. data/lib/rghost/ps/basic.ps +25 -0
  83. data/lib/rghost/ps/begin_document.ps +8 -0
  84. data/lib/rghost/ps/callbacks.ps +175 -0
  85. data/lib/rghost/ps/code128.font +344 -0
  86. data/lib/rghost/ps/code39.font +195 -0
  87. data/lib/rghost/ps/cursor.ps +106 -0
  88. data/lib/rghost/ps/datagrid.ps +55 -0
  89. data/lib/rghost/ps/developer.ps +237 -0
  90. data/lib/rghost/ps/ean.font +150 -0
  91. data/lib/rghost/ps/eps.ps +42 -0
  92. data/lib/rghost/ps/font.ps +38 -0
  93. data/lib/rghost/ps/frame.ps +16 -0
  94. data/lib/rghost/ps/gif.ps +150 -0
  95. data/lib/rghost/ps/horizontal_line.ps +4 -0
  96. data/lib/rghost/ps/i25.font +103 -0
  97. data/lib/rghost/ps/jpeg.ps +122 -0
  98. data/lib/rghost/ps/link.ps +22 -0
  99. data/lib/rghost/ps/paper.ps +8 -0
  100. data/lib/rghost/ps/rect_link.ps +17 -0
  101. data/lib/rghost/ps/rectangle.ps +5 -0
  102. data/lib/rghost/ps/rghost_default_template.eps +1532 -0
  103. data/lib/rghost/ps/row.ps +4 -0
  104. data/lib/rghost/ps/show.ps +21 -0
  105. data/lib/rghost/ps/table_callbacks.ps +96 -0
  106. data/lib/rghost/ps/text.ps +63 -0
  107. data/lib/rghost/ps/textarea.ps +11 -0
  108. data/lib/rghost/ps/type.ps +1 -0
  109. data/lib/rghost/ps/unit.ps +3 -0
  110. data/lib/rghost/ps/vertical_line.ps +12 -0
  111. data/lib/rghost/ps/virtual_pages.ps +55 -0
  112. data/lib/rghost/ps_facade.rb +253 -0
  113. data/lib/rghost/ps_object.rb +55 -0
  114. data/lib/rghost/rectangle_link.rb +65 -0
  115. data/lib/rghost/rgengine.so +0 -0
  116. data/lib/rghost/ruby_ghost_config.rb +243 -0
  117. data/lib/rghost/ruby_ghost_engine.rb +156 -0
  118. data/lib/rghost/ruby_ghost_version.rb +8 -0
  119. data/lib/rghost/ruby_to_ps.rb +78 -0
  120. data/lib/rghost/scale.rb +29 -0
  121. data/lib/rghost/shape_content.rb +23 -0
  122. data/lib/rghost/show.rb +88 -0
  123. data/lib/rghost/static_document_callback.rb +18 -0
  124. data/lib/rghost/text.rb +44 -0
  125. data/lib/rghost/text_in.rb +51 -0
  126. data/lib/rghost/text_link_in.rb +42 -0
  127. data/lib/rghost/textarea.rb +88 -0
  128. data/lib/rghost/units.rb +82 -0
  129. data/lib/rghost/variable.rb +12 -0
  130. data/lib/rghost/vertical_line.rb +37 -0
  131. data/lib/rghost/virtual_pages.rb +42 -0
  132. metadata +185 -0
@@ -0,0 +1,150 @@
1
+ %!FontType1-1.1: EANJK 001.000
2
+ %%CreationDate: Thu Feb 22 12:20:39 2001
3
+ %%VMusage: 9382 5654
4
+ %
5
+ % This Type 1 PostScript font implements the EAN bar code.
6
+ % Copyright (C) 2001 Jan Karrman. All rights reserved.
7
+ %
8
+ % This program is free software; you can redistribute it and/or modify
9
+ % it under the terms of the GNU General Public License as published by
10
+ % the Free Software Foundation; either version 2 of the License, or
11
+ % (at your option) any later version.
12
+ %
13
+ % This program is distributed in the hope that it will be useful,
14
+ % but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ % GNU General Public License for more details.
17
+ %
18
+ % You should have received a copy of the GNU General Public License
19
+ % along with this program; if not, write to the Free Software
20
+ % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
+ %
22
+ 11 dict begin
23
+ /FontInfo 10 dict dup begin
24
+ /version (001.000) readonly def
25
+ /Notice (Copyright (C) 2001 Jan Karrman. All rights reserved.) readonly def
26
+ /FullName (EAN JK) readonly def
27
+ /FamilyName (EAN JK) readonly def
28
+ /Weight (Medium) readonly def
29
+ /ItalicAngle 0 def
30
+ /isFixedPitch false def
31
+ /UnderlinePosition 0 def
32
+ /UnderlineThickness 0 def
33
+ end readonly def
34
+ /FontName /EANJK def
35
+ /Encoding 256 array
36
+ 0 1 255 {1 index exch /.notdef put} for
37
+ dup 32 /space put
38
+ dup 45 /hyphen put
39
+ dup 48 /zero put
40
+ dup 49 /one put
41
+ dup 50 /two put
42
+ dup 51 /three put
43
+ dup 52 /four put
44
+ dup 53 /five put
45
+ dup 54 /six put
46
+ dup 55 /seven put
47
+ dup 56 /eight put
48
+ dup 57 /nine put
49
+ dup 58 /colon put
50
+ dup 65 /A put
51
+ dup 66 /B put
52
+ dup 67 /C put
53
+ dup 68 /D put
54
+ dup 69 /E put
55
+ dup 70 /F put
56
+ dup 71 /G put
57
+ dup 72 /H put
58
+ dup 73 /I put
59
+ dup 74 /J put
60
+ dup 91 /bracketleft put
61
+ dup 97 /a put
62
+ dup 98 /b put
63
+ dup 99 /c put
64
+ dup 100 /d put
65
+ dup 101 /e put
66
+ dup 102 /f put
67
+ dup 103 /g put
68
+ dup 104 /h put
69
+ dup 105 /i put
70
+ dup 106 /j put
71
+ dup 124 /bar put
72
+ dup 125 /braceright put
73
+ readonly def
74
+ /PaintType 0 def
75
+ /FontType 1 def
76
+ /FontMatrix [0.001 0 0 0.001 0 0] readonly def
77
+ /UniqueID 5119296 def
78
+ /FontBBox [0 0 105 800] readonly def
79
+ currentdict end
80
+ currentfile eexec
81
+ f983ef0097ece636fb4a96c74d26ab84185f6dfa4a16a7a1c27bbe3f1156aea6
82
+ 98df331278ddd83a95bfe3721babb069504235a8fca9f8012c70beaa7df68b59
83
+ 3bd9d4efa3ace1dece221596c4dfc26c5c23e53e56473f4d3d6af6250e05d49b
84
+ 73f7a3256c4c7009b943617e186e6e406c0452dfa948d4c47a33656eb964cb53
85
+ dee08929b0003bd7ddaccd7fa8af1d9d747bfddcfef440f31be75ad6f19c971e
86
+ 720977e21ff5df9eb46cffc8637d5b56f558338bcfaa175db8707efb880ccfa5
87
+ be787a0185c3164b2213ed9d4933bfb0142b34cf3296a02575d97c10fe982329
88
+ 3233e30900b1b428c0429f1922d7ec6f01b8d1a72d48f3e093a40a00ffa76a7f
89
+ 7c45d6a17c6ff93abdc4379def417d42c1766e0c2e80c3ca94736566c48ab228
90
+ d845ac759d8b8cff1a53820e739d6af182fc56e3f40cbd37686756d399e04395
91
+ df28d88961b1cc61802438404603f21cbafe39a5a2b5ecb07d74a545507b21e8
92
+ 935d1cba55f2df98218418005d6054d0c89bd0a034352c6d127ee89f7e9829ab
93
+ b288e558dc39a73a191de483173b5db8b082a46e0b4ecd8bfc44f870ed2cfdf5
94
+ baaf23486e1881219320672b5e5154cb9de3ba95e31e2b938ebb0b89c97faa7b
95
+ 1fbdd41585c67e9a1e359e12fbfd6d12b5510138ae5277d4a1844957b5ba47f3
96
+ c9f2d5ac111cf3e65784b47857439180a0bf758d7b49b76da27b5c7849d73497
97
+ 4e370214c08f80e2a6cb3d08790f5b9d5b8cc43755e38ce8feff14383d9f45d2
98
+ 751dc38025647677a2ae7d5a0e4b56f9080f56c2a01d8428af5280ae88eefc4f
99
+ 5341b9b72c8ea08cd58614d83f3c7e2bcada3a55f788d6779547a6a233dec843
100
+ 0746db0f5202577bf7f2746057a1dec9020da9665b8937338b4f9faa67e5d852
101
+ 4bb56d56865fe7c57e4c67b8936a88a41bd671ad435f41972c65cb7b9248ec95
102
+ b5499467a29d2a21493991ee9cd9becdf9794169e33b2e44fa6760d60bc5aba7
103
+ 697065aba86aeae7587f00415304caed4d96b7d7bcbc093eac908f81746a525e
104
+ 6d96d9d12466bf4fa978e98e985fe2d4d373dfcfc9b044c69573e5af00f96892
105
+ 02edba6393432f5e001b9fe9b44362dff672256ddeb3ec3a1498fb08487e3098
106
+ f258073103d43dd0873429c62ddcfdd3aa5b2b4492e7781434e97c70b13794c4
107
+ a71a639b990a2ce622b55307bb5dceb60e7477cba339eb4bbb78eca7b683e5e0
108
+ 5f568c50dbe2887bbab789dd532228ac9922cb0fc2a423ded5861de8f878c57a
109
+ db2ad12e59fea046eb25dd4f218f8a193cf7a281d7b306ecb4fccd56828a56c3
110
+ 775fa543399b8359bd48f1e9e433285f77c65ff8dc873e7b1450e036be55f824
111
+ ea32e1a1c3d4b77e77691670dec55729a657340a37e617f99d793f06c3f21a5f
112
+ 598c6a91cdba13aa4d8bf9d1835d9ada802d847a39b39ea429d608085f96b579
113
+ 71b17e85955cc4ac6bdcb17db2fe392a4e87ec0766bb3b01643faf8556cc8041
114
+ 87979e79c437cd90307cbdbd3ff373c4935bcf940c939da9d8db90f2fd73e913
115
+ 74cfccf3281c6f16a81a7ad9b65ac24e41b9cfd2da4bf8a2ab640b4d496a207d
116
+ 2de55592c65beae60e04be51dd7975dc18cad4d5280c28efae243577de4748fa
117
+ b6fd29fe5d7a26ab040c04bdc8cb06d7e62829a6ce540db176c08cd6e0ba1a6b
118
+ 3d77569f518ab93d5f8a71af0841a4feb5eabeea0ed06da3b9d21c2b587d1740
119
+ dca281c49a1a3498e662628690015fcb8236321fbf6a34682ca110e18c9ca2b7
120
+ 22e5703e43144fcee032e6efd9029b879682899a280179eb98954a604bbb86e5
121
+ 0a82330d8cce279b183726363e69fce4954ccb6e2a14157df8ce3b0238754087
122
+ 6cf8975f97e81ec3a0cfd98fec5720c3b105cf7032acb17aeaf5a8881e7b8cf8
123
+ 4fa6fc1c6202fac511af1512f80bdf5447d06a948c7961ebeda48ddcbb229fe5
124
+ 65e7b3944746a894da0c1b50186d1749b8b1c18e58394c09e550e298e5b8e269
125
+ cd9cf6c8f00ad6fd4fd6f17598495e17e1ba71ed558ba5219012e1ed104f633e
126
+ 72d3aff11865ee21e7fbae62483070731c431fbe5362613ba2cc394be13ef5a2
127
+ 97a72ca488391b447de7816b9c33a13d562c1413fbdc3633d91b8e4230664041
128
+ ff53c6ced5f1f15d4557ec314b75b08512071e45c71cbfbd7c5f9f210890805c
129
+ 892339b445b7e3df25609485062f2d4849ea74ed3ce0e1db70315c6bdd672a4c
130
+ 8c5c3bb56841ddf69b9fbe42dba56c2764c0c80ffb79da27416a5f755860381e
131
+ f229cfa6b817cbdfcf5913d1b2365a0a6418f216c0533c4a714034a724c4f07d
132
+ f4064d83309022fc5a3ca8fb13ef1a5c273ce853091b22e41cc5e9327937e2f5
133
+ d80f421a3742fa3928e5c40d4ffb16afa35be53966083098531ed367b6aaa775
134
+ 05b30e63ba166d7e64bc354f577bbb42219d74cb579b574c6ba0923ec7fde374
135
+ aa63541ab0429593df87891dc8d26b7daeda3cd79df4a5af6c64c68e36111efc
136
+ 1b83a128b44377fe854b905cec9ec6d4192eae83c025396fedb813c894596a96
137
+ 14813b114039ed3f7c5ffe09836570ea2d253c4664b17335b663f29cc4f935b2
138
+ fe8f3b82d94081846e133704bb6255c947034788aba2679fb458dff757c27541
139
+ 871c64d0da1c8cfa4fc66d8bc472ae203db59d649f6639846c20430cf432237c
140
+ d4dfc9babeabcd4b9b93dfacb3ba2e8f503fc18e9ea037dea06ec0422f567dbf
141
+ 5150a65f8da17741a06bbafb80a0f4d6d790fd26d9
142
+ 0000000000000000000000000000000000000000000000000000000000000000
143
+ 0000000000000000000000000000000000000000000000000000000000000000
144
+ 0000000000000000000000000000000000000000000000000000000000000000
145
+ 0000000000000000000000000000000000000000000000000000000000000000
146
+ 0000000000000000000000000000000000000000000000000000000000000000
147
+ 0000000000000000000000000000000000000000000000000000000000000000
148
+ 0000000000000000000000000000000000000000000000000000000000000000
149
+ 0000000000000000000000000000000000000000000000000000000000000000
150
+ cleartomark
@@ -0,0 +1,42 @@
1
+ /BeginEPSF
2
+ {
3
+ /EPSFsave save def
4
+ count /OpStackSize exch def
5
+ /DictStackSize countdictstack def
6
+ % turn off showpage
7
+ /showpage {} def
8
+ % set up default graphics state
9
+ 0 setgray 0 setlinecap
10
+ 1 setlinewidth 0 setlinejoin
11
+ 10 setmiterlimit [] 0 setdash newpath
12
+ /languagelevel where
13
+ {
14
+ pop languagelevel 1 ne
15
+ {
16
+ false setstrokeadjust false setoverprint
17
+ } if
18
+ } if
19
+ } bind def
20
+ /EndEPSF
21
+ {
22
+ count OpStackSize sub
23
+ dup 0 lt {neg {pop} repeat} {pop} ifelse
24
+ countdictstack DictStackSize sub
25
+ dup 0 lt {neg {end} repeat} {pop} ifelse
26
+ EPSFsave restore
27
+ } bind def
28
+ /EPSFBox
29
+ {
30
+ 4 dict begin
31
+ /ury exch def
32
+ /urx exch def
33
+ /lly exch def
34
+ /llx exch def
35
+ llx lly moveto
36
+ urx lly lineto
37
+ urx ury lineto
38
+ llx ury lineto
39
+ closepath
40
+ end
41
+ } def
42
+ /pagesave save def
@@ -0,0 +1,38 @@
1
+ /fontsize 8 def
2
+ /encoding_font { findfont dup length dict begin { 1 index /FID ne { def } { pop pop } ifelse } bind forall /Encoding default_encoding def currentdict end } def
3
+
4
+ /Helvetica encoding_font
5
+ /Helvetica-encoding exch definefont pop
6
+
7
+ /Helvetica-Bold encoding_font
8
+ /Helvetica-Bold-encoding exch definefont pop
9
+
10
+ /Helvetica-Oblique encoding_font
11
+ /Helvetica-Oblique-encoding exch definefont pop
12
+
13
+ /Helvetica-BoldOblique encoding_font
14
+ /Helvetica-BoldOblique-encoding exch definefont pop
15
+
16
+ /font_normal{
17
+ /Helvetica-encoding findfont fontsize scalefont setfont
18
+ 0 setgray
19
+ } bind def
20
+
21
+ /font_bold{
22
+ /Helvetica-Bold-encoding findfont fontsize scalefont setfont
23
+ 0 setgray
24
+ } bind def
25
+
26
+ /font_italic{
27
+ /Helvetica-Oblique-encoding findfont fontsize scalefont setfont
28
+ 0 setgray
29
+ } bind def
30
+
31
+ /font_bold_italic{
32
+ /Helvetica-BoldOblique-encoding findfont fontsize scalefont setfont
33
+ 0 setgray
34
+ } bind def
35
+ /b{font_bold } def
36
+ /i{font_italic } def
37
+ /default_font{ font_normal} def
38
+ /_default_font{ font_normal} def
@@ -0,0 +1,16 @@
1
+ /rcorners{
2
+ gsave
3
+ :x :y :r add moveto
4
+ :outside
5
+ /:l1{ :x :y :h add :x :s add :y :h add :r arcto } def
6
+ /:l2{ :x :w add :y :h add :x :w add :y :h add :s sub :r arcto } def
7
+ /:l3{ :x :w add :y :x :w add :s sub :y :r arcto } def
8
+ /:l4{ :x :y :x :y :s add :r arcto } def
9
+ :l1 :l2 :l3 :l4 clear
10
+ closepath
11
+ %gsave
12
+ :inside
13
+ %grestore
14
+ stroke
15
+ grestore
16
+ } def
@@ -0,0 +1,150 @@
1
+ % Copyright (C) 1989, 1992, 1993, 1998 Aladdin Enterprises. All rights reserved.
2
+ % For more information about licensing, please refer to
3
+ % http://www.ghostscript.com/licensing/. For information on
4
+ % commercial licensing, go to http://www.artifex.com/licensing/ or
5
+ % Adaptation to ruby-ghost by Shairon Toledo shairon.toledo@gmail.com
6
+
7
+ /read1 % <file> read1 <int>
8
+ { read pop
9
+ } bind def
10
+ /read2 % <file> read2 <int>
11
+ { dup read1 exch read1 8 bitshift add
12
+ } bind def
13
+
14
+ /readGIFheader % <file> readGIFheader <dict>
15
+ { 20 dict begin
16
+ dup 6 string readstring pop
17
+ dup (GIF87a) eq exch (GIF89a) eq or not
18
+ { (Not a GIF file.\n) print cleartomark stop
19
+ } if
20
+ dup read2 /Width exch def
21
+ dup read2 /Height exch def
22
+ dup read1
23
+ dup 128 ge /GlobalColor exch def
24
+ dup -4 bitshift 7 and 1 add /BitsPerPixel exch def %***BOGUS?***
25
+ dup 8 and 0 ne /PaletteSorted exch def
26
+ 7 and 1 add dup /BitsPerPixel exch def
27
+ 1 exch bitshift /PaletteSize exch def
28
+ dup read1 /BackgroundIndex exch def
29
+ dup read1 15 add 64 div /AspectRatio exch def
30
+ GlobalColor
31
+ { PaletteSize 3 mul string readstring pop
32
+ /GlobalPalette exch def
33
+ } if
34
+ currentdict end
35
+ } bind def
36
+
37
+ /readGIFimageHeader % <file> readGIFimageHeader <dict>
38
+ % Note: GIF header must be on dict stack
39
+ { 10 dict begin
40
+ { dup read1
41
+ dup (!) 0 get ne { exit } if pop % extension
42
+ dup read1 pop
43
+ { dup read1 dup 0 eq { pop exit } if { dup read1 pop } repeat
44
+ } loop
45
+ } loop
46
+ (,) 0 get ne
47
+ { (Not a GIF image.\n) print stop
48
+ } if
49
+ dup read2 /Left exch def
50
+ dup read2 /Top exch def
51
+ dup read2 /Width exch def
52
+ dup read2 /Height exch def
53
+ dup read1
54
+ dup 128 ge /LocalColor exch def
55
+ dup 64 and 0 ne /Interlaced exch def
56
+ LocalColor
57
+ { 7 and 1 add /BitsPerPixel exch def
58
+ 1 BitsPerPixel bitshift 3 mul string readstring pop
59
+ /Palette exch def
60
+ }
61
+ { pop pop /Palette GlobalPalette def
62
+ }
63
+ ifelse
64
+ currentdict end
65
+ } bind def
66
+
67
+ /imageGIF % <imagedict> imageGIF
68
+ { /ImageOut where
69
+ { pop
70
+ % We know BitsPerComponent = 8, Decode = [0 255].
71
+ % and there is only a single data source which is
72
+ % either a filter or a string whose size is exactly
73
+ % the width of the row.
74
+ dup /DataSource get dup type /stringtype eq
75
+ { ImageOut exch writestring
76
+ }
77
+ { pop dup /Width get string
78
+ 1 index /Height get
79
+ { 1 index /DataSource get 1 index readstring pop
80
+ ImageOut exch writestring
81
+ }
82
+ repeat pop pop
83
+ }
84
+ ifelse
85
+ }
86
+ { image
87
+ }
88
+ ifelse
89
+ } bind def
90
+
91
+ /viewGIF % <file|string> viewGIF -
92
+ { save 20 dict begin
93
+ /saved exch def
94
+ dup type /stringtype eq { (r) file } if
95
+ /F exch def
96
+ /ImageOutFile where { /ImageOut ImageOutFile (w) file def } if
97
+ F readGIFheader /Header exch def
98
+ currentdict Header end begin begin
99
+ VGIFDEBUG { Header { exch == == } forall (----------------\n) print flush } if
100
+ F readGIFimageHeader /ImageHeader exch def
101
+ currentdict ImageHeader end begin begin
102
+ VGIFDEBUG { ImageHeader { exch == == } forall (----------------\n) print flush } if
103
+ /D F
104
+ << /InitialCodeLength F read1
105
+ /FirstBitLowOrder true
106
+ /BlockData true
107
+ /EarlyChange 0
108
+ >> /LZWDecode filter def
109
+
110
+ [/Indexed /DeviceRGB 1 BitsPerPixel bitshift 1 sub Palette] setcolorspace
111
+ matrix currentmatrix
112
+ 0 1 3 { 2 copy get dup 0 ne { dup abs div } if 3 copy put pop pop } for
113
+ setmatrix
114
+
115
+ << /ImageType 1
116
+ /ImageMatrix [1 0 0 -1 0 Height]
117
+ /BitsPerComponent 8
118
+ /Decode [0 255]
119
+ Interlaced
120
+ { /Width Width /Height 1
121
+ /row Width string def
122
+ /DataSource row
123
+ >> /I exch def
124
+ /inter % <num> <denom> inter -
125
+ { /denom exch def /num exch def
126
+ gsave
127
+ /lines Height denom 1 sub add num sub denom idiv def
128
+ 0 1 lines 1 sub {
129
+ Height exch denom mul num add sub
130
+ I /ImageMatrix get 5 3 -1 roll put
131
+ D row readstring pop pop
132
+ I imageGIF
133
+ } for
134
+ grestore
135
+ }
136
+ bind def
137
+ 0 8 inter
138
+ 4 8 inter
139
+ 2 4 inter
140
+ 1 2 inter
141
+ }
142
+ { /Width Width /Height Height
143
+ gif_params
144
+ /DataSource D
145
+ >> imageGIF
146
+ }
147
+ ifelse
148
+ saved end end end restore
149
+ } bind def
150
+ gsave
@@ -0,0 +1,4 @@
1
+ %/horizontal_line_top { exch gsave current_row row_height add moveto 0 rlineto stroke grestore } def
2
+ /horizontal_line_top { exch current_row row_height add moveto 0 rlineto stroke } def
3
+ /horizontal_line_middle { exch current_row row_height sqrt add moveto 0 rlineto stroke }def
4
+ /horizontal_line_bottom { exch current_row row_padding sub moveto 0 rlineto stroke }def
@@ -0,0 +1,103 @@
1
+ %!PS-AdobeFont-1.0: Codei25JK 1.000
2
+ %%CreationDate: Thu Feb 22 12:20:33 2001
3
+ %%VMusage: 10488 6784
4
+ %
5
+ % This Type 1 PostScript font implements the Code 39 bar code.
6
+ % Copyright (C) 2001 Jan Karrman. All rights reserved.
7
+ %
8
+ % This program is free software; you can redistribute it and/or modify
9
+ % it under the terms of the GNU General Public License as published by
10
+ % the Free Software Foundation; either version 2 of the License, or
11
+ % (at your option) any later version.
12
+ %
13
+ % This program is distributed in the hope that it will be useful,
14
+ % but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ % GNU General Public License for more details.
17
+ %
18
+ % You should have received a copy of the GNU General Public License
19
+ % along with this program; if not, write to the Free Software
20
+ % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
+ %
22
+ false
23
+ 17 dict begin
24
+ /FontInfo 13 dict dup begin
25
+ /version(001.000) readonly def
26
+ /Notice(Copyright (C) 2001 Jan Karrman. All rights reserved.)readonly def
27
+ /FullName(Interleaved 2 of 5)readonly def
28
+ /FamilyName(Interleaved 2 of 5)readonly def
29
+ /Weight(Normal)readonly def
30
+ /isFixedPitch false def
31
+ /ItalicAngle 0 def
32
+ /UnderlinePosition -133 def
33
+ /UnderlineThickness 20 def
34
+ end readonly def
35
+ /FontName /Codei25JK def
36
+ /Encoding StandardEncoding def
37
+ /PaintType 0 def
38
+ /FontType 1 def
39
+ /StrokeWidth 0 def
40
+ /FontMatrix[0.001 0 0 0.001 0 0]readonly def
41
+ /UniqueID 4345031 def
42
+ /FontBBox{0 0 201 1003}readonly def
43
+ currentdict end
44
+ currentfile eexec
45
+ d9d66f633b846a97b686a97e45a3d0aa0525392eecac163e584a9104d99ad0bc
46
+ 1b1f3f7121d1d0f2c60dd206b0d3c8c450620b47320ca0aeb8937511e456aade
47
+ 8e66b301b1e3e9dfe17e2f79ecfea709ff3dae19b4c169df6773eda414d02915
48
+ a6f0faf8b24fbb0777c697be8a37d63a390ad9dae495bb7e626721ff2fd3fb14
49
+ 7c80d22beac37c2624d818d58c8df0209f5ce76acdde57a303d9042bf0a674d0
50
+ 95697f925f532d1814bea8f8a5b1fd0737f362c88e00acaed0fbd4a36e9c2a30
51
+ 8f53570cf2a0c2f3cacdcef9a65bc833ba02199166a964e544f4b7b7afeaac17
52
+ f8e05601552604b40d45d9fa0ab5a091879bf8f22cfa7ada67b9cc14129ca45f
53
+ a4c800e5c096889016e179a61c27f4e94f4f665fe0ffde7fa87eee002851e3da
54
+ feb5b00e066377ebe43637036e54a7a96bffe3a5b9bb29d1139125a36291f767
55
+ 17d0083283a430a2842be99904f3160181d8007d412200a34824f478a098157d
56
+ 96002e8dea100b6b11ed62564d1084f84db72cf8246e1afc90613b4fc4857601
57
+ a5dbf84543531f6c6b5d0843fb6f982f1a942c7fc9d041b3a1678d40e94f994c
58
+ a2f2f27034fa69106f1adaa2dac46114af354e3143e0edd091a021eee4060880
59
+ 0bc8f236114a0a40eb6533819e15d3e4f2adacdb65329de3f7f57bc58432c12d
60
+ 3ffe9847c0797728c4d0dc106609cbcb7ec1df50872bede40f92c33b7ed57aa8
61
+ 05d58482571f8440d26d1e27d9b63bafa6d5d3a506238448dd4832d73d1ad4e1
62
+ 0656d6796a70de97442bc98689d002beb5a63e222bc8f3000d25873be21fd28c
63
+ ddb4dfc11da7337bfbdb28714f5905c98798499a36e9bada0cdf82aefbbb9b7f
64
+ 88f5f0b5cd27b129da62afba21cc46bb3207676b96695aedbfe52b3d4e097418
65
+ c1033dd020930229eb0888b285b72c0ef088a386cb77a060b529ff519061d665
66
+ 3e8df6c9c90f4c459352f8149cf30339daa54822c2d72a7938a76fe4bdd1becb
67
+ 4f085845d39491f9ac0256d2ea56c62cd14a0b49dedfa9b1da56c771eb30f6f3
68
+ b26e479da0bbc92521b15ad68cad72849d651245c5ec4f62a6e5bf9897e75c31
69
+ a1a6938f1bbf331d5432ba5eca376fd94ca1d82701e2f30aa14cef5c7609b7b8
70
+ a5e1854cad98aa1eb4e769f964ba42ad48748fb6356a4f1b01317b3f7882b2a3
71
+ 69c6301f483dcf59ebcfcc2bd9d6fd09448d01ed1d5303950c46968954828189
72
+ c1955f876e92acaff10ecd920b11bf0f1f75006e66fe5ff817f94ab879d80e76
73
+ ff1cf788da1298bfb31b43aa1eb02b4ead48691c2a47df0576970140ceec8429
74
+ a1acd7e32b7bbc152d967e4fd41cdd60d6643a6584fba4114608c6556b42a230
75
+ 7eedeaede6918d32153c448db337d539fcb0edd42cd26374e816bf38a498c651
76
+ 9e2dcf1de36ca654aa4124d577d7f47fd14be17d8c830a2bcafb0ccdfbe13d2e
77
+ 7c026ee679c3e7adab9939315238f16f7ba5a0de9a8171295c0deaa2bad1fb80
78
+ d67f16b316cbb54d5da2b380bffaaff1d0bb3d19d19f2dab4becb387548d6d13
79
+ 326ed54154eb4040e6e7e797e18a75e5ac29d39a35490f03daf5a2da077f6f9d
80
+ 588054a06a923ebd689ff14fe3bbe917e4621145d1ddda773ec146cb259e4e72
81
+ 235d21f4b7d7fec81f27ff764f80221ce57d5b447026590da0fbd0ccba3a850e
82
+ e76b6d6214ac21b1012afab0fd82aaf86bf0fbef01d92c7862418323581e7a6c
83
+ 96fe2ed6c5cc6aa7ee629d85ab55a9517579b847f0173eae4b5ebb54d5118af0
84
+ 9cde391674cc9ced53988dfa7c609e2eda8a7988c135c4aa9e6a41be39a192b8
85
+ d5701ce678af5d99ad1e63d6cc276c10deb077e464bf8b8105b2c55f2ee5dbd1
86
+ fd75d518841b85833cef602275d860
87
+ 00000000000000000000000000000000
88
+ 00000000000000000000000000000000
89
+ 00000000000000000000000000000000
90
+ 00000000000000000000000000000000
91
+ 00000000000000000000000000000000
92
+ 00000000000000000000000000000000
93
+ 00000000000000000000000000000000
94
+ 00000000000000000000000000000000
95
+ 00000000000000000000000000000000
96
+ 00000000000000000000000000000000
97
+ 00000000000000000000000000000000
98
+ 00000000000000000000000000000000
99
+ 00000000000000000000000000000000
100
+ 00000000000000000000000000000000
101
+ 00000000000000000000000000000000
102
+ 00000000000000000000000000000000
103
+ cleartomark{restore}if