combine_pdf 0.1.19 → 0.1.20

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
  SHA1:
3
- metadata.gz: 349e06732609e9290dc73720f99ac576b097c53c
4
- data.tar.gz: 48737dde1fb3bf8e9d838d43795a9aa0d06453bd
3
+ metadata.gz: f0a1ba8e7f8d04a0e479de6d9535a814c708fa08
4
+ data.tar.gz: a97752cfb5af1b84d56d96919f850af59987ed89
5
5
  SHA512:
6
- metadata.gz: a08c2bd768ffb7e41788da436ff7409b609f97986a0dcf78ce168ec9d3ed1e041af8f2389588fe26e44f19b60cce444ed00bb57abc8d6aca22bfaaea24bc7b9f
7
- data.tar.gz: 92249ecb752f219595a2a55ef0b72ce45dd4cda953df903bf3328f418300fd223378f24186d827b79514b7c734dab3aa39fc28272b0a473423863eba92efe5f6
6
+ metadata.gz: 2b9758ed89f19800a2f43ff272e0f5bc5e16d1dc2446540f567fc66a86845f178f42fc3dcee77f4ffbd516b81df6216cac25d4e4c13c595080ea6a40df558f22
7
+ data.tar.gz: 05b7a3355d5441311d7cdd3ae5214c8a2b207a03bee37d363811c7f64471b9d7e0df1915c2d090fe198db2ba5766431ff5377eb17b2ce901a2613cde700399a4
data/CHANGELOG.md CHANGED
@@ -2,13 +2,19 @@
2
2
 
3
3
  ***
4
4
 
5
- Change log v.0.1.20
5
+ Change log v.0.1.21
6
6
  (pre-release)
7
7
 
8
8
  No changes yet.
9
9
 
10
10
  ***
11
11
 
12
+ Change log v.0.1.20
13
+
14
+ **fix**: due to some PDF files not conforming to the required EOL marker in the endstream object specifications, the parser is now back to a non-strict parsing mode for PDF Stream Objects. Conforming files weren't found to be effected and although it is unlikely, it is possible that they might be effected if the stream object would contain the 'endstream' keyword without the required EOL marker and without intending to end the stream object.
15
+
16
+ ***
17
+
12
18
  Change log v.0.1.19
13
19
 
14
20
  **fix**: merged @espinosa's fix for issue #16 which affected windows machines.
@@ -153,10 +153,11 @@ module CombinePDF
153
153
  ##########################################
154
154
  ## parse a Stream
155
155
  ##########################################
156
- # when @scanner.scan(/stream[\r]?[\n]/)
157
- # str = @scanner.scan_until(/endstream/)
158
- when @scanner.scan(/stream(\r\n|\r|\n)/)
159
- str = @scanner.scan_until(/(\r\n|\r|\n)endstream/)
156
+ when @scanner.scan(/stream[\r]?[\n]/)
157
+ # the following was dicarded because some PDF files didn't have an EOL marker as required
158
+ # str = @scanner.scan_until(/(\r\n|\r|\n)endstream/)
159
+ # instead, a non-strict RegExp is used:
160
+ str = @scanner.scan_until(/endstream/)
160
161
  # raise error if the stream doesn't end.
161
162
  raise "Parsing Error: PDF file error - a stream object wasn't properly colsed using 'endstream'!" unless str
162
163
  # need to remove end of stream
@@ -1,3 +1,3 @@
1
1
  module CombinePDF
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combine_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-03 00:00:00.000000000 Z
11
+ date: 2015-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4