libis-format 0.9.17 → 0.9.18
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3d48f50c37862387701b9d81645440a3e9a8d7f
|
|
4
|
+
data.tar.gz: 580edfb75a2a1c6f6f57d841e2b6d2ca798fb228
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 512eb3bd6d0bac89f8be8682f5dbb8fc20731d14ef30cb5ff8b9d92be632e555f63be8ab3387a6d05133681d6b76905cd38021aced1740cb2253e1bcda5c5ae5
|
|
7
|
+
data.tar.gz: a7c8c792f3c5ec28924958ee5db0c8dec1fac27e6c6666702159fcb48d99212f966ba548e01a7758a1b3272bb0b172fdea125017b7eb5ab61d67ba3d7f9f0d6a
|
|
@@ -127,7 +127,7 @@ module Libis
|
|
|
127
127
|
|
|
128
128
|
using_temp(target) do |tmpname|
|
|
129
129
|
result = Libis::Format::PdfOptimizer.run(source, tmpname, quality)
|
|
130
|
-
unless result[:
|
|
130
|
+
unless result[:status] == 0
|
|
131
131
|
error("Pdf optimization encountered errors:\n%s", (result[:err] + result[:out]).join('\n'))
|
|
132
132
|
next nil
|
|
133
133
|
end
|
|
@@ -21,12 +21,12 @@ module Libis
|
|
|
21
21
|
Libis::Tools::Command.run(
|
|
22
22
|
'gs',
|
|
23
23
|
'-sDEVICE=pdfwrite',
|
|
24
|
-
'
|
|
24
|
+
'-dCompatibilityLevel=1.4',
|
|
25
25
|
"-dPDFSETTINGS=/#{quality}",
|
|
26
26
|
'-dNOPAUSE',
|
|
27
27
|
'-dBATCH',
|
|
28
|
-
"-sOutputFile
|
|
29
|
-
"
|
|
28
|
+
"-sOutputFile=#{target}",
|
|
29
|
+
"#{source}"
|
|
30
30
|
)
|
|
31
31
|
|
|
32
32
|
end
|
data/lib/libis/format/version.rb
CHANGED