Sha256: 7fdf5ea41963c6deda4482b0ddaa8c9486420d1a5d048292a9a5de7a377df214
Contents?: true
Size: 897 Bytes
Versions: 3
Compression:
Stored size: 897 Bytes
Contents
require 'os' require 'libis/tools/extend/string' require 'libis/tools/logger' require 'libis/tools/command' require 'libis/format/config' module Libis module Format module Tool class PdfMerge include ::Libis::Tools::Logger def self.run(source, target, options = []) self.new.run source, target, options end def run(source, target, options = []) source = [source] unless source.is_a?(Array) 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', Libis::Format::Config[:pdf_tool], 'MergePdf', '--file_output', target, *options, *source, ) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
libis-format-0.9.49 | lib/libis/format/tool/pdf_merge.rb |
libis-format-0.9.48 | lib/libis/format/tool/pdf_merge.rb |
libis-format-0.9.47 | lib/libis/format/tool/pdf_merge.rb |