Class HTML2PDFConverter
- java.lang.Object
-
- de.elnarion.util.docconverter.common.AbstractBaseConverter
-
- de.elnarion.util.docconverter.html2pdf.HTML2PDFConverter
-
- All Implemented Interfaces:
de.elnarion.util.docconverter.spi.DocConverter
public class HTML2PDFConverter extends AbstractBaseConverter
The Class HTML2PDFConverter.
-
-
Constructor Summary
Constructors Constructor Description HTML2PDFConverter(Map<String,Object> paramConfigurationParameters)Instantiates a new HTML 2 PDF converter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<InputStream>convertToInputStream(InputStream source, String paramSourceMimeType)Convert to output stream.static Map<String,Set<String>>getSupportedConversion()Returns a mapping of all conversions that are supported by the backing conversion engine.static booleanisInputTypeSupported(de.elnarion.util.docconverter.spi.InputType paramInputType)Checks if is input type is supported.-
Methods inherited from class de.elnarion.util.docconverter.common.AbstractBaseConverter
convertFiles, convertStreams, getConfigurationParameters, getConfiguredCharset
-
-
-
-
Method Detail
-
getSupportedConversion
public static Map<String,Set<String>> getSupportedConversion()
Returns a mapping of all conversions that are supported by the backing conversion engine.- Returns:
- A map of all possible conversions with the key describing the input mimetypes and the set describing the mimetypes that these input mimetypes can be converted into.
-
convertToInputStream
protected List<InputStream> convertToInputStream(InputStream source, String paramSourceMimeType) throws de.elnarion.util.docconverter.api.exception.ConversionException
Convert to output stream.- Specified by:
convertToInputStreamin classAbstractBaseConverter- Parameters:
source- the sourceparamSourceMimeType- the param source mime type- Returns:
- the output stream
- Throws:
de.elnarion.util.docconverter.api.exception.ConversionException- the conversion exception
-
isInputTypeSupported
public static boolean isInputTypeSupported(de.elnarion.util.docconverter.spi.InputType paramInputType)
Checks if is input type is supported.- Parameters:
paramInputType- the param input type- Returns:
- true, if is input type supported
-
-