Skip to content

Commit c86d4b1

Browse files
committed
Updating JODConverter versions. 3.0b4 has support for firing up LibreOffice. (also removing JS comments from the top of conf file, as it blows up the json parser the JODConverter uses)
1 parent 557882c commit c86d4b1

14 files changed

Lines changed: 1 addition & 4 deletions

lib/docsplit.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def self.extract_pdf(docs, opts={})
7171
if GM_FORMATS.include?(`file -b --mime #{doc}`.strip.split(/[:;]\s+/)[0])
7272
`gm convert #{escaped_doc} #{escaped_out}/#{escaped_basename}.pdf`
7373
else
74-
options = "-jar #{ROOT}/vendor/jodconverter/jodconverter-core-3.0-beta-3.jar -r #{ROOT}/vendor/conf/document-formats.js"
74+
options = "-jar #{ROOT}/vendor/jodconverter/jodconverter-core-3.0-beta-4.jar -r #{ROOT}/vendor/conf/document-formats.js"
7575
run "#{options} #{escaped_doc} #{escaped_out}/#{escaped_basename}.pdf", [], {}
7676
end
7777
end

vendor/conf/document-formats.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//
2-
// JODConverter Document Formats Configuration
3-
//
41
[
52
{
63
"name": "Portable Document Format",
-64.8 KB
Binary file not shown.
68.2 KB
Binary file not shown.
-37 KB
Binary file not shown.
44.9 KB
Binary file not shown.

vendor/jodconverter/juh-3.1.0.jar

-54.3 KB
Binary file not shown.

vendor/jodconverter/juh-3.2.1.jar

54.3 KB
Binary file not shown.

vendor/jodconverter/jurt-3.1.0.jar

-106 KB
Binary file not shown.

vendor/jodconverter/jurt-3.2.1.jar

106 KB
Binary file not shown.

0 commit comments

Comments
 (0)