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

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

Introduction

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

Prototype

PdfName ALT

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

Click Source Link

Document

A name

Usage

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

License:Open Source License

protected void startImage(JRPrintImage printImage) {
    if (isTagged) {
        PdfStructureElement imageTag = new PdfStructureElement(allTag, PdfName.IMAGE);
        pdfContentByte.beginMarkedContentSequence(imageTag);
        if (printImage.getHyperlinkTooltip() != null) {
            imageTag.put(PdfName.ALT, new PdfString(printImage.getHyperlinkTooltip()));
        }//  ww  w  .  j  a  va  2s. co  m
    }
}