tilt-pdf 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tilt/pdf/version.rb +1 -1
- data/lib/tilt/pdf.rb +1 -19
- 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: 9aaba3ae3b58e23c9e7ff5845a85695432f5a80a
|
4
|
+
data.tar.gz: 74ef09fd5b5d42e78e02409fcfeff9e65b2e53d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76aef20df947574fc46d70a44fd4521ff88f44c2f905daf0006e7e314521a8e1f35490c029b95bfabf10034b6ecd1875e2a11d38f6a57187644a47d8e854c30e
|
7
|
+
data.tar.gz: d9af9c3e0028031bb99c6620fb960210280a4c784e1ce5de05e9656444d748a9bdf69d856ad0ae676368b2a63623d8c8af4e5b74a9b170fd68b379bf9425bf03
|
data/lib/tilt/pdf/version.rb
CHANGED
data/lib/tilt/pdf.rb
CHANGED
@@ -1,25 +1,7 @@
|
|
1
1
|
require 'pdfkit'
|
2
2
|
require 'tilt'
|
3
3
|
require 'tilt/template'
|
4
|
-
|
5
|
-
PDFKit.configure do |config|
|
6
|
-
config.wkhtmltopdf =
|
7
|
-
'/Applications/wkhtmltopdf.app/Contents/MacOS/wkhtmltopdf'
|
8
|
-
config.default_options = {
|
9
|
-
page_size: 'A4',
|
10
|
-
orientation: 'portrait',
|
11
|
-
print_media_type: true,
|
12
|
-
dpi: 600,
|
13
|
-
margin_top: 0,
|
14
|
-
margin_bottom: 0,
|
15
|
-
margin_left: 0,
|
16
|
-
margin_right: 0,
|
17
|
-
header_spacing: 0,
|
18
|
-
footer_spacing: 0,
|
19
|
-
disable_smart_shrinking: true,
|
20
|
-
zoom: 1.0,
|
21
|
-
}
|
22
|
-
end
|
4
|
+
require 'yaml'
|
23
5
|
|
24
6
|
module Tilt
|
25
7
|
class PDFTemplate < Template
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tilt-pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loic Nageleisen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|