pdfcrowd 2.1.0 → 2.2.0

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.
Files changed (2) hide show
  1. data/lib/pdfcrowd.rb +5 -1
  2. metadata +4 -4
data/lib/pdfcrowd.rb CHANGED
@@ -255,6 +255,9 @@ module Pdfcrowd
255
255
  @fields['page_background_color'] = value
256
256
  end
257
257
 
258
+ def setTransparentBackground(value=true)
259
+ @fields['transparent_background'] = value
260
+ end
258
261
 
259
262
 
260
263
 
@@ -447,7 +450,8 @@ if __FILE__ == $0
447
450
  [:setHeaderHtml, 'page %p out of %n'],
448
451
  [:setHeaderUrl, 'http://google.com'],
449
452
  [:setPdfScalingFactor, 0.5],
450
- [:setPageBackgroundColor, 'ee82EE']]
453
+ [:setPageBackgroundColor, 'ee82EE'],
454
+ [:setTransparentBackground, true]]
451
455
  client = Pdfcrowd::Client.new(ARGV[0], ARGV[1])
452
456
  client.setVerticalMargin("1in")
453
457
  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: 11
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 2.1.0
10
+ version: 2.2.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-06-28 00:00:00 Z
18
+ date: 2011-08-04 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.