pdf-reader 2.4.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +31 -0
  3. data/README.md +17 -2
  4. data/Rakefile +1 -1
  5. data/examples/extract_fonts.rb +12 -7
  6. data/lib/pdf/reader/afm/Courier-Bold.afm +342 -342
  7. data/lib/pdf/reader/afm/Courier-BoldOblique.afm +342 -342
  8. data/lib/pdf/reader/afm/Courier-Oblique.afm +342 -342
  9. data/lib/pdf/reader/afm/Courier.afm +342 -342
  10. data/lib/pdf/reader/afm/Helvetica-Bold.afm +2827 -2827
  11. data/lib/pdf/reader/afm/Helvetica-BoldOblique.afm +2827 -2827
  12. data/lib/pdf/reader/afm/Helvetica-Oblique.afm +3051 -3051
  13. data/lib/pdf/reader/afm/Helvetica.afm +3051 -3051
  14. data/lib/pdf/reader/afm/MustRead.html +19 -0
  15. data/lib/pdf/reader/afm/Symbol.afm +213 -213
  16. data/lib/pdf/reader/afm/Times-Bold.afm +2588 -2588
  17. data/lib/pdf/reader/afm/Times-BoldItalic.afm +2384 -2384
  18. data/lib/pdf/reader/afm/Times-Italic.afm +2667 -2667
  19. data/lib/pdf/reader/afm/Times-Roman.afm +2419 -2419
  20. data/lib/pdf/reader/afm/ZapfDingbats.afm +225 -225
  21. data/lib/pdf/reader/buffer.rb +62 -21
  22. data/lib/pdf/reader/encoding.rb +1 -1
  23. data/lib/pdf/reader/error.rb +3 -3
  24. data/lib/pdf/reader/filter/ascii85.rb +5 -1
  25. data/lib/pdf/reader/filter/depredict.rb +3 -3
  26. data/lib/pdf/reader/filter/flate.rb +28 -16
  27. data/lib/pdf/reader/font.rb +3 -1
  28. data/lib/pdf/reader/glyph_hash.rb +15 -9
  29. data/lib/pdf/reader/glyphlist-zapfdingbats.txt +245 -0
  30. data/lib/pdf/reader/object_hash.rb +3 -1
  31. data/lib/pdf/reader/orientation_detector.rb +2 -2
  32. data/lib/pdf/reader/page.rb +28 -0
  33. data/lib/pdf/reader/page_layout.rb +19 -13
  34. data/lib/pdf/reader/page_state.rb +7 -5
  35. data/lib/pdf/reader/page_text_receiver.rb +22 -1
  36. data/lib/pdf/reader/parser.rb +8 -6
  37. data/lib/pdf/reader/width_calculator/built_in.rb +7 -15
  38. data/lib/pdf/reader/xref.rb +6 -1
  39. data/lib/pdf/reader/zero_width_runs_filter.rb +11 -0
  40. metadata +17 -14
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf-reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-21 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '13.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.2'
69
69
  - !ruby/object:Gem::Dependency
70
- name: ir_b
70
+ name: pry
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.0.0
103
+ version: '1.0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.0.0
110
+ version: '1.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: ruby-rc4
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -208,6 +208,7 @@ files:
208
208
  - lib/pdf/reader/afm/Helvetica-BoldOblique.afm
209
209
  - lib/pdf/reader/afm/Helvetica-Oblique.afm
210
210
  - lib/pdf/reader/afm/Helvetica.afm
211
+ - lib/pdf/reader/afm/MustRead.html
211
212
  - lib/pdf/reader/afm/Symbol.afm
212
213
  - lib/pdf/reader/afm/Times-Bold.afm
213
214
  - lib/pdf/reader/afm/Times-BoldItalic.afm
@@ -238,6 +239,7 @@ files:
238
239
  - lib/pdf/reader/font_descriptor.rb
239
240
  - lib/pdf/reader/form_xobject.rb
240
241
  - lib/pdf/reader/glyph_hash.rb
242
+ - lib/pdf/reader/glyphlist-zapfdingbats.txt
241
243
  - lib/pdf/reader/glyphlist.txt
242
244
  - lib/pdf/reader/lzw.rb
243
245
  - lib/pdf/reader/null_security_handler.rb
@@ -271,14 +273,15 @@ files:
271
273
  - lib/pdf/reader/width_calculator/type_one_or_three.rb
272
274
  - lib/pdf/reader/width_calculator/type_zero.rb
273
275
  - lib/pdf/reader/xref.rb
276
+ - lib/pdf/reader/zero_width_runs_filter.rb
274
277
  homepage: https://github.com/yob/pdf-reader
275
278
  licenses:
276
279
  - MIT
277
280
  metadata:
278
281
  bug_tracker_uri: https://github.com/yob/pdf-reader/issues
279
- changelog_uri: https://github.com/yob/pdf-reader/blob/v2.4.0/CHANGELOG
280
- documentation_uri: https://www.rubydoc.info/gems/pdf-reader/2.4.0
281
- source_code_uri: https://github.com/yob/pdf-reader/tree/v2.4.0
282
+ changelog_uri: https://github.com/yob/pdf-reader/blob/v2.6.0/CHANGELOG
283
+ documentation_uri: https://www.rubydoc.info/gems/pdf-reader/2.6.0
284
+ source_code_uri: https://github.com/yob/pdf-reader/tree/v2.6.0
282
285
  post_install_message:
283
286
  rdoc_options:
284
287
  - "--title"
@@ -292,14 +295,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
295
  requirements:
293
296
  - - ">="
294
297
  - !ruby/object:Gem::Version
295
- version: 1.9.3
298
+ version: '2.0'
296
299
  required_rubygems_version: !ruby/object:Gem::Requirement
297
300
  requirements:
298
301
  - - ">="
299
302
  - !ruby/object:Gem::Version
300
303
  version: '0'
301
304
  requirements: []
302
- rubygems_version: 3.0.3
305
+ rubygems_version: 3.1.4
303
306
  signing_key:
304
307
  specification_version: 4
305
308
  summary: A library for accessing the content of PDF files