List of usage examples for com.lowagie.text.pdf PdfName FIGURE
PdfName FIGURE
To view the source code for com.lowagie.text.pdf PdfName FIGURE.
Click Source Link
From source file:net.sf.jasperreports.engine.export.JRPdfExporterTagHelper.java
License:Open Source License
/** * */// w ww .ja v a 2 s .c om protected void init(PdfContentByte pdfContentByte) { this.pdfContentByte = pdfContentByte; if (isTagged) { PdfStructureTreeRoot root = pdfWriter.getStructureTreeRoot(); allTag = new PdfStructureElement(root, new PdfName("All")); root.mapRole(new PdfName("All"), new PdfName("Sect")); if (pdfWriter.getPDFXConformance() == PdfWriter.PDFA1A) { root.mapRole(new PdfName("Anchor"), PdfName.NONSTRUCT); root.mapRole(PdfName.TEXT, PdfName.SPAN); root.mapRole(PdfName.IMAGE, PdfName.FIGURE); } else { root.mapRole(new PdfName("Anchor"), PdfName.TEXT); } if (language != null) { allTag.put(PdfName.LANG, new PdfString(language)); } tagStack = new Stack<PdfStructureElement>(); tagStack.push(allTag); } }