Example usage for com.itextpdf.text Chunk setUnderline

List of usage examples for com.itextpdf.text Chunk setUnderline

Introduction

In this page you can find the example usage for com.itextpdf.text Chunk setUnderline.

Prototype

public Chunk setUnderline(final BaseColor color, final float thickness, final float thicknessMul,
        final float yPosition, final float yPositionMul, final int cap) 

Source Link

Document

Sets an horizontal line that can be an underline or a strikethrough.

Usage

From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java

License:Apache License

private Chunk getChunkTextBoldWithReference(String text, String reference) {
    Chunk chunkText = new Chunk(text, FontFactory.getFont(fontNameStandard, fontSizeText, Font.BOLD));
    // Referenz setzen
    chunkText.setLocalGoto(reference);//  ww  w  .j a  v a2s .  c om
    // Unterstreichen
    chunkText.setUnderline(new BaseColor(0x00, 0x0f, 0xFF), 0.5f, 0.0f, -4f, 0.0f,
            PdfContentByte.LINE_CAP_BUTT);
    return chunkText;
}