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 +4 -4
- data/lib/pdflib_wrapper/pdf.rb +2 -1
- data/lib/pdflib_wrapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1ae26242fb9a7992dd1a43bf7d01478900a69f0
|
4
|
+
data.tar.gz: d0d791ab4c63f573da576fedb6463b96fca8fd11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eb7f362eb027039b7cdc7caea7ff0b55935d9b46d4b785f6c37cc375e313ff0f8f7a071484cc19b3ea7a9107b75de56067388257948693d808b8035816c31bf
|
7
|
+
data.tar.gz: 7155b714f8a07a561218c73475fc1fa0f42909413a0e84d4691cc01f3584643dc902bc4366884183438f54a75769ff272d18619c85f0c7c406f2e81e82b0b130
|
data/lib/pdflib_wrapper/pdf.rb
CHANGED
@@ -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
|
-
|
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]
|