poppler 3.2.9 → 3.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c5a889fa0888ca608adaed78da019363f77b134bea4ed406135a5062a2919ca
4
- data.tar.gz: 2faf50fca80ab2646a5d85aa50af24225a20e884a41ac3f083660567d9102d70
3
+ metadata.gz: 8989c3fe9f74f52ae0350ab2b06e2bb95bbbd407b66a4da6a9317592feb71ce4
4
+ data.tar.gz: c7e8bc817eb427dc23ecbea6126a5da27ba5c238dc27593b5fa723b40c009c54
5
5
  SHA512:
6
- metadata.gz: e4a8024ca3180b9168d573a134affb01c0de592eef1454d9d2ae6137fe9c091d44d1e24c8e9e46d401b878a73340c4e85874d5878b30049f517d9215cc7577bb
7
- data.tar.gz: a76c978c49284a771b40294510fe8a476b60b32e1316acc57fa963be520721239a0a3e03a03319251873188a66980c92226843e2ea3603daeb911e58385d243a
6
+ metadata.gz: 9d22f98cfb3d2e86c0c2289ec242a9c904c6eaa960676ab78c9ef8b7c058042f23a188abc4b48927a20dfa2629e3e4fa93ec132c2b7cc9e8d5abaec981306f23
7
+ data.tar.gz: 0bc4b1b75729f940d8a1831e8446ce7e2596cd41e12ece0026f0dcdfb21547afc10086ed05c630087097752cfa65007726ce7d20f860823383490d9ef6a11aa7
@@ -53,6 +53,10 @@ module Poppler
53
53
  self.class.register_constant_rename_map("90", "DEGREE_90")
54
54
  self.class.register_constant_rename_map("180", "DEGREE_180")
55
55
  self.class.register_constant_rename_map("270", "DEGREE_270")
56
+ when "PDFPart"
57
+ 1.upto(8) do |i|
58
+ self.class.register_constant_rename_map("#{i}", "PART_#{i}")
59
+ end
56
60
  end
57
61
  super
58
62
  end
Binary file
Binary file
@@ -24,14 +24,7 @@ module PopplerTestUtils
24
24
  end
25
25
 
26
26
  def form_pdf
27
- path = fixture_path("form.pdf")
28
- unless File.exist?(path)
29
- pdf = open("https://www.irs.gov/pub/irs-pdf/fw9.pdf").read
30
- File.open(path, "wb") do |output|
31
- output.print(pdf)
32
- end
33
- end
34
- path
27
+ fixture_path("form.pdf")
35
28
  end
36
29
 
37
30
  def text_field_pdf
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2008-2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2008-2018 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -45,7 +45,7 @@ class TestPage < Test::Unit::TestCase
45
45
  document = Poppler::Document.new(form_pdf)
46
46
  page = document[0]
47
47
  layout = page.text_layout
48
- assert_equal([60, 31, 79, 60],
48
+ assert_equal([75, 67, 81, 80],
49
49
  layout[0].to_a.collect(&:round))
50
50
  end
51
51
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poppler
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-08 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo-gobject
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.9
19
+ version: 3.3.0
20
20
  type: :runtime
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: 3.2.9
26
+ version: 3.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gio2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.9
33
+ version: 3.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.9
40
+ version: 3.3.0
41
41
  description: Ruby/Poppler is a Ruby binding of poppler-glib.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []
@@ -68,6 +68,8 @@ files:
68
68
  - sample/pdf2text.rb
69
69
  - sample/pdfcrop.rb
70
70
  - sample/pdfdiv.rb
71
+ - test/fixtures/form.odt
72
+ - test/fixtures/form.pdf
71
73
  - test/fixtures/image.odt
72
74
  - test/fixtures/image.pdf
73
75
  - test/fixtures/multiple-pages.odt