module Libreconv
Convert office documents using LibreOffice / OpenOffice to one of their supported formats.
Constants
- VERSION
Public Class Methods
convert(source, target, soffice_command = nil, convert_to = nil)
click to toggle source
@param [String] source Path or URL of the source file. @param [String] target Target file path. @param [String] soffice_command Path to the soffice binary. @param [String] convert_to Format to convert to (default: 'pdf'). @raise [IOError] If invalid source file/URL or soffice command not found. @raise [URI::Error] When URI parsing error. @raise [Net::ProtocolError] If source URL checking failed. @raise [ConversionFailedError] When soffice command execution error.
# File lib/libreconv.rb, line 22 def self.convert(source, target, soffice_command = nil, convert_to = nil) Converter.new(source, target, soffice_command, convert_to).convert end