Sha256: 637a6562c22437adc23ea441f6b1dddd9a3910ef76e935f136aa85c4e19a2e12
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
# encoding: utf-8 require_relative 'base' require 'libis/format/office_to_pdf' require 'libis/format/type_database' module Libis module Format module Converter class OfficeConverter < Libis::Format::Converter::Base def self.input_types(_ = nil) [ :TXT, :RTF, :HTML, :MSDOC, :MSXLS, :MSPPT, :MSDOCX, :MSXLSX, :MSPPTX, :WORDPERFECT, ] end def self.output_types(_ = nil) [:PDF] end def convert(source, target, format, opts = {}) super return nil unless OfficeToPdf.run(source, target) target end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libis-format-0.9.3 | lib/libis/format/converter/office_converter.rb |