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.
- checksums.yaml +4 -4
- data/CHANGELOG +31 -0
- data/README.md +17 -2
- data/Rakefile +1 -1
- data/examples/extract_fonts.rb +12 -7
- data/lib/pdf/reader/afm/Courier-Bold.afm +342 -342
- data/lib/pdf/reader/afm/Courier-BoldOblique.afm +342 -342
- data/lib/pdf/reader/afm/Courier-Oblique.afm +342 -342
- data/lib/pdf/reader/afm/Courier.afm +342 -342
- data/lib/pdf/reader/afm/Helvetica-Bold.afm +2827 -2827
- data/lib/pdf/reader/afm/Helvetica-BoldOblique.afm +2827 -2827
- data/lib/pdf/reader/afm/Helvetica-Oblique.afm +3051 -3051
- data/lib/pdf/reader/afm/Helvetica.afm +3051 -3051
- data/lib/pdf/reader/afm/MustRead.html +19 -0
- data/lib/pdf/reader/afm/Symbol.afm +213 -213
- data/lib/pdf/reader/afm/Times-Bold.afm +2588 -2588
- data/lib/pdf/reader/afm/Times-BoldItalic.afm +2384 -2384
- data/lib/pdf/reader/afm/Times-Italic.afm +2667 -2667
- data/lib/pdf/reader/afm/Times-Roman.afm +2419 -2419
- data/lib/pdf/reader/afm/ZapfDingbats.afm +225 -225
- data/lib/pdf/reader/buffer.rb +62 -21
- data/lib/pdf/reader/encoding.rb +1 -1
- data/lib/pdf/reader/error.rb +3 -3
- data/lib/pdf/reader/filter/ascii85.rb +5 -1
- data/lib/pdf/reader/filter/depredict.rb +3 -3
- data/lib/pdf/reader/filter/flate.rb +28 -16
- data/lib/pdf/reader/font.rb +3 -1
- data/lib/pdf/reader/glyph_hash.rb +15 -9
- data/lib/pdf/reader/glyphlist-zapfdingbats.txt +245 -0
- data/lib/pdf/reader/object_hash.rb +3 -1
- data/lib/pdf/reader/orientation_detector.rb +2 -2
- data/lib/pdf/reader/page.rb +28 -0
- data/lib/pdf/reader/page_layout.rb +19 -13
- data/lib/pdf/reader/page_state.rb +7 -5
- data/lib/pdf/reader/page_text_receiver.rb +22 -1
- data/lib/pdf/reader/parser.rb +8 -6
- data/lib/pdf/reader/width_calculator/built_in.rb +7 -15
- data/lib/pdf/reader/xref.rb +6 -1
- data/lib/pdf/reader/zero_width_runs_filter.rb +11 -0
- 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
|
+
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:
|
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:
|
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
|
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
|
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.
|
280
|
-
documentation_uri: https://www.rubydoc.info/gems/pdf-reader/2.
|
281
|
-
source_code_uri: https://github.com/yob/pdf-reader/tree/v2.
|
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:
|
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.
|
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
|