There is no API that takes BufferedImage directly right

  1. Even in Aspose Imaging, there is no API that takes BufferedImage directly right? It takes an input
    stream or RasterImage ?PngImage pngImage = new PngImage(is); //Takes only InputStream or File or RasterImage.
    PdfOptions exportOptions = new PdfOptions();
    exportOptions.setPdfDocumentInfo(new PdfDocumentInfo());
    pngImage.save(“C:/temp/converted.pdf”,exportOptions);

This Topic is created by asad.ali using Email to Topic tool.

Hello, @sushma1509 !
Thank you for your interest in Aspose.Imaging.
Please, pay attention to the class com.aspose.imaging.extensions.ImageExtensions.
It contains a few methods for converting BufferImage into PngImage.