rfpdf 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +18 -0
  3. data/Gemfile +4 -0
  4. data/Rakefile +2 -0
  5. data/lib/core/rmagick.rb +85 -0
  6. data/lib/fonts/README.z +2 -0
  7. data/lib/fonts/arialunicid0_cw.rb +1738 -0
  8. data/lib/fonts/cid0cs.rb +21 -0
  9. data/lib/fonts/cid0ct.rb +21 -0
  10. data/lib/fonts/cid0jp.rb +21 -0
  11. data/lib/fonts/cid0kr.rb +21 -0
  12. data/lib/fonts/courier.rb +37 -0
  13. data/lib/fonts/dejavu-fonts-ttf-2.33/AUTHORS +53 -0
  14. data/lib/fonts/dejavu-fonts-ttf-2.33/BUGS +3 -0
  15. data/lib/fonts/dejavu-fonts-ttf-2.33/LICENSE +99 -0
  16. data/lib/fonts/dejavu-fonts-ttf-2.33/NEWS +1315 -0
  17. data/lib/fonts/dejavu-fonts-ttf-2.33/README +59 -0
  18. data/lib/fonts/dejavusans.ctg.z +0 -0
  19. data/lib/fonts/dejavusans.rb +338 -0
  20. data/lib/fonts/dejavusans.z +0 -0
  21. data/lib/fonts/dejavusansb.ctg.z +0 -0
  22. data/lib/fonts/dejavusansb.rb +330 -0
  23. data/lib/fonts/dejavusansb.z +0 -0
  24. data/lib/fonts/dejavusansbi.ctg.z +0 -0
  25. data/lib/fonts/dejavusansbi.rb +297 -0
  26. data/lib/fonts/dejavusansbi.z +0 -0
  27. data/lib/fonts/dejavusansi.ctg.z +0 -0
  28. data/lib/fonts/dejavusansi.rb +305 -0
  29. data/lib/fonts/dejavusansi.z +0 -0
  30. data/lib/fonts/freefont-20080912/AUTHORS +191 -0
  31. data/lib/fonts/freefont-20080912/COPYING +341 -0
  32. data/lib/fonts/freefont-20080912/CREDITS +506 -0
  33. data/lib/fonts/freefont-20080912/ChangeLog +3320 -0
  34. data/lib/fonts/freefont-20080912/INSTALL +81 -0
  35. data/lib/fonts/freefont-20080912/README +108 -0
  36. data/lib/fonts/freemono.ctg.z +0 -0
  37. data/lib/fonts/freemono.rb +203 -0
  38. data/lib/fonts/freemono.z +0 -0
  39. data/lib/fonts/freemonob.ctg.z +0 -0
  40. data/lib/fonts/freemonob.rb +120 -0
  41. data/lib/fonts/freemonob.z +0 -0
  42. data/lib/fonts/freemonobi.ctg.z +0 -0
  43. data/lib/fonts/freemonobi.rb +84 -0
  44. data/lib/fonts/freemonobi.z +0 -0
  45. data/lib/fonts/freemonoi.ctg.z +0 -0
  46. data/lib/fonts/freemonoi.rb +136 -0
  47. data/lib/fonts/freemonoi.z +0 -0
  48. data/lib/fonts/freesans.ctg.z +0 -0
  49. data/lib/fonts/freesans.rb +196 -0
  50. data/lib/fonts/freesans.z +0 -0
  51. data/lib/fonts/freesansb.ctg.z +0 -0
  52. data/lib/fonts/freesansb.rb +136 -0
  53. data/lib/fonts/freesansb.z +0 -0
  54. data/lib/fonts/freesansbi.ctg.z +0 -0
  55. data/lib/fonts/freesansbi.rb +108 -0
  56. data/lib/fonts/freesansbi.z +0 -0
  57. data/lib/fonts/freesansi.ctg.z +0 -0
  58. data/lib/fonts/freesansi.rb +136 -0
  59. data/lib/fonts/freesansi.z +0 -0
  60. data/lib/fonts/helvetica.rb +34 -0
  61. data/lib/fonts/helveticab.rb +34 -0
  62. data/lib/fonts/helveticabi.rb +34 -0
  63. data/lib/fonts/helveticai.rb +34 -0
  64. data/lib/fonts/hysmyeongjostdmedium.rb +31 -0
  65. data/lib/fonts/kozgopromedium.rb +47 -0
  66. data/lib/fonts/kozminproregular.rb +46 -0
  67. data/lib/fonts/msungstdlight.rb +23 -0
  68. data/lib/fonts/sjis.rb +834 -0
  69. data/lib/fonts/stsongstdlight.rb +23 -0
  70. data/lib/fonts/symbol.rb +33 -0
  71. data/lib/fonts/times.rb +34 -0
  72. data/lib/fonts/timesb.rb +34 -0
  73. data/lib/fonts/timesbi.rb +34 -0
  74. data/lib/fonts/timesi.rb +34 -0
  75. data/lib/fonts/uni2cid_ac15.rb +23613 -0
  76. data/lib/fonts/uni2cid_ag15.rb +30222 -0
  77. data/lib/fonts/uni2cid_aj16.rb +15705 -0
  78. data/lib/fonts/uni2cid_ak12.rb +17530 -0
  79. data/lib/fonts/zapfdingbats.rb +33 -0
  80. data/lib/htmlcolors.rb +209 -0
  81. data/lib/rfpdf/version.rb +3 -0
  82. data/lib/rfpdf.rb +16 -0
  83. data/lib/tcpdf.rb +14186 -0
  84. data/lib/unicode_data.rb +18317 -0
  85. data/logo_example.png +0 -0
  86. data/rfpdf.gemspec +35 -0
  87. data/test/tcpdf_bidi_test.rb +65 -0
  88. data/test/tcpdf_bookmark_test.rb +57 -0
  89. data/test/tcpdf_cell_test.rb +54 -0
  90. data/test/tcpdf_content_test.rb +117 -0
  91. data/test/tcpdf_css_test.rb +318 -0
  92. data/test/tcpdf_dom_test.rb +113 -0
  93. data/test/tcpdf_font_func_test.rb +27 -0
  94. data/test/tcpdf_font_style_test.rb +34 -0
  95. data/test/tcpdf_font_test.rb +176 -0
  96. data/test/tcpdf_format_test.rb +27 -0
  97. data/test/tcpdf_func_test.rb +126 -0
  98. data/test/tcpdf_html_test.rb +164 -0
  99. data/test/tcpdf_image_test.rb +54 -0
  100. data/test/tcpdf_test.rb +245 -0
  101. data/test/tcpdf_transaction_test.rb +199 -0
  102. data/test/tcpdf_viewerpreferences_test.rb +37 -0
  103. data/test/tcpdf_write_test.rb +173 -0
  104. data/test/test_helper.rb +1 -0
  105. data/test_unicode.rfpdf +115 -0
  106. data/utf8test.txt +135 -0
  107. metadata +202 -0
