Example usage for com.itextpdf.text BaseColor WHITE

List of usage examples for com.itextpdf.text BaseColor WHITE

Introduction

In this page you can find the example usage for com.itextpdf.text BaseColor WHITE.

Prototype

BaseColor WHITE

To view the source code for com.itextpdf.text BaseColor WHITE.

Click Source Link

Usage

From source file:utils.pdf.cv_templates.Template1.java

private void addImageEmail() throws DocumentException, IOException {
    Image email_img;/*w w  w.j av  a 2 s .co  m*/
    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);
    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;/*from  w  w w  . jav  a 2s .c  om*/
    address_img = Image
            .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;//from  w w  w.j ava  2  s. c  o  m
    line_img = Image
            .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;//from w  ww . j a  v  a  2  s .  com
    line_img = Image
            .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;//from w  w w.j a  v a 2  s .  c om
    line_img = Image
            .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;/*w ww.j  a  v  a  2s.  co m*/
    line_img = Image
            .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;/*from  w  ww . j  av a 2 s.c o  m*/
    line_img = Image
            .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;/*www  .j  a  v  a 2 s. c  o m*/
    line_img = Image
            .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);
}

From source file:utils.pdf.cv_templates.Template3.java

private void addLineImage() throws DocumentException, IOException {
    Image short_line_img = Image.getInstance(SHORT_LINE_IMAGE);
    short_line_img.setAbsolutePosition(213, 756);
    short_line_img.setAlignment(Image.MIDDLE | Image.TEXTWRAP);
    short_line_img.setBorderWidth(10);
    short_line_img.setBorderColor(BaseColor.WHITE);
    short_line_img.scaleToFit(300, 55);
    document.add(short_line_img);
}

From source file:utils.pdf.cv_templates.Template3.java

private void addPersonalInformation(User user) throws DocumentException, IOException {
    Paragraph paragraph;// w  ww .  j  a  v a2 s  .  c  om
    PdfPCell cell;
    PdfPTable table;
    Image photo_img;
    if (!user.photo.id.equals("")) {
        photo_img = Image
                .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"));
    }

    table = new PdfPTable(new float[] { 3, 7 });
    table.setWidthPercentage(100);

    //First column
    cell = new PdfPCell();
    cell.setBorder(PdfPCell.NO_BORDER);
    cell.setPaddingRight(15);
    cell.setPaddingLeft(50);
    cell.setPaddingTop(30);

    photo_img.setBorder(Image.BOX);
    photo_img.setBorderColor(BaseColor.WHITE);
    photo_img.scaleToFit(1000, 115);

    cell.addElement(photo_img);
    table.addCell(cell);

    //Second column
    cell = new PdfPCell();
    cell.setPaddingLeft(55);
    cell.setPaddingTop(19);
    cell.setBorder(PdfPCell.NO_BORDER);

    paragraph = new Paragraph("Datos Personales", font1);
    paragraph.setAlignment(paragraph.ALIGN_LEFT);
    cell.addElement(paragraph);

    paragraph = new Paragraph(user.name + " " + user.surnames, font2);
    paragraph.setAlignment(paragraph.ALIGN_LEFT);
    paragraph.setSpacingBefore(8);
    cell.addElement(paragraph);

    paragraph = new Paragraph(user.birthDate, font3);
    paragraph.setAlignment(paragraph.ALIGN_LEFT);
    cell.addElement(paragraph);

    paragraph = new Paragraph("Calle " + user.residenceAddress + ", N " + user.residenceNumber + ", Ciudad "
            + user.residenceCity, font3);
    paragraph.setAlignment(paragraph.ALIGN_LEFT);
    cell.addElement(paragraph);

    paragraph = new Paragraph("Telfono: " + user.phoneNumber, font3);
    paragraph.setAlignment(paragraph.ALIGN_LEFT);
    cell.addElement(paragraph);

    paragraph = new Paragraph(user.email, font3);
    paragraph.setAlignment(paragraph.ALIGN_LEFT);
    cell.addElement(paragraph);

    if (!user.drivingLicense.equals("No tengo carnet")) {
        paragraph = new Paragraph("Permiso de conducir: " + user.drivingLicense, font3);
        paragraph.setAlignment(paragraph.ALIGN_LEFT);
        paragraph.setSpacingBefore(10);
        cell.addElement(paragraph);
    }

    table.addCell(cell);
    document.add(table);
}