dragonfly_pdf 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dragonfly_pdf/processors/page_thumb.rb +2 -2
- data/lib/dragonfly_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: 8ee23007036641281d4325d303511da0796a1f6a
|
4
|
+
data.tar.gz: 2c83a852242b6cb5f78f69c96fba43b7900e2959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 701c02304a959ed3757befceb4e708bd1cbca373efab15150b760c78671910a1156f7d808a88c7a6b4ef451a82c4e08215a448600d63cd56259e3df4b9386972
|
7
|
+
data.tar.gz: 0bb95b962d22d78e76dc21e4b47c58160210e9bd054f71f8e3d6278aec5447b03166f5a1a60f9b8b64c5be98377b10053f8d0627392e3b51855b424e91d28745
|
@@ -5,8 +5,8 @@ module DragonflyPdf
|
|
5
5
|
class PageThumb
|
6
6
|
|
7
7
|
def call content, page_number=1, opts={}
|
8
|
-
format = opts
|
9
|
-
density = opts
|
8
|
+
format = opts['format'] || :png
|
9
|
+
density = opts['density'] || 150
|
10
10
|
spreads = content.meta['spreads'] || false
|
11
11
|
|
12
12
|
args = "-alpha deactivate -background white -colorspace sRGB -density #{density}x#{density} -define pdf:use-cropbox=true -define pdf:use-trimbox=true"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragonfly_pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dragonfly
|