Class LosslessFactory


  • public final class LosslessFactory
    extends Object
    Factory for creating a PDImageXObject containing a lossless compressed image.
    • Method Detail

      • createFromImage

        public static PDImageXObject createFromImage​(PDDocument document,
                                                     android.graphics.Bitmap image)
                                              throws IOException
        Creates a new lossless encoded Image XObject from a Buffered Image.
        Parameters:
        document - the document where the image will be created
        image - the buffered image to embed
        Returns:
        a new Image XObject
        Throws:
        IOException - if something goes wrong