Class HTML2PDFConverter

  • All Implemented Interfaces:
    de.elnarion.util.docconverter.spi.DocConverter

    public class HTML2PDFConverter
    extends AbstractBaseConverter
    The Class HTML2PDFConverter.
    • Constructor Detail

      • HTML2PDFConverter

        public HTML2PDFConverter​(Map<String,​Object> paramConfigurationParameters)
        Instantiates a new HTML 2 PDF converter.
        Parameters:
        paramConfigurationParameters - the param configuration parameters
    • 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:
        convertToInputStream in class AbstractBaseConverter
        Parameters:
        source - the source
        paramSourceMimeType - 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