public interface OfficeConverter
Modifier and Type | Method and Description |
---|---|
Map<String,byte[]> |
convert(Map<String,InputStream> inputStreams,
String inputFileName,
String outputFileName)
Attempts to convert the input document identified by inputStreams and inputFileName arguments into
the format identified by outputFileName argument.
|
org.artofsolving.jodconverter.document.DocumentFormatRegistry |
getFormatRegistry() |
Map<String,byte[]> convert(Map<String,InputStream> inputStreams, String inputFileName, String outputFileName) throws OfficeConverterException
inputStreams
- input streams corresponding to the input document; it's possible that some document types
(e.g. HTML) consists of more than one input stream corresponding to different artifacts embedded
within document contentinputFileName
- name of the main input file within inputStreams map; this argument is used to
determine the format of the input documentoutputFileName
- name of the main output file; an entry corresponding to this name will be available in the
results map if the conversion succeeds; This argument is used to determine the format of the output
documentOfficeConverterException
- if an error occurs during the conversionorg.artofsolving.jodconverter.document.DocumentFormatRegistry getFormatRegistry()
Copyright © 2004–2017 XWiki. All rights reserved.