Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Extraneous ]

  • Loading branch information...
commit 2e8312c536169ffb42d49bd5a1aa2bbf7e317cc8 1 parent 9f22570
Ted Han knowtheory authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 docsplit.gemspec
  2. +2 −2 lib/docsplit.rb
4 docsplit.gemspec
View
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'docsplit'
- s.version = '0.6.2' # Keep version in sync with docsplit.rb
- s.date = '2011-11-18'
+ s.version = '0.6.3' # Keep version in sync with docsplit.rb
+ s.date = '2011-11-23'
s.homepage = "http://documentcloud.github.com/docsplit/"
s.summary = "Break Apart Documents into Images, Text, Pages and PDFs"
4 lib/docsplit.rb
View
@@ -1,7 +1,7 @@
# The Docsplit module delegates to the Java PDF extractors.
module Docsplit
- VERSION = '0.6.2' # Keep in sync with gemspec.
+ VERSION = '0.6.3' # Keep in sync with gemspec.
ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
@@ -68,7 +68,7 @@ def self.extract_pdf(docs, opts={})
basename = File.basename(doc, ext)
escaped_doc, escaped_out, escaped_basename = [doc, out, basename].map(&ESCAPE)
- if GM_FORMATS.include?(`file -b --mime #{ESCAPE[doc]]}`.strip.split(/[:;]\s+/)[0])
+ if GM_FORMATS.include?(`file -b --mime #{ESCAPE[doc]}`.strip.split(/[:;]\s+/)[0])
`gm convert #{escaped_doc} #{escaped_out}/#{escaped_basename}.pdf`
else
options = "-jar #{ROOT}/vendor/jodconverter/jodconverter-core-3.0-beta-4.jar -r #{ROOT}/vendor/conf/document-formats.js"
Please sign in to comment.
Something went wrong with that request. Please try again.