Package org.docx4j.services.client
Interface Converter
- All Known Implementing Classes:
ConverterHttp
public interface Converter
Java client library interface for Plutext PDF Converter
- Since:
- 3.3.0
-
Method Summary
Modifier and Type Method Description voidconvert(byte[] bytesIn, Format fromFormat, Format toFormat, java.io.OutputStream os)Convert byte array fromFormat to toFormat, streaming result to OutputStream os.voidconvert(java.io.File f, Format fromFormat, Format toFormat, java.io.OutputStream os)Convert File fromFormat to toFormat, streaming result to OutputStream os.voidconvert(java.io.InputStream instream, Format fromFormat, Format toFormat, java.io.OutputStream os)Convert InputStream fromFormat to toFormat, streaming result to OutputStream os.
-
Method Details
-
convert
void convert(java.io.File f, Format fromFormat, Format toFormat, java.io.OutputStream os) throws java.io.IOException, ConversionExceptionConvert File fromFormat to toFormat, streaming result to OutputStream os. fromFormat supported: DOC, DOCX toFormat supported: PDF- Parameters:
f-fromFormat-toFormat-os-- Throws:
java.io.IOExceptionConversionException
-
convert
void convert(java.io.InputStream instream, Format fromFormat, Format toFormat, java.io.OutputStream os) throws java.io.IOException, ConversionExceptionConvert InputStream fromFormat to toFormat, streaming result to OutputStream os. fromFormat supported: DOC, DOCX toFormat supported: PDF Note this uses a non-repeatable request entity, so it may not be suitable (depending on the endpoint config).- Parameters:
instream-fromFormat-toFormat-os-- Throws:
java.io.IOExceptionConversionException
-
convert
void convert(byte[] bytesIn, Format fromFormat, Format toFormat, java.io.OutputStream os) throws java.io.IOException, ConversionExceptionConvert byte array fromFormat to toFormat, streaming result to OutputStream os. fromFormat supported: DOC, DOCX toFormat supported: PDF- Parameters:
bytesIn-fromFormat-toFormat-os-- Throws:
java.io.IOExceptionConversionException
-