Class PdfConversionParams


  • public class PdfConversionParams
    extends Object
    Optional conversion parameters, see the particular converter implementations for supported values.
    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    • Field Detail

      • EMPTY

        public static final PdfConversionParams EMPTY
        Empty parameter set, may be used to let the converter apply its defaults.
    • Constructor Detail

      • PdfConversionParams

        public PdfConversionParams()
    • Method Detail

      • set

        public <T> PdfConversionParams set​(String paramName,
                                           T paramValue)
        Fluent parameter setter.
        Type Parameters:
        T - the type of the parameter value
        Parameters:
        paramName - name of the parameter, known parameter names can be found under PdfConversionParams.ParamNames
        paramValue - the parameter value
        Returns:
        this
      • get

        public <T> T get​(String paramName)
        Type Parameters:
        T - the type of the parameter value
        Parameters:
        paramName - name of the parameter, known parameter names can be found under PdfConversionParams.ParamNames
        Returns:
        the parameter value or null, if there's no such parameter
      • get

        public <T> T get​(String paramName,
                         T fallbackValue)
        Type Parameters:
        T - the type of the parameter value
        Parameters:
        paramName - name of the parameter, known parameter names can be found under PdfConversionParams.ParamNames
        fallbackValue - value to be used, if there's no parameter with the provided name
        Returns:
        the parameter value or the passed fallback value, if there's no such parameter