I have a block code below:
URL logoUrl1 = logoUrl1 = getClass().getResource("/templates/logo.png");
The itextpdf can get the image and