I\'m using iText to generate a PDF. I created a custom PdfPageEventHelper to add a header (and footer) to each page.
My problem is I don\'t know how to add the imag
Can you try
img.setAbsolutePosition(10, 10); writer.getDirectContent().addImage(img);
instead of
document.add(img);
inside onPageEnd?
onPageEnd