libis-format 0.9.63 → 0.9.64
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68485d328b797424fffc439a3b9570d60c88ee0111a1dd0b1671c919a7e2d65c
|
4
|
+
data.tar.gz: 6657d204a16d5f892880ae3e7d1cda270b43b1ecde71372296f70c27ccd4f91a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e320d1a290a8fe5a0437af129e766f22b5ff6d792b9cf134a1d2eb4563558bccabe6002b29bbbae26a97cc676e97761f8b51aa9374c7be84d51041dc7cc5d595
|
7
|
+
data.tar.gz: b07584b61fd9e46ead2efbb981b4ba3cc80cd6fdc1ab09b984dd43cc581b888e5a8e5c158574bb43c11cd4cfee91b1c37a83dfc8692b1ece0c2c2bbe78338bda
|
@@ -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
|
-
|
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
|
|
data/lib/libis/format/version.rb
CHANGED