Class Image2PdfConverter

  • All Implemented Interfaces:
    IPdfConverter

    public class Image2PdfConverter
    extends Object
    implements IPdfConverter
    IPdfConverter implementation for common raster image formats, using Apache PDFBox. The only supported conversion parameter is TARGET_PAGE_FORMAT, and it means 'get the page format from the size of the source image'. The default is AUTO.

    An image file that holds more than one image - the pages of a TIFF, the frames of an animated GIF - is converted to one PDF page per image.

    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • Image2PdfConverter

        public Image2PdfConverter()
    • Method Detail

      • convert

        public void convert​(InputStream is,
                            OutputStream os,
                            PdfConversionParams conversionParams)
        Specified by:
        convert in interface IPdfConverter
        Parameters:
        is - the input stream providing the source data
        os - the output stream for the resulting PDF data
        conversionParams - parameters for the conversion