pdflib_wrapper 0.0.2.2 → 0.0.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9efcfe6fe38a5ad199d4b342274221b9d38a24b3
4
- data.tar.gz: 056dea88be4b0488426486bbd70fa27e9e908983
3
+ metadata.gz: e1ae26242fb9a7992dd1a43bf7d01478900a69f0
4
+ data.tar.gz: d0d791ab4c63f573da576fedb6463b96fca8fd11
5
5
  SHA512:
6
- metadata.gz: 77f4f376bceef7de5fa88cc5d2402aa04403c7a8243718c006711ff16b30d3dea3cc108393754bea47a0ccf88fb2321e48679e7f47feea2cabe82aa9a82f6956
7
- data.tar.gz: 11e877ce924173f21deaeddd514990b48a3357a5366142e10a69725387d7cbc00b97764d7b9d587a70150c545feb577687eea2429219e58e100aeae91e348bc8
6
+ metadata.gz: 9eb7f362eb027039b7cdc7caea7ff0b55935d9b46d4b785f6c37cc375e313ff0f8f7a071484cc19b3ea7a9107b75de56067388257948693d808b8035816c31bf
7
+ data.tar.gz: 7155b714f8a07a561218c73475fc1fa0f42909413a0e84d4691cc01f3584643dc902bc4366884183438f54a75769ff272d18619c85f0c7c406f2e81e82b0b130
@@ -13,6 +13,7 @@ module PdflibWrapper
13
13
  #TODO: better support for begin document options
14
14
  unless opts[:dont_create_document]
15
15
  key_values = [:masterpassword, :userpassword, :permissions, :moddate]
16
+ @pdf.set_parameter("licensefile", opts[:license_path] ) if opts[:license_path] #TODO: check if file exists
16
17
  @pdf.begin_document(filepath.to_s, OptionListMapper.create_options('', key_values, [], opts))
17
18
 
18
19
  @pdf.set_info("Subject", metadata[:subject]) if metadata[:subject]
@@ -23,7 +24,7 @@ module PdflibWrapper
23
24
  @pdf.set_info("Trapped", metadata[:trapped]) if opts[:trapped] && [true, false].include?(opts[:trapped])
24
25
 
25
26
  #TODO: support more of the Global Options of pdflib
26
- @pdf.set_parameter("licensefile", opts[:license_path] ) if opts[:license_path] #TODO: check if file exists
27
+
27
28
  @pdf.set_value("compress", opts[:compress] ) if opts[:compress] && opts[:compress].is_a?(Fixnum) #TODO: check range (1..9)
28
29
 
29
30
  @current_page = Page.new(@pdf, 1, 1).save if opts[:with_blank_page]
@@ -1,3 +1,3 @@
1
1
  module PdflibWrapper
2
- VERSION = '0.0.2.2'
2
+ VERSION = '0.0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdflib_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.2
4
+ version: 0.0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Studener