I am working with Itext 5.0 for JAVA (use Idea), but I can not find information on how to add images in the header (as if it were a letterhead). The only thing I can do is declare the absolute position of the image with Imagen.setAbsolutePosition()
indicating the highest position for the x
, y
0 for the y axis, but I see that it still leaves space between the top of the pages and the image (which, being a header does not make much sense). I have the upper and lower margins declared at 0 with documento.setMargins(0, 0, 0, 0);
.
My question is how to add the image in the right place.
Very grateful in advance.