lib/libis/format/tool/pdf_copy.rb in libis-format-0.9.46 vs lib/libis/format/tool/pdf_copy.rb in libis-format-0.9.47

- old
+ new

@@ -16,19 +16,17 @@ def self.run(source, target, options = []) self.new.run source, target, options end def run(source, target, options = []) - tool_dir = File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'tools')) - jar_file = File.join(tool_dir, 'PdfTool.jar') if OS.java? # TODO: import library and execute in current VM. For now do exactly as in MRI. end Libis::Tools::Command.run( Libis::Format::Config[:java_path], - '-cp', jar_file, + '-cp', Libis::Format::Config[:pdf_tool], 'CopyPdf', '--file_input', source, '--file_output', target, *options )