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: 499cdc4ce1529c56afa1d9665958ed00df1045f4
4
- data.tar.gz: 77b0423cf1080309ec8353449a8b3297412d4af7
3
+ metadata.gz: a3d48f50c37862387701b9d81645440a3e9a8d7f
4
+ data.tar.gz: 580edfb75a2a1c6f6f57d841e2b6d2ca798fb228
5
5
  SHA512:
6
- metadata.gz: 01de622c24f76cce3d16ad3119197cdc2860cd6ea355724bea44387fbc87d9c7e067f06e1bd8a6b0e6b2d5bee53e6238afb2f73357637e8e1767aed158cee3e8
7
- data.tar.gz: 9df24ec8bce48fb13f2c0b25f86d65ca7f0a2f8136c5d09b975162d4a22bd5c98ae3db0adf6ed6fe5e249fb2445fc926e471957a09e367aa9381997a30aac90f
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[:err].empty?
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='#{target}'",
29
- "'#{source}'"
28
+ "-sOutputFile=#{target}",
29
+ "#{source}"
30
30
  )
31
31
 
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Format
3
- VERSION = '0.9.17'
3
+ VERSION = '0.9.18'
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.17
4
+ version: 0.9.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser