Interface IPdfBoxGraphics2DImageEncoder

    • Method Detail

      • encodeImage

        org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject encodeImage​(org.apache.pdfbox.pdmodel.PDDocument document,
                                                                            org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
                                                                            java.awt.Image image,
                                                                            IPdfBoxGraphics2DImageEncoder.IPdfBoxGraphics2DImageEncoderEnv env)
        Encode the given image into the a PDImageXObject
        Parameters:
        document - the PDF document
        contentStream - the content stream of the page
        image - the image to encode
        Returns:
        the encoded image