List of usage examples for com.itextpdf.text Image setAbsolutePosition
public void setAbsolutePosition(final float absoluteX, final float absoluteY)
Image
. From source file:utils.pdf.cv_templates.Template1.java
private void addImage(User user) throws DocumentException, IOException { Image photo_img; if (!user.photo.id.equals("")) { photo_img = Image/*from ww w . ja va2s .com*/ .getInstance(String.format("https://s3.amazonaws.com/aunclickdelempleo2/" + user.photo.id)); } else { photo_img = Image.getInstance(String.format("public/images/orientation/photo/ic_profile.png")); } photo_img.setAbsolutePosition(40, 670); photo_img.setAlignment(Image.LEFT | Image.TEXTWRAP); photo_img.setBorder(Image.BOX); photo_img.setBorderWidth(10); photo_img.setBorderColor(BaseColor.WHITE); photo_img.scaleToFit(1000, 130); document.add(photo_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageTelephone() throws DocumentException, IOException { Image phone_img; phone_img = Image.getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_mobile.png")); phone_img.setAbsolutePosition(175, 708); phone_img.setAlignment(Image.LEFT | Image.TEXTWRAP); phone_img.setBorder(Image.BOX); phone_img.setBorderWidth(10);//from ww w. j a v a2s . co m phone_img.setBorderColor(BaseColor.WHITE); phone_img.scaleToFit(1000, 18); document.add(phone_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageEmail() throws DocumentException, IOException { Image email_img; email_img = Image.getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_mail.png")); email_img.setAbsolutePosition(173, 690); email_img.setAlignment(Image.LEFT | Image.TEXTWRAP); email_img.setBorder(Image.BOX); email_img.setBorderWidth(10);/* ww w. j a v a 2 s. c o m*/ email_img.setBorderColor(BaseColor.WHITE); email_img.scaleToFit(1000, 11); document.add(email_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageAddress() throws DocumentException, IOException { Image address_img; address_img = Image/*from ww w .j a v a 2s.co m*/ .getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_location.png")); address_img.setAbsolutePosition(173, 730); address_img.setAlignment(Image.LEFT | Image.TEXTWRAP); address_img.setBorder(Image.BOX); address_img.setBorderWidth(10); address_img.setBorderColor(BaseColor.WHITE); address_img.scaleToFit(1000, 18); document.add(address_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageLine() throws DocumentException, IOException { Image line_img; line_img = Image//from ww w.j a va 2 s . c o m .getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_barra_lineas3.png")); line_img.setAbsolutePosition(40, 50); line_img.setAlignment(Image.LEFT | Image.TEXTWRAP); line_img.setBorder(Image.BOX); line_img.setBorderWidth(10); line_img.setBorderColor(BaseColor.WHITE); line_img.scaleToFit(1000, 100); document.add(line_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageLine1() throws DocumentException, IOException { Image line_img; line_img = Image//w ww. j av a 2 s . c o m .getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_barra_lineas3.png")); line_img.setAbsolutePosition(40, 150); line_img.setAlignment(Image.LEFT | Image.TEXTWRAP); line_img.setBorder(Image.BOX); line_img.setBorderWidth(10); line_img.setBorderColor(BaseColor.WHITE); line_img.scaleToFit(1000, 100); document.add(line_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageLine2() throws DocumentException, IOException { Image line_img; line_img = Image// w w w. j a v a 2 s . c om .getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_barra_lineas3.png")); line_img.setAbsolutePosition(40, 250); line_img.setAlignment(Image.LEFT | Image.TEXTWRAP); line_img.setBorder(Image.BOX); line_img.setBorderWidth(10); line_img.setBorderColor(BaseColor.WHITE); line_img.scaleToFit(1000, 100); document.add(line_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageLine3() throws DocumentException, IOException { Image line_img; line_img = Image// ww w. j av a 2 s . c o m .getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_barra_lineas3.png")); line_img.setAbsolutePosition(40, 350); line_img.setAlignment(Image.LEFT | Image.TEXTWRAP); line_img.setBorder(Image.BOX); line_img.setBorderWidth(10); line_img.setBorderColor(BaseColor.WHITE); line_img.scaleToFit(1000, 100); document.add(line_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageLine4() throws DocumentException, IOException { Image line_img; line_img = Image/*from w ww. j av a 2 s. c o m*/ .getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_barra_lineas3.png")); line_img.setAbsolutePosition(40, 450); line_img.setAlignment(Image.LEFT | Image.TEXTWRAP); line_img.setBorder(Image.BOX); line_img.setBorderWidth(10); line_img.setBorderColor(BaseColor.WHITE); line_img.scaleToFit(1000, 100); document.add(line_img); }
From source file:utils.pdf.cv_templates.Template1.java
private void addImageLine5() throws DocumentException, IOException { Image line_img; line_img = Image//from w w w . j a v a 2s . c o m .getInstance(String.format("public/images/orientation/cv-templates/CV1/ic_barra_lineas3.png")); line_img.setAbsolutePosition(40, 550); line_img.setAlignment(Image.LEFT | Image.TEXTWRAP); line_img.setBorder(Image.BOX); line_img.setBorderWidth(10); line_img.setBorderColor(BaseColor.WHITE); line_img.scaleToFit(1000, 100); document.add(line_img); }