Class: Libis::Format::Converter::OfficeConverter
- Inherits:
-
Base
- Object
- Base
- Libis::Format::Converter::OfficeConverter
show all
- Defined in:
- lib/libis/format/converter/office_converter.rb
Instance Attribute Summary
Attributes inherited from Base
#flags, #options
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
inherited, #initialize, #using_temp, using_temp
Class Method Details
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/libis/format/converter/office_converter.rb', line 12
def self.input_types
%i[
TXT
RTF
HTML
MSDOC
MSDOT
MSXLS
MSPPT
MSDOCX
MSDOTX
MSXLSX
MSPPTX
WORDPERFECT
OO_WRITER
OO_IMPRESS
OO_CALC
]
end
|
.output_types(format = nil) ⇒ Object
32
33
34
35
36
|
# File 'lib/libis/format/converter/office_converter.rb', line 32
def self.output_types(format = nil)
return [] unless input_types.include?(format)
[:PDF]
end
|
Instance Method Details
#convert(source, target, format, opts = {}) ⇒ Object
42
43
44
45
46
|
# File 'lib/libis/format/converter/office_converter.rb', line 42
def convert(source, target, format, opts = {})
super
Format::Tool::OfficeToPdf.run(source, target)
end
|
#office_convert(_) ⇒ Object
38
39
40
|
# File 'lib/libis/format/converter/office_converter.rb', line 38
def office_convert(_)
end
|