itext pdf image is not showing

867 views Asked by At

I use itextpdf version 5.5.5 and I want to show image on the pdf. The API I use is com.itextpdf.text.Image and the input for constructor is an InputStream

Image image = Image.getInstance(IOUtils.toByteArray(inputstream));

The problem is that the image doesn't diplay but I still can read the attributes of the image like width and height and others ...

Those attributes are correctly displayed.

Any advise for this issue really appreciated.

0

There are 0 answers