@@ -0,0 +1,21 @@
1
+ TCPDFFontDescriptor.define('cid0cs') do |font|
2
+ font[:type]='cidfont0'
3
+ font[:name]='ArialUnicodeMS'
4
+ font[:desc]={'Ascent'=>1069,'Descent'=>-271,'CapHeight'=>1069,'Flags'=>32,'FontBBox'=>'[-1011 -330 2260 1078]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600}
5
+ font[:up]=-100
6
+ font[:ut]=50
7
+ font[:dw]=1000
8
+
9
+ require 'fonts/arialunicid0_cw.rb'
10
+ include(ARIALUNICID0_CW)
11
+ font[:cw]=FONT_CW
12
+
13
+ # Simplified Chinese
14
+ require 'fonts/uni2cid_ag15.rb'
15
+ include(UNI2CID_AG15)
16
+ font[:cidinfo]={'Registry'=>'Adobe','Ordering'=>'GB1','Supplement'=>2, 'uni2cid'=>UNI2CID}
17
+ font[:enc]='UniGB-UTF16-H'
18
+
19
+ font[:diff]=''
20
+ font[:originalsize]=23275812
21
+ end
@@ -0,0 +1,21 @@
1
+ TCPDFFontDescriptor.define('cid0ct') do |font|
2
+ font[:type]='cidfont0'
3
+ font[:name]='ArialUnicodeMS'
4
+ font[:desc]={'Ascent'=>1069,'Descent'=>-271,'CapHeight'=>1069,'Flags'=>32,'FontBBox'=>'[-1011 -330 2260 1078]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600}
5
+ font[:up]=-100
6
+ font[:ut]=50
7
+ font[:dw]=1000
8
+
9
+ require 'fonts/arialunicid0_cw.rb'
10
+ include(ARIALUNICID0_CW)
11
+ font[:cw]=FONT_CW
12
+
13
+ # Traditional Chinese
14
+ require 'fonts/uni2cid_ac15.rb'
15
+ include(UNI2CID_AC15)
16
+ font[:cidinfo]={'Registry'=>'Adobe','Ordering'=>'CNS1','Supplement'=>0, 'uni2cid'=>UNI2CID}
17
+ font[:enc]='UniCNS-UTF16-H'
18
+
19
+ font[:diff]=''
20
+ font[:originalsize]=23275812
21
+ end
@@ -0,0 +1,21 @@
1
+ TCPDFFontDescriptor.define('cid0jp') do |font|
2
+ font[:type]='cidfont0'
3
+ font[:name]='ArialUnicodeMS'
4
+ font[:desc]={'Ascent'=>1069,'Descent'=>-271,'CapHeight'=>1069,'Flags'=>32,'FontBBox'=>'[-1011 -330 2260 1078]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600}
5
+ font[:up]=-100
6
+ font[:ut]=50
7
+ font[:dw]=1000
8
+
9
+ require 'fonts/arialunicid0_cw.rb'
10
+ include(ARIALUNICID0_CW)
11
+ font[:cw]=FONT_CW
12
+
13
+ # Japanese
14
+ require 'fonts/uni2cid_aj16.rb'
15
+ include(UNI2CID_AJ16)
16
+ font[:cidinfo]={'Registry'=>'Adobe','Ordering'=>'Japan1','Supplement'=>5, 'uni2cid'=>UNI2CID}
17
+ font[:enc]='UniJIS-UTF16-H'
18
+
19
+ font[:diff]=''
20
+ font[:originalsize]=23275812
21
+ end
@@ -0,0 +1,21 @@
1
+ TCPDFFontDescriptor.define('cid0kr') do |font|
2
+ font[:type]='cidfont0'
3
+ font[:name]='ArialUnicodeMS'
4
+ font[:desc]={'Ascent'=>1069,'Descent'=>-271,'CapHeight'=>1069,'Flags'=>32,'FontBBox'=>'[-1011 -330 2260 1078]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600}
5
+ font[:up]=-100
6
+ font[:ut]=50
7
+ font[:dw]=1000
8
+
9
+ require 'fonts/arialunicid0_cw.rb'
10
+ include(ARIALUNICID0_CW)
11
+ font[:cw]=FONT_CW
12
+
13
+ # Korean
14
+ require 'fonts/uni2cid_ak12.rb'
15
+ include(UNI2CID_AK12)
16
+ font[:cidinfo]={'Registry'=>'Adobe','Ordering'=>'Korea1','Supplement'=>0, 'uni2cid'=>UNI2CID}
17
+ font[:enc]='UniKS-UTF16-H'
18
+
19
+ font[:diff]=''
20
+ font[:originalsize]=23275812
21
+ end
@@ -0,0 +1,37 @@
1
+ TCPDFFontDescriptor.define('courier') do |font|
2
+ # core font definition file for TCPDF (www.tcpdf.org)
3
+ font[:type]='core'
4
+ font[:dw]=600
5
+ font[:cw] = {}
6
+ 0.upto(255) do |i|
7
+ font[:cw][i]=600
8
+ end
9
+ end
10
+ TCPDFFontDescriptor.define('courierb') do |font|
11
+ # core font definition file for TCPDF (www.tcpdf.org)
12
+ font[:type]='core'
13
+ font[:dw]=600
14
+ font[:cw] = {}
15
+ 0.upto(255) do |i|
16
+ font[:cw][i]=600
17
+ end
18
+ end
19
+ TCPDFFontDescriptor.define('courierbi') do |font|
20
+ # core font definition file for TCPDF (www.tcpdf.org)
21
+ font[:type]='core'
22
+ font[:dw]=600
23
+ font[:cw] = {}
24
+ 0.upto(255) do |i|
25
+ font[:cw][i]=600
26
+ end
27
+ end
28
+ TCPDFFontDescriptor.define('courieri') do |font|
29
+ # core font definition file for TCPDF (www.tcpdf.org)
30
+ font[:type]='core'
31
+ font[:dw]=600
32
+ font[:cw] = {}
33
+ 0.upto(255) do |i|
34
+ font[:cw][i]=600
35
+ end
36
+ end
37
+
@@ -0,0 +1,53 @@
1
+ abysta at yandex.ru
2
+ Adrian Schroeter
3
+ Aleksey Chalabyan
4
+ Andrey Valentinovich Panov
5
+ Ben Laenen
6
+ Besarion Gugushvili
7
+ Bhikkhu Pesala
8
+ Clayborne Arevalo
9
+ Dafydd Harries
10
+ Danilo Segan
11
+ Davide Viti
12
+ David Jez
13
+ David Lawrence Ramsey
14
+ Denis Jacquerye
15
+ Dwayne Bailey
16
+ Eugeniy Meshcheryakov
17
+ Gee Fung Sit
18
+ Heikki Lindroos
19
+ James Cloos
20
+ James Crippen
21
+ John Karp
22
+ Keenan Pepper
23
+ Lars Naesbye Christensen
24
+ Lior Halphon
25
+ MaEr
26
+ Mashrab Kuvatov
27
+ Max Berger
28
+ Mederic Boquien
29
+ Michael Everson
30
+ MihailJP
31
+ Misu Moldovan
32
+ Nguyen Thai Ngoc Duy
33
+ Nicolas Mailhot
34
+ Norayr Chilingarian
35
+ Ognyan Kulev
36
+ Ondrej Koala Vacha
37
+ Peter Cernak
38
+ Remy Oudompheng
39
+ Roozbeh Pournader
40
+ Rouben Hakobian
41
+ Sahak Petrosyan
42
+ Sander Vesik
43
+ Stepan Roh
44
+ Stephen Hartke
45
+ Steve Tinney
46
+ Tavmjong Bah
47
+ Thomas Henlich
48
+ Tim May
49
+ Valentin Stoykov
50
+ Vasek Stodulka
51
+ Wesley Transue
52
+
53
+ $Id: AUTHORS 2461 2011-02-18 16:38:20Z ben_laenen $
@@ -0,0 +1,3 @@
1
+ See http://dejavu.sourceforge.net/wiki/index.php/Bugs
2
+
3
+ $Id: BUGS 80 2004-11-13 13:12:02Z src $
@@ -0,0 +1,99 @@
1
+ Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
2
+ Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
3
+
4
+ Bitstream Vera Fonts Copyright
5
+ ------------------------------
6
+
7
+ Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
8
+ a trademark of Bitstream, Inc.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of the fonts accompanying this license ("Fonts") and associated
12
+ documentation files (the "Font Software"), to reproduce and distribute the
13
+ Font Software, including without limitation the rights to use, copy, merge,
14
+ publish, distribute, and/or sell copies of the Font Software, and to permit
15
+ persons to whom the Font Software is furnished to do so, subject to the
16
+ following conditions:
17
+
18
+ The above copyright and trademark notices and this permission notice shall
19
+ be included in all copies of one or more of the Font Software typefaces.
20
+
21
+ The Font Software may be modified, altered, or added to, and in particular
22
+ the designs of glyphs or characters in the Fonts may be modified and
23
+ additional glyphs or characters may be added to the Fonts, only if the fonts
24
+ are renamed to names not containing either the words "Bitstream" or the word
25
+ "Vera".
26
+
27
+ This License becomes null and void to the extent applicable to Fonts or Font
28
+ Software that has been modified and is distributed under the "Bitstream
29
+ Vera" names.
30
+
31
+ The Font Software may be sold as part of a larger software package but no
32
+ copy of one or more of the Font Software typefaces may be sold by itself.
33
+
34
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
35
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
36
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
37
+ TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
38
+ FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
39
+ ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
40
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
41
+ THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
42
+ FONT SOFTWARE.
43
+
44
+ Except as contained in this notice, the names of Gnome, the Gnome
45
+ Foundation, and Bitstream Inc., shall not be used in advertising or
46
+ otherwise to promote the sale, use or other dealings in this Font Software
47
+ without prior written authorization from the Gnome Foundation or Bitstream
48
+ Inc., respectively. For further information, contact: fonts at gnome dot
49
+ org.
50
+
51
+ Arev Fonts Copyright
52
+ ------------------------------
53
+
54
+ Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
55
+
56
+ Permission is hereby granted, free of charge, to any person obtaining
57
+ a copy of the fonts accompanying this license ("Fonts") and
58
+ associated documentation files (the "Font Software"), to reproduce
59
+ and distribute the modifications to the Bitstream Vera Font Software,
60
+ including without limitation the rights to use, copy, merge, publish,
61
+ distribute, and/or sell copies of the Font Software, and to permit
62
+ persons to whom the Font Software is furnished to do so, subject to
63
+ the following conditions:
64
+
65
+ The above copyright and trademark notices and this permission notice
66
+ shall be included in all copies of one or more of the Font Software
67
+ typefaces.
68
+
69
+ The Font Software may be modified, altered, or added to, and in
70
+ particular the designs of glyphs or characters in the Fonts may be
71
+ modified and additional glyphs or characters may be added to the
72
+ Fonts, only if the fonts are renamed to names not containing either
73
+ the words "Tavmjong Bah" or the word "Arev".
74
+
75
+ This License becomes null and void to the extent applicable to Fonts
76
+ or Font Software that has been modified and is distributed under the
77
+ "Tavmjong Bah Arev" names.
78
+
79
+ The Font Software may be sold as part of a larger software package but
80
+ no copy of one or more of the Font Software typefaces may be sold by
81
+ itself.
82
+
83
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
84
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
85
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
86
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
87
+ TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
88
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
89
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
90
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
91
+ OTHER DEALINGS IN THE FONT SOFTWARE.
92
+
93
+ Except as contained in this notice, the name of Tavmjong Bah shall not
94
+ be used in advertising or otherwise to promote the sale, use or other
95
+ dealings in this Font Software without prior written authorization
96
+ from Tavmjong Bah. For further information, contact: tavmjong @ free
97
+ . fr.
98
+
99
+ $Id: LICENSE 2133 2007-11-28 02:46:28Z lechimp $