Show image with itextpdf

1

I have an image in the following path of my project \ web \ resource \ img \ header2.jpg, I am using the library itextpdf I need to show the image in the PDF that is created and tried to declare it in different ways but it does not work find.

And tried like this:

Image firma = Image.getInstance("firma.JPG");
Image firma = Image.getInstance(\resource\img\encabezado2.jpg)
Image firma = Image.getInstance(\encabezado2.jpg)

Does anyone know how to do it and how to put a footer?

    
asked by Jeferson Martinez 13.12.2017 в 23:19
source

0 answers