Example usage for com.lowagie.text.pdf PdfName ACTUALTEXT

List of usage examples for com.lowagie.text.pdf PdfName ACTUALTEXT

Introduction

In this page you can find the example usage for com.lowagie.text.pdf PdfName ACTUALTEXT.

Prototype

PdfName ACTUALTEXT

To view the source code for com.lowagie.text.pdf PdfName ACTUALTEXT.

Click Source Link

Document

a name used in PDF structure

Usage

From source file:net.sf.jasperreports.engine.export.PdfGlyphRenderer.java

License:Open Source License

@Override
public void draw() {
    if (addActualText) {
        PdfDictionary markedContentProps = new PdfDictionary();
        markedContentProps.put(PdfName.ACTUALTEXT, new PdfString(allText, PdfObject.TEXT_UNICODE));
        pdfContentByte.beginMarkedContentSequence(PdfName.SPAN, markedContentProps, true);
    }/*from w  w w  .ja  v a 2 s .  co  m*/

    TabSegment segment = segments.get(segmentIndex);
    segment.layout.draw(pdfGraphics2D, x + drawPosX, // + leftPadding,
            y + topPadding + verticalAlignOffset + drawPosY);

    if (addActualText) {
        pdfContentByte.endMarkedContentSequence();
    }

    return;
}