public class OfficeDocumentConverter
extends java.lang.Object
This class is maintained for backward compatibility, but LocalConverter
should be used
instead.
Constructor and Description |
---|
OfficeDocumentConverter(org.jodconverter.office.OfficeManager officeManager)
Constructs a new instance of the class with the specified manager.
|
OfficeDocumentConverter(org.jodconverter.office.OfficeManager officeManager,
org.jodconverter.document.DocumentFormatRegistry formatRegistry)
Constructs a new instance of the class with the specified manager and registry.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(java.io.File inputFile,
java.io.File outputFile)
Converts an input file to an output file.
|
void |
convert(java.io.File inputFile,
java.io.File outputFile,
org.jodconverter.document.DocumentFormat outputFormat)
Converts an input file to an output file.
|
void |
convert(java.io.File inputFile,
java.io.File outputFile,
org.jodconverter.document.DocumentFormat inputFormat,
org.jodconverter.document.DocumentFormat outputFormat)
Converts an input file to an output file.
|
void |
convert(FilterChain filterChain,
java.io.File inputFile,
java.io.File outputFile)
Converts an input file to an output file.
|
void |
convert(FilterChain filterChain,
java.io.File inputFile,
java.io.File outputFile,
org.jodconverter.document.DocumentFormat outputFormat)
Converts an input file to an output file.
|
void |
convert(FilterChain filterChain,
java.io.File inputFile,
java.io.File outputFile,
org.jodconverter.document.DocumentFormat inputFormat,
org.jodconverter.document.DocumentFormat outputFormat)
Converts an input file to an output file.
|
org.jodconverter.document.DocumentFormatRegistry |
getFormatRegistry()
Gets all the
DocumentFormat supported by the converter. |
void |
setDefaultLoadProperties(java.util.Map<java.lang.String,java.lang.Object> defaultLoadProperties)
Sets the default properties to use when we load (open) a document before a conversion,
regardless the input type of the document.
|
public OfficeDocumentConverter(org.jodconverter.office.OfficeManager officeManager)
officeManager
- The manager that will provide the office instance required for a
conversion.public OfficeDocumentConverter(org.jodconverter.office.OfficeManager officeManager, org.jodconverter.document.DocumentFormatRegistry formatRegistry)
officeManager
- The manager that will provide the office instance required for a
conversion.formatRegistry
- A collections of DocumentFormat
supported by this converter.public void convert(java.io.File inputFile, java.io.File outputFile) throws org.jodconverter.office.OfficeException
DocumentFormat
.inputFile
- The input file to convert.outputFile
- The target output file.org.jodconverter.office.OfficeException
- If the conversion fails.public void convert(java.io.File inputFile, java.io.File outputFile, org.jodconverter.document.DocumentFormat outputFormat) throws org.jodconverter.office.OfficeException
DocumentFormat
.inputFile
- The input file to convert.outputFile
- The target output file.outputFormat
- The target output format.org.jodconverter.office.OfficeException
- If the conversion fails.public void convert(java.io.File inputFile, java.io.File outputFile, org.jodconverter.document.DocumentFormat inputFormat, org.jodconverter.document.DocumentFormat outputFormat) throws org.jodconverter.office.OfficeException
inputFile
- The input file to convert.outputFile
- The target output file.inputFormat
- The source input format.outputFormat
- The target output format.org.jodconverter.office.OfficeException
- If the conversion fails.public void convert(FilterChain filterChain, java.io.File inputFile, java.io.File outputFile) throws org.jodconverter.office.OfficeException
DocumentFormat
.filterChain
- The FilterChain to be applied after the document is loaded and before it is
stored (converted) in the new document format. A FilterChain is used to modify the document
before the conversion. Filters are applied in the same order they appear in the chain.inputFile
- The input file to convert.outputFile
- The target output file.org.jodconverter.office.OfficeException
- If the conversion fails.public void convert(FilterChain filterChain, java.io.File inputFile, java.io.File outputFile, org.jodconverter.document.DocumentFormat outputFormat) throws org.jodconverter.office.OfficeException
DocumentFormat
.filterChain
- The FilterChain to be applied after the document is loaded and before it is
stored (converted) in the new document format. A FilterChain is used to modify the document
before the conversion. Filters are applied in the same order they appear in the chain.inputFile
- The input file to convert.outputFile
- The target output file.outputFormat
- The target output format.org.jodconverter.office.OfficeException
- If the conversion fails.public void convert(FilterChain filterChain, java.io.File inputFile, java.io.File outputFile, org.jodconverter.document.DocumentFormat inputFormat, org.jodconverter.document.DocumentFormat outputFormat) throws org.jodconverter.office.OfficeException
filterChain
- The FilterChain to be applied after the document is loaded and before it is
stored (converted) in the new document format. A FilterChain is used to modify the document
before the conversion. Filters are applied in the same order they appear in the chain.inputFile
- The input file to convert.outputFile
- The target output file.inputFormat
- The source input format.outputFormat
- The target output format.org.jodconverter.office.OfficeException
- If the conversion fails.public org.jodconverter.document.DocumentFormatRegistry getFormatRegistry()
DocumentFormat
supported by the converter.DocumentFormatRegistry
containing the supported format.public void setDefaultLoadProperties(java.util.Map<java.lang.String,java.lang.Object> defaultLoadProperties)
defaultLoadProperties
- The default properties to apply when loading a document.