Interface IImageMapper<R>

  • Type Parameters:
    R - Type of the mapped value.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IImageMapper<R>
    Processes the raw image of a PDF page into the desired format, e.g. a PNG image or base64 data URL etc.
    Since:
    7.2.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • convert

        R convert​(int zeroBasedPageIndex,
                  BufferedImage image)
           throws IOException
        Parameters:
        zeroBasedPageIndex - 0-based index of the page number.
        image - Image of a PDF page.
        Returns:
        The converted image.
        Throws:
        IOException - When the image could not be processed or converted.