lib/docsplit/info_extractor.rb in docsplit-0.5.2 vs lib/docsplit/info_extractor.rb in docsplit-0.6.0

- old
+ new

@@ -16,10 +16,10 @@ } # Pull out a single datum from a pdf. def extract(key, pdfs, opts) pdf = [pdfs].flatten.first - cmd = "pdfinfo #{pdf} 2>&1" + cmd = "pdfinfo #{ESCAPE[pdf]} 2>&1" result = `#{cmd}`.chomp raise ExtractionFailed, result if $? != 0 match = result.match(MATCHERS[key]) answer = match && match[1] answer = answer.to_i if answer && key == :length \ No newline at end of file