Example usage for com.itextpdf.text.pdf PdfContentByte LINE_CAP_BUTT

List of usage examples for com.itextpdf.text.pdf PdfContentByte LINE_CAP_BUTT

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf PdfContentByte LINE_CAP_BUTT.

Prototype

int LINE_CAP_BUTT

To view the source code for com.itextpdf.text.pdf PdfContentByte LINE_CAP_BUTT.

Click Source Link

Document

A possible line cap value

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);//from   w w  w. j  a va2s. c o m
    // Unterstreichen
    chunkText.setUnderline(new BaseColor(0x00, 0x0f, 0xFF), 0.5f, 0.0f, -4f, 0.0f,
            PdfContentByte.LINE_CAP_BUTT);
    return chunkText;
}

From source file:mkl.testarea.itext5.pdfcleanup.PdfCleanUpRegionFilter.java

License:Open Source License

private static EndType getEndType(int lineCapStyle) {
    switch (lineCapStyle) {
    case PdfContentByte.LINE_CAP_BUTT:
        return EndType.OPEN_BUTT;

    case PdfContentByte.LINE_CAP_PROJECTING_SQUARE:
        return EndType.OPEN_SQUARE;
    }//from w  ww.  jav  a  2 s .  c  o m

    return EndType.OPEN_ROUND;
}