hexapdf 0.11.8 → 0.11.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baa354ef4d01aa8a9348cfb584d9e255ee253c04b0f927ea16361c45ca904d46
4
- data.tar.gz: 2be95e4cd431bf772815ce4788f7ca25b132de2faec665bbdaf0982f73fea489
3
+ metadata.gz: f56bc512ed28de11d43f5b2eb662729086734dc3120e6c8e96b56eab89420da4
4
+ data.tar.gz: 4b9e75f7d533cc7b3c3a6e297d26ab0358dcaa4ac0f0a5346df3e95c90d9c173
5
5
  SHA512:
6
- metadata.gz: 3e1bf0748678d022163457de1df628e080f7df261e5cb01ac09bae7f8560f05477f901a5e7b17c04111aea958458e0c0ff3c8d3beeda7119ddcd2913e906915b
7
- data.tar.gz: 792ebec34b3f1010ae53867b2e4cce93bb2b472f504606a87f0f8fe651d8cae94c8d4bb99b69e972e9813955a76d9401319dbbb01084b67ea352d210d2656b73
6
+ metadata.gz: 3651a7ed4a7fb305c79a70b0c009441b0e3012188ce5e8baf8847107bce27793e0c48a577ae0bbc9ae3d6bece5356b86955b4deb2abd505d0b7a856053461ab3
7
+ data.tar.gz: 7cfd77439479567d81133e39243715dd05b3a3b31ccc64fd923ec7391ba745834977011e4618f1f9462cdcb2a682ed1b102c20474a4b3f5d7c69be438c6abd51
@@ -1,3 +1,10 @@
1
+ ## 0.11.9 - 2020-06-15
2
+
3
+ ### Changed
4
+
5
+ * Encryption dictionaries to always be indirect objects
6
+
7
+
1
8
  ## 0.11.8 - 2020-06-11
2
9
 
3
10
  ### Fixed
@@ -59,6 +59,12 @@ module HexaPDF
59
59
  define_field :StrF, type: Symbol, default: :Identity, version: '1.5'
60
60
  define_field :EFF, type: Symbol, version: '1.6'
61
61
 
62
+ # Returns +true+ because some PDF readers stumble when encountering a non-indirect encryption
63
+ # dictionary.
64
+ def must_be_indirect?
65
+ true
66
+ end
67
+
62
68
  private
63
69
 
64
70
  # Ensures that the encryption dictionary's content is valid.
@@ -37,6 +37,6 @@
37
37
  module HexaPDF
38
38
 
39
39
  # The version of HexaPDF.
40
- VERSION = '0.11.8'
40
+ VERSION = '0.11.9'
41
41
 
42
42
  end
@@ -13,6 +13,10 @@ describe HexaPDF::Encryption::EncryptionDictionary do
13
13
  @dict[:V] = 1
14
14
  end
15
15
 
16
+ it "must be an indirect object" do
17
+ assert(@dict.must_be_indirect?)
18
+ end
19
+
16
20
  it "validates the /V value" do
17
21
  @dict[:V] = 1
18
22
  assert(@dict.validate)
@@ -40,7 +40,7 @@ describe HexaPDF::Writer do
40
40
  219
41
41
  %%EOF
42
42
  3 0 obj
43
- <</Producer(HexaPDF version 0.11.8)>>
43
+ <</Producer(HexaPDF version 0.11.9)>>
44
44
  endobj
45
45
  xref
46
46
  3 1
@@ -72,7 +72,7 @@ describe HexaPDF::Writer do
72
72
  141
73
73
  %%EOF
74
74
  6 0 obj
75
- <</Producer(HexaPDF version 0.11.8)>>
75
+ <</Producer(HexaPDF version 0.11.9)>>
76
76
  endobj
77
77
  2 0 obj
78
78
  <</Length 10>>stream
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexapdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.8
4
+ version: 0.11.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2020-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmdparse