pdf-reader 2.1.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +28 -1
  3. data/README.md +2 -2
  4. data/bin/pdf_callbacks +1 -1
  5. data/bin/pdf_text +1 -1
  6. data/lib/pdf-reader.rb +1 -0
  7. data/lib/pdf/reader.rb +2 -2
  8. data/lib/pdf/reader/afm/Courier-Bold.afm +342 -342
  9. data/lib/pdf/reader/afm/Courier-BoldOblique.afm +342 -342
  10. data/lib/pdf/reader/afm/Courier-Oblique.afm +342 -342
  11. data/lib/pdf/reader/afm/Courier.afm +342 -342
  12. data/lib/pdf/reader/afm/Helvetica-Bold.afm +2827 -2827
  13. data/lib/pdf/reader/afm/Helvetica-BoldOblique.afm +2827 -2827
  14. data/lib/pdf/reader/afm/Helvetica-Oblique.afm +3051 -3051
  15. data/lib/pdf/reader/afm/Helvetica.afm +3051 -3051
  16. data/lib/pdf/reader/afm/MustRead.html +19 -0
  17. data/lib/pdf/reader/afm/Symbol.afm +213 -213
  18. data/lib/pdf/reader/afm/Times-Bold.afm +2588 -2588
  19. data/lib/pdf/reader/afm/Times-BoldItalic.afm +2384 -2384
  20. data/lib/pdf/reader/afm/Times-Italic.afm +2667 -2667
  21. data/lib/pdf/reader/afm/Times-Roman.afm +2419 -2419
  22. data/lib/pdf/reader/afm/ZapfDingbats.afm +225 -225
  23. data/lib/pdf/reader/buffer.rb +12 -11
  24. data/lib/pdf/reader/cid_widths.rb +2 -0
  25. data/lib/pdf/reader/cmap.rb +22 -12
  26. data/lib/pdf/reader/encoding.rb +12 -9
  27. data/lib/pdf/reader/error.rb +1 -0
  28. data/lib/pdf/reader/filter.rb +1 -0
  29. data/lib/pdf/reader/filter/ascii85.rb +1 -0
  30. data/lib/pdf/reader/filter/ascii_hex.rb +2 -0
  31. data/lib/pdf/reader/filter/depredict.rb +1 -0
  32. data/lib/pdf/reader/filter/flate.rb +6 -4
  33. data/lib/pdf/reader/filter/lzw.rb +2 -0
  34. data/lib/pdf/reader/filter/null.rb +2 -0
  35. data/lib/pdf/reader/filter/run_length.rb +3 -1
  36. data/lib/pdf/reader/font.rb +11 -2
  37. data/lib/pdf/reader/font_descriptor.rb +1 -0
  38. data/lib/pdf/reader/form_xobject.rb +1 -0
  39. data/lib/pdf/reader/glyph_hash.rb +1 -0
  40. data/lib/pdf/reader/lzw.rb +2 -1
  41. data/lib/pdf/reader/null_security_handler.rb +1 -0
  42. data/lib/pdf/reader/object_cache.rb +1 -0
  43. data/lib/pdf/reader/object_hash.rb +22 -10
  44. data/lib/pdf/reader/object_stream.rb +1 -0
  45. data/lib/pdf/reader/orientation_detector.rb +5 -4
  46. data/lib/pdf/reader/overlapping_runs_filter.rb +65 -0
  47. data/lib/pdf/reader/page.rb +29 -0
  48. data/lib/pdf/reader/page_layout.rb +10 -5
  49. data/lib/pdf/reader/page_state.rb +10 -1
  50. data/lib/pdf/reader/page_text_receiver.rb +5 -1
  51. data/lib/pdf/reader/pages_strategy.rb +1 -0
  52. data/lib/pdf/reader/parser.rb +5 -4
  53. data/lib/pdf/reader/print_receiver.rb +1 -0
  54. data/lib/pdf/reader/reference.rb +1 -0
  55. data/lib/pdf/reader/register_receiver.rb +1 -0
  56. data/lib/pdf/reader/resource_methods.rb +1 -0
  57. data/lib/pdf/reader/standard_security_handler.rb +1 -0
  58. data/lib/pdf/reader/standard_security_handler_v5.rb +2 -0
  59. data/lib/pdf/reader/stream.rb +1 -0
  60. data/lib/pdf/reader/synchronized_cache.rb +1 -0
  61. data/lib/pdf/reader/text_run.rb +25 -0
  62. data/lib/pdf/reader/token.rb +1 -0
  63. data/lib/pdf/reader/transformation_matrix.rb +1 -0
  64. data/lib/pdf/reader/unimplemented_security_handler.rb +1 -0
  65. data/lib/pdf/reader/width_calculator.rb +1 -0
  66. data/lib/pdf/reader/width_calculator/built_in.rb +18 -1
  67. data/lib/pdf/reader/width_calculator/composite.rb +1 -0
  68. data/lib/pdf/reader/width_calculator/true_type.rb +2 -2
  69. data/lib/pdf/reader/width_calculator/type_one_or_three.rb +1 -0
  70. data/lib/pdf/reader/width_calculator/type_zero.rb +1 -0
  71. data/lib/pdf/reader/xref.rb +11 -5
  72. metadata +17 -13
  73. data/lib/pdf/hash.rb +0 -19
@@ -1,19 +0,0 @@
1
- # coding: utf-8
2
-
3
- module PDF
4
- # This class is deprecated, please stop using it.
5
- class Hash < ::PDF::Reader::ObjectHash # :nodoc:
6
- def initialize(input)
7
- warn "DEPRECATION NOTICE: PDF::Hash has been deprecated, use PDF::Reader::ObjectHash instead"
8
- super
9
- end
10
-
11
- def version
12
- warn <<-EOS
13
- DEPRECATION NOTICE: PDF::Hash#version has been deprecated,
14
- use PDF::Reader::ObjectHash#pdf_version instead
15
- EOS
16
- pdf_version
17
- end
18
- end
19
- end