lib/libis/format/converter/pdf_converter.rb in libis-format-0.9.17 vs lib/libis/format/converter/pdf_converter.rb in libis-format-0.9.18

- old
+ new

@@ -125,10 +125,10 @@ def optimize_pdf(source, target, quality) using_temp(target) do |tmpname| result = Libis::Format::PdfOptimizer.run(source, tmpname, quality) - unless result[:err].empty? + unless result[:status] == 0 error("Pdf optimization encountered errors:\n%s", (result[:err] + result[:out]).join('\n')) next nil end tmpname end