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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/combine_pdf/combine_pdf_parser.rb +5 -4
- data/lib/combine_pdf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0a1ba8e7f8d04a0e479de6d9535a814c708fa08
|
4
|
+
data.tar.gz: a97752cfb5af1b84d56d96919f850af59987ed89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
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
|
data/lib/combine_pdf/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-rc4
|