docsplit 0.8.0.alpha → 0.8.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docsplit.gemspec +1 -1
- data/lib/docsplit/pdfshaver_extractor.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed114c04083be64c6f974b342c55f3f7d89dd49
|
4
|
+
data.tar.gz: 825bec63f5b3cc100cc311e074da74a7a37b0842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d3cd23ad334f70930f044b88a838aa173d48f2997b96c9b401709225451bb53c00ee6a39ccdac2f6c0bcd1dbe4fa7a536ad2da0ebea25c6d2423ccc3c80b685
|
7
|
+
data.tar.gz: 40f1dcad7121920a233d062761ac795d02ccb15c2ffa09a4208e3ef56ca0ef436aaea8c08d1097300f6954f40ea25f1b31977a66a426c0ce1443ddcaf611289d
|
data/docsplit.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'docsplit'
|
3
|
-
s.version = '0.8.0.
|
3
|
+
s.version = '0.8.0.alpha1' # Keep version in sync with docsplit.rb
|
4
4
|
s.date = '2014-11-17'
|
5
5
|
|
6
6
|
s.homepage = "http://documentcloud.github.com/docsplit/"
|
@@ -21,9 +21,10 @@ module Docsplit
|
|
21
21
|
pdf_name = File.basename(pdf_path, File.extname(pdf_path))
|
22
22
|
filename = "#{pdf_name}_#{page.number}.#{format}"
|
23
23
|
destination = File.join(directory, filename)
|
24
|
-
FileUtils.mkdir_p
|
24
|
+
FileUtils.mkdir_p directory
|
25
25
|
|
26
26
|
dimensions = page.extract_dimensions_from_gm_geometry_string(size_string)
|
27
|
+
puts "Page: #{page.inspect}\ndestination: #{destination.inspect}\ndimensions: #{dimensions.inspect}"
|
27
28
|
page.render(destination, dimensions)
|
28
29
|
end
|
29
30
|
end
|