lib/libis/format/converter/pdf_converter.rb in libis-format-0.9.22 vs lib/libis/format/converter/pdf_converter.rb in libis-format-0.9.23

- old
+ new

@@ -11,14 +11,15 @@ module Format module Converter class PdfConverter < Libis::Format::Converter::Base - def self.input_types(_ = nil) + def self.input_types [:PDF] end - def self.output_types(_ = nil) + def self.output_types(format = nil) + return [] unless input_types.include?(format) [:PDF, :PDFA] end def pdf_convert(_) #force usage of this converter