libis-format 0.9.63 → 0.9.64

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
  SHA256:
3
- metadata.gz: bbd1368768ebf444b19b267d9c539ad5b3a8f984a63dd274abe62cd6048cf67a
4
- data.tar.gz: 1d5a5f17e2c92195c16b8c976324aed5e6e6dadb267d45b5ae6136cb069a43bf
3
+ metadata.gz: 68485d328b797424fffc439a3b9570d60c88ee0111a1dd0b1671c919a7e2d65c
4
+ data.tar.gz: 6657d204a16d5f892880ae3e7d1cda270b43b1ecde71372296f70c27ccd4f91a
5
5
  SHA512:
6
- metadata.gz: b70373e91c29a65e8de8a1760cc7d340da83ec62a878bf78e6a1e227617b51baece2d65fba1c769be6797477d809c72ad8fd17b1a209f3315bb738838c061114
7
- data.tar.gz: b4fb9dd0558f882397295ff3b718edb6d55499bcdd0cf7eef169b5c955caba2bc1562718b516db3aacae7cc6292e055ae627d9d334ad1afdc49ccf0df0524918
6
+ metadata.gz: e320d1a290a8fe5a0437af129e766f22b5ff6d792b9cf134a1d2eb4563558bccabe6002b29bbbae26a97cc676e97761f8b51aa9374c7be84d51041dc7cc5d595
7
+ data.tar.gz: b07584b61fd9e46ead2efbb981b4ba3cc80cd6fdc1ab09b984dd43cc581b888e5a8e5c158574bb43c11cd4cfee91b1c37a83dfc8692b1ece0c2c2bbe78338bda
@@ -17,9 +17,11 @@ module Libis
17
17
  :RTF,
18
18
  :HTML,
19
19
  :MSDOC,
20
+ :MSDOT,
20
21
  :MSXLS,
21
22
  :MSPPT,
22
23
  :MSDOCX,
24
+ :MSDOTX,
23
25
  :MSXLSX,
24
26
  :MSPPTX,
25
27
  :WORDPERFECT,
@@ -34,6 +34,7 @@ module Libis
34
34
  timeout = Libis::Format::Config[:timeouts][:office_to_pdf]
35
35
  result = Libis::Tools::Command.run(
36
36
  Libis::Format::Config[:soffice_path], '--headless',
37
+ "-env:UserInstallation=file://#{workdir}",
37
38
  '--convert-to', export_filter,
38
39
  '--outdir', workdir, src_file,
39
40
  timeout: timeout,
@@ -41,7 +42,8 @@ module Libis
41
42
  )
42
43
 
43
44
  raise RuntimeError, "#{self.class} took too long (> #{timeout} seconds) to complete" if result[:timeout]
44
- raise RuntimeError, "#{self.class} errors: #{result[:err].join("\n")}" unless result[:status] == 0 && result[:err].empty?
45
+ warn "OfficeToPdf conversion messages: \n\t#{result[:err].join("\n\t")}" unless result[:err].empty?
46
+ raise RuntimeError, "#{self.class} failed to generate target file #{target}" unless File.exist?(target)
45
47
 
46
48
  FileUtils.copy tgt_file, target, preserve: true
47
49
 
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Format
3
- VERSION = '0.9.63'
3
+ VERSION = '0.9.64'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.63
4
+ version: 0.9.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser