fireinc-pdf-reader 0.11.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/CHANGELOG +168 -0
  2. data/MIT-LICENSE +21 -0
  3. data/README.rdoc +137 -0
  4. data/Rakefile +34 -0
  5. data/TODO +45 -0
  6. data/bin/pdf_list_callbacks +15 -0
  7. data/bin/pdf_object +48 -0
  8. data/bin/pdf_text +15 -0
  9. data/examples/callbacks.rb +21 -0
  10. data/examples/extract_bates.rb +49 -0
  11. data/examples/extract_images.rb +108 -0
  12. data/examples/hash.rb +12 -0
  13. data/examples/metadata.rb +25 -0
  14. data/examples/page_counter_improved.rb +23 -0
  15. data/examples/page_counter_naive.rb +24 -0
  16. data/examples/rspec.rb +57 -0
  17. data/examples/text.rb +40 -0
  18. data/examples/version.rb +25 -0
  19. data/lib/pdf/hash.rb +15 -0
  20. data/lib/pdf/reader/abstract_strategy.rb +81 -0
  21. data/lib/pdf/reader/buffer.rb +346 -0
  22. data/lib/pdf/reader/cmap.rb +138 -0
  23. data/lib/pdf/reader/encoding.rb +190 -0
  24. data/lib/pdf/reader/encodings/mac_expert.txt +159 -0
  25. data/lib/pdf/reader/encodings/mac_roman.txt +128 -0
  26. data/lib/pdf/reader/encodings/pdf_doc.txt +40 -0
  27. data/lib/pdf/reader/encodings/standard.txt +47 -0
  28. data/lib/pdf/reader/encodings/symbol.txt +154 -0
  29. data/lib/pdf/reader/encodings/win_ansi.txt +29 -0
  30. data/lib/pdf/reader/encodings/zapf_dingbats.txt +201 -0
  31. data/lib/pdf/reader/error.rb +53 -0
  32. data/lib/pdf/reader/filter.rb +219 -0
  33. data/lib/pdf/reader/font.rb +133 -0
  34. data/lib/pdf/reader/form_xobject.rb +83 -0
  35. data/lib/pdf/reader/glyphlist.txt +4322 -0
  36. data/lib/pdf/reader/lzw.rb +123 -0
  37. data/lib/pdf/reader/metadata_strategy.rb +56 -0
  38. data/lib/pdf/reader/object_cache.rb +85 -0
  39. data/lib/pdf/reader/object_hash.rb +289 -0
  40. data/lib/pdf/reader/object_stream.rb +51 -0
  41. data/lib/pdf/reader/page.rb +185 -0
  42. data/lib/pdf/reader/page_text_receiver.rb +278 -0
  43. data/lib/pdf/reader/pages_strategy.rb +475 -0
  44. data/lib/pdf/reader/parser.rb +225 -0
  45. data/lib/pdf/reader/print_receiver.rb +18 -0
  46. data/lib/pdf/reader/reference.rb +66 -0
  47. data/lib/pdf/reader/register_receiver.rb +95 -0
  48. data/lib/pdf/reader/stream.rb +69 -0
  49. data/lib/pdf/reader/text_receiver.rb +264 -0
  50. data/lib/pdf/reader/token.rb +41 -0
  51. data/lib/pdf/reader/xref.rb +220 -0
  52. data/lib/pdf/reader.rb +296 -0
  53. data/lib/pdf-reader.rb +1 -0
  54. metadata +211 -0
