List of usage examples for com.itextpdf.text Image getScaledHeight
public float getScaledHeight()
From source file:utils.pdf.cv_templates.Template3.java
private void addBackgroundImage() throws DocumentException, IOException { Image back_img = Image.getInstance(BACK_IMAGE); back_img.setAbsolutePosition((PageSize.A4.getWidth() - back_img.getScaledWidth()) / 2, (PageSize.A4.getHeight() - back_img.getScaledHeight()) / 2); document.add(back_img);/*www . j a va 2 s .c o m*/ }