Permalink
Browse files

Updating JODConverter versions. 3.0b4 has support for firing up Libre…

…Office. (also removing JS comments from the top of conf file, as it blows up the json parser the JODConverter uses)
  • Loading branch information...
1 parent 557882c commit c86d4b182ec262f3e8d49d534c815a53b35628e4 @knowtheory knowtheory committed Nov 18, 2011
View
2 lib/docsplit.rb
@@ -71,7 +71,7 @@ def self.extract_pdf(docs, opts={})
if GM_FORMATS.include?(`file -b --mime #{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-3.jar -r #{ROOT}/vendor/conf/document-formats.js"
+ options = "-jar #{ROOT}/vendor/jodconverter/jodconverter-core-3.0-beta-4.jar -r #{ROOT}/vendor/conf/document-formats.js"
run "#{options} #{escaped_doc} #{escaped_out}/#{escaped_basename}.pdf", [], {}
end
end
View
3 vendor/conf/document-formats.js
@@ -1,6 +1,3 @@
-//
-// JODConverter Document Formats Configuration
-//
[
{
"name": "Portable Document Format",
View
BIN vendor/jodconverter/jodconverter-core-3.0-beta-3.jar
Binary file not shown.
View
BIN vendor/jodconverter/jodconverter-core-3.0-beta-4.jar
Binary file not shown.
View
BIN vendor/jodconverter/json-20080701.jar
Binary file not shown.
View
BIN vendor/jodconverter/json-20090211.jar
Binary file not shown.
View
BIN vendor/jodconverter/juh-3.1.0.jar
Binary file not shown.
View
BIN vendor/jodconverter/juh-3.2.1.jar
Binary file not shown.
View
BIN vendor/jodconverter/jurt-3.1.0.jar
Binary file not shown.
View
BIN vendor/jodconverter/jurt-3.2.1.jar
Binary file not shown.
View
BIN vendor/jodconverter/ridl-3.1.0.jar
Binary file not shown.
View
BIN vendor/jodconverter/ridl-3.2.1.jar
Binary file not shown.
View
BIN vendor/jodconverter/unoil-3.1.0.jar
Binary file not shown.
View
BIN vendor/jodconverter/unoil-3.2.1.jar
Binary file not shown.

0 comments on commit c86d4b1

Please sign in to comment.