metadata ADDED
@@ -0,0 +1,211 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fireinc-pdf-reader
3
+ version: !ruby/object:Gem::Version
4
+ hash: -1851332122
5
+ prerelease: 7
6
+ segments:
7
+ - 0
8
+ - 11
9
+ - 0
10
+ - alpha
11
+ version: 0.11.0.alpha
12
+ platform: ruby
13
+ authors:
14
+ - Caleb Adam Haye
15
+ - James Healy
16
+ autorequire:
17
+ bindir: bin
18
+ cert_chain: []
19
+
20
+ date: 2011-07-27 00:00:00 -07:00
21
+ default_executable:
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: rake
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 3
32
+ segments:
33
+ - 0
34
+ version: "0"
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: roodi
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: rspec
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ~>
58
+ - !ruby/object:Gem::Version
59
+ hash: 1
60
+ segments:
61
+ - 2
62
+ - 1
63
+ version: "2.1"
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: Ascii85
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ hash: 23
75
+ segments:
76
+ - 1
77
+ - 0
78
+ - 0
79
+ version: 1.0.0
80
+ type: :runtime
81
+ version_requirements: *id004
82
+ description: The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe
83
+ email:
84
+ - caleb@fire.coop
85
+ - jimmy@deefa.com
86
+ executables:
87
+ - pdf_object
88
+ - pdf_text
89
+ - pdf_list_callbacks
90
+ extensions: []
91
+
92
+ extra_rdoc_files:
93
+ - README.rdoc
94
+ - TODO
95
+ - CHANGELOG
96
+ - MIT-LICENSE
97
+ files:
98
+ - examples/callbacks.rb
99
+ - examples/extract_bates.rb
100
+ - examples/extract_images.rb
101
+ - examples/hash.rb
102
+ - examples/metadata.rb
103
+ - examples/page_counter_improved.rb
104
+ - examples/page_counter_naive.rb
105
+ - examples/rspec.rb
106
+ - examples/text.rb
107
+ - examples/version.rb
108
+ - lib/pdf/hash.rb
109
+ - lib/pdf/reader/abstract_strategy.rb
110
+ - lib/pdf/reader/buffer.rb
111
+ - lib/pdf/reader/cmap.rb
112
+ - lib/pdf/reader/encoding.rb
113
+ - lib/pdf/reader/encodings/mac_expert.txt
114
+ - lib/pdf/reader/encodings/mac_roman.txt
115
+ - lib/pdf/reader/encodings/pdf_doc.txt
116
+ - lib/pdf/reader/encodings/standard.txt
117
+ - lib/pdf/reader/encodings/symbol.txt
118
+ - lib/pdf/reader/encodings/win_ansi.txt
119
+ - lib/pdf/reader/encodings/zapf_dingbats.txt
120
+ - lib/pdf/reader/error.rb
121
+ - lib/pdf/reader/filter.rb
122
+ - lib/pdf/reader/font.rb
123
+ - lib/pdf/reader/form_xobject.rb
124
+ - lib/pdf/reader/glyphlist.txt
125
+ - lib/pdf/reader/lzw.rb
126
+ - lib/pdf/reader/metadata_strategy.rb
127
+ - lib/pdf/reader/object_cache.rb
128
+ - lib/pdf/reader/object_hash.rb
129
+ - lib/pdf/reader/object_stream.rb
130
+ - lib/pdf/reader/page.rb
131
+ - lib/pdf/reader/page_text_receiver.rb
132
+ - lib/pdf/reader/pages_strategy.rb
133
+ - lib/pdf/reader/parser.rb
134
+ - lib/pdf/reader/print_receiver.rb
135
+ - lib/pdf/reader/reference.rb
136
+ - lib/pdf/reader/register_receiver.rb
137
+ - lib/pdf/reader/stream.rb
138
+ - lib/pdf/reader/text_receiver.rb
139
+ - lib/pdf/reader/token.rb
140
+ - lib/pdf/reader/xref.rb
141
+ - lib/pdf/reader.rb
142
+ - lib/pdf-reader.rb
143
+ - Rakefile
144
+ - README.rdoc
145
+ - TODO
146
+ - CHANGELOG
147
+ - MIT-LICENSE
148
+ - bin/pdf_object
149
+ - bin/pdf_text
150
+ - bin/pdf_list_callbacks
151
+ has_rdoc: true
152
+ homepage: http://github.com/calebhaye/pdf-reader
153
+ licenses: []
154
+
155
+ post_install_message: |+
156
+
157
+ ********************************************
158
+
159
+ This is an alpha release of PDF::Reader to gather feedback on the proposed
160
+ API changes.
161
+
162
+ The old API is marked as deprecated but will continue to work with no
163
+ visible warnings for now.
164
+
165
+ The new API is documented in the README and in rdoc for the PDF::Reader,
166
+ PDF::Reader::Page and PDF::Reader::ObjectHash classes.
167
+
168
+ Do not use this in production, stick to stable releases for that. If you do
169
+ take the new API for a spin, please send any feedback my way.
170
+
171
+ ********************************************
172
+
173
+ rdoc_options:
174
+ - --title
175
+ - PDF::Reader Documentation
176
+ - --main
177
+ - README.rdoc
178
+ - -q
179
+ require_paths:
180
+ - lib
181
+ required_ruby_version: !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ hash: 57
187
+ segments:
188
+ - 1
189
+ - 8
190
+ - 7
191
+ version: 1.8.7
192
+ required_rubygems_version: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ">"
196
+ - !ruby/object:Gem::Version
197
+ hash: 25
198
+ segments:
199
+ - 1
200
+ - 3
201
+ - 1
202
+ version: 1.3.1
203
+ requirements: []
204
+
205
+ rubyforge_project:
206
+ rubygems_version: 1.6.2
207
+ signing_key:
208
+ specification_version: 3
209
+ summary: A library for accessing the content of PDF files
210
+ test_files: []
211
+