pdfcrowd 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pdfcrowd.rb +7 -1
- metadata +4 -4
data/lib/pdfcrowd.rb
CHANGED
@@ -251,6 +251,11 @@ module Pdfcrowd
|
|
251
251
|
@fields['header_url'] = value
|
252
252
|
end
|
253
253
|
|
254
|
+
def setPageBackgroundColor(value)
|
255
|
+
@fields['page_background_color'] = value
|
256
|
+
end
|
257
|
+
|
258
|
+
|
254
259
|
|
255
260
|
|
256
261
|
|
@@ -441,7 +446,8 @@ if __FILE__ == $0
|
|
441
446
|
[:setFooterUrl, 'http://google.com'],
|
442
447
|
[:setHeaderHtml, 'page %p out of %n'],
|
443
448
|
[:setHeaderUrl, 'http://google.com'],
|
444
|
-
[:setPdfScalingFactor, 0.5]
|
449
|
+
[:setPdfScalingFactor, 0.5],
|
450
|
+
[:setPageBackgroundColor, 'ee82EE']]
|
445
451
|
client = Pdfcrowd::Client.new(ARGV[0], ARGV[1])
|
446
452
|
client.setVerticalMargin("1in")
|
447
453
|
client.send(method, arg)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfcrowd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 2.0.0
|
10
|
+
version: 2.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pdfcrowd Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-28 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: It lets you easily convert web pages and raw HTML code to PDF in your Ruby applications.
|