List of usage examples for com.itextpdf.text Chunk setUnderline
public Chunk setUnderline(final BaseColor color, final float thickness, final float thicknessMul, final float yPosition, final float yPositionMul, final int cap)
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; }