combine_pdf 0.2.13 → 0.2.14
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/combine_pdf/parser.rb +3 -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: cb521b662f0f6d91fa36351abcc5fdd03d5786f0
|
|
4
|
+
data.tar.gz: abf5724947da93d41dfdb428edfcff5dc7e5b215
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cbb46dd904c73963ff711300a268173ecd935e7bdb2620fb0803b2b23608193c50ff4614774f55c6fba46ba4e8c2b5644296f4865b3c13eb8c8a145a7a92ead
|
|
7
|
+
data.tar.gz: 87ed4ff4bb904645be3662837ad11abd62b684a7a97eaa416f516b0034cb404a6a2019c07a6e652d4325e7c849e2e1895bab1013a5056e15cd29a3b692a2fe5e
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
|
+
Change log v.0.2.14
|
|
6
|
+
|
|
7
|
+
**Fix**: Fix for issue #39, where certain comments could have caused the object after the comments to be ignored, resulting in parsing errors.
|
|
8
|
+
|
|
9
|
+
***
|
|
10
|
+
|
|
5
11
|
Change log v.0.2.13
|
|
6
12
|
|
|
7
13
|
**Fix** fixed issue # 37 reported by @sega (thank you for reporting!), regarding the insability to stamp one PDF page over another when one PDF page used a resource directory propegated with data and another page used a resource directory propegated with references. This was now resolved by checking for references before merging the data.
|
data/lib/combine_pdf/parser.rb
CHANGED
|
@@ -315,10 +315,9 @@ module CombinePDF
|
|
|
315
315
|
when str = @scanner.scan(/\%/)
|
|
316
316
|
#is a comment, skip until new line
|
|
317
317
|
loop do
|
|
318
|
-
break unless @scanner.scan(/[^\d\r\n]+/)
|
|
319
|
-
break if @scanner.check(/([\d]+[\s]+[\d]+[\s]+obj[\n\r\s]+\<\<)|([\n\r]+)/)
|
|
320
|
-
|
|
321
|
-
@scanner.pos += 1
|
|
318
|
+
# break unless @scanner.scan(/[^\d\r\n]+/)
|
|
319
|
+
break if @scanner.check(/([\d]+[\s]+[\d]+[\s]+obj[\n\r\s]+\<\<)|([\n\r]+)/) || @scanner.eos? # || @scanner.scan(/[^\d]+[\r\n]+/) ||
|
|
320
|
+
@scanner.scan(/[^\d\r\n]+/) || @scanner.pos += 1
|
|
322
321
|
end
|
|
323
322
|
# puts "AFTER COMMENT: #{@scanner.peek 8}"
|
|
324
323
|
##########################################
|
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.2.
|
|
4
|
+
version: 0.2.14
|
|
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-
|
|
11
|
+
date: 2015-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruby-rc4
|