public class JRPdfExporter extends JRAbstractExporter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JRPdfExporter.Bookmark |
protected static class |
JRPdfExporter.BookmarkStack |
protected class |
JRPdfExporter.ExporterContext |
static class |
JRPdfExporter.NullOutputStream
Output stream implementation that discards all the data.
|
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver| Modifier and Type | Field and Description |
|---|---|
protected com.lowagie.text.Document |
document |
protected JRPdfExporterContext |
exporterContext |
protected static boolean |
fontsRegistered |
protected boolean |
forceSvgShapes |
protected com.lowagie.text.Document |
imageTesterDocument |
protected com.lowagie.text.pdf.PdfContentByte |
imageTesterPdfContentByte |
protected boolean |
is128BitKey |
protected boolean |
isCompressed |
protected boolean |
isCreatingBatchModeBookmarks |
protected boolean |
isEncrypted |
protected static String |
JR_PAGE_ANCHOR_PREFIX |
protected Map<Renderable,com.lowagie.text.Image> |
loadedImagesMap |
protected String |
ownerPassword |
static String |
PDF_EXPORTER_KEY
The exporter key, as used in
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String). |
static String |
PDF_EXPORTER_PROPERTIES_PREFIX |
static String |
PDF_FONT_DIRS_PREFIX
Prefix of properties that specify font directories for the PDF exporter.
|
static String |
PDF_FONT_FILES_PREFIX
Prefix of properties that specify font files for the PDF exporter.
|
protected com.lowagie.text.pdf.PdfContentByte |
pdfContentByte |
protected String |
pdfJavaScript |
protected Character |
pdfVersion |
protected com.lowagie.text.pdf.PdfWriter |
pdfWriter |
protected int |
permissions |
protected String |
printScaling |
protected JRExportProgressMonitor |
progressMonitor |
protected com.lowagie.text.Image |
pxImage |
protected int |
reportIndex |
protected JRPdfExporterTagHelper |
tagHelper |
protected String |
userPassword |
allSelector, dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, styledTextUtil| Constructor and Description |
|---|
JRPdfExporter() |
JRPdfExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBookmark(int level,
String title,
int x,
int y) |
protected void |
exportBottomPen(JRPen leftPen,
JRPen bottomPen,
JRPen rightPen,
JRPrintElement element) |
protected void |
exportBox(JRLineBox box,
JRPrintElement element) |
protected void |
exportElements(Collection<JRPrintElement> elements) |
protected void |
exportEllipse(JRPrintEllipse ellipse) |
protected void |
exportFrame(JRPrintFrame frame) |
protected void |
exportGenericElement(JRGenericPrintElement element) |
void |
exportImage(JRPrintImage printImage) |
protected void |
exportLeftPen(JRPen topPen,
JRPen leftPen,
JRPen bottomPen,
JRPrintElement element) |
protected void |
exportLine(JRPrintLine line) |
protected void |
exportPage(JRPrintPage page) |
protected void |
exportPen(JRPen pen,
JRPrintElement element) |
protected void |
exportRectangle(JRPrintRectangle rectangle) |
void |
exportReport()
Actually starts the export process.
|
protected void |
exportReportToStream(OutputStream os) |
protected void |
exportRightPen(JRPen topPen,
JRPen bottomPen,
JRPen rightPen,
JRPrintElement element) |
void |
exportText(JRPrintText text) |
protected void |
exportTopPen(JRPen topPen,
JRPen leftPen,
JRPen rightPen,
JRPrintElement element) |
protected com.lowagie.text.Chunk |
getChunk(Map<AttributedCharacterIterator.Attribute,Object> attributes,
String text,
Locale locale) |
protected String |
getExporterKey() |
protected com.lowagie.text.Font |
getFont(Map<AttributedCharacterIterator.Attribute,Object> attributes,
Locale locale,
boolean setFontLines)
Creates a PDF font.
|
protected com.lowagie.text.Phrase |
getPhrase(AttributedString as,
String text,
JRPrintText textElement) |
protected com.lowagie.text.Image |
getPxImage() |
protected boolean |
hasStrikethrough(Map<AttributedCharacterIterator.Attribute,Object> textAttributes) |
protected boolean |
hasUnderline(Map<AttributedCharacterIterator.Attribute,Object> textAttributes) |
protected void |
initBookmarks() |
protected static void |
registerFonts() |
protected void |
setAnchor(com.lowagie.text.Chunk chunk,
JRPrintAnchor anchor,
JRPrintElement element) |
protected void |
setFontMap() |
protected void |
setHyperlinkInfo(com.lowagie.text.Chunk chunk,
JRPrintHyperlink link) |
protected void |
setPageSize(JRPrintPage page) |
protected void |
setSplitCharacter() |
protected void |
writePageAnchor(int pageIndex) |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getPropertiesUtil, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContextpublic static final String PDF_EXPORTER_PROPERTIES_PREFIX
public static final String PDF_FONT_FILES_PREFIX
public static final String PDF_FONT_DIRS_PREFIX
public static final String PDF_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).protected static final String JR_PAGE_ANCHOR_PREFIX
protected static boolean fontsRegistered
protected com.lowagie.text.Document document
protected com.lowagie.text.pdf.PdfContentByte pdfContentByte
protected com.lowagie.text.pdf.PdfWriter pdfWriter
protected com.lowagie.text.Document imageTesterDocument
protected com.lowagie.text.pdf.PdfContentByte imageTesterPdfContentByte
protected JRPdfExporterTagHelper tagHelper
protected JRExportProgressMonitor progressMonitor
protected int reportIndex
protected boolean forceSvgShapes
protected boolean isCreatingBatchModeBookmarks
protected boolean isCompressed
protected boolean isEncrypted
protected boolean is128BitKey
protected String userPassword
protected String ownerPassword
protected int permissions
protected Character pdfVersion
protected String pdfJavaScript
protected String printScaling
protected Map<Renderable,com.lowagie.text.Image> loadedImagesMap
protected com.lowagie.text.Image pxImage
protected JRPdfExporterContext exporterContext
public JRPdfExporter()
JRPdfExporter(JasperReportsContext)public JRPdfExporter(JasperReportsContext jasperReportsContext)
protected com.lowagie.text.Image getPxImage()
public void exportReport()
throws JRException
JRExporterexportReport in interface JRExporterexportReport in class JRAbstractExporterJRExceptionprotected void setFontMap()
setFontMap in class JRAbstractExporterprotected void setSplitCharacter()
protected void exportReportToStream(OutputStream os) throws JRException
JRExceptionprotected void writePageAnchor(int pageIndex)
throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionprotected void setPageSize(JRPrintPage page) throws JRException, com.lowagie.text.DocumentException, IOException
JRExceptioncom.lowagie.text.DocumentExceptionIOExceptionprotected void exportPage(JRPrintPage page) throws JRException, com.lowagie.text.DocumentException, IOException
JRExceptioncom.lowagie.text.DocumentExceptionIOExceptionprotected void exportElements(Collection<JRPrintElement> elements) throws com.lowagie.text.DocumentException, IOException, JRException
com.lowagie.text.DocumentExceptionIOExceptionJRExceptionprotected void exportLine(JRPrintLine line)
protected void exportRectangle(JRPrintRectangle rectangle)
protected void exportEllipse(JRPrintEllipse ellipse)
public void exportImage(JRPrintImage printImage) throws com.lowagie.text.DocumentException, IOException, JRException
com.lowagie.text.DocumentExceptionIOExceptionJRExceptionprotected void setHyperlinkInfo(com.lowagie.text.Chunk chunk,
JRPrintHyperlink link)
protected com.lowagie.text.Phrase getPhrase(AttributedString as, String text, JRPrintText textElement)
protected com.lowagie.text.Chunk getChunk(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale)
protected boolean hasUnderline(Map<AttributedCharacterIterator.Attribute,Object> textAttributes)
protected boolean hasStrikethrough(Map<AttributedCharacterIterator.Attribute,Object> textAttributes)
protected com.lowagie.text.Font getFont(Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale, boolean setFontLines)
attributes - the text attributes of the fontlocale - the locale for which to create the fontsetFontLines - whether to set underline and strikethrough as font stylepublic void exportText(JRPrintText text) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionprotected void exportBox(JRLineBox box, JRPrintElement element)
protected void exportPen(JRPen pen, JRPrintElement element)
protected void exportTopPen(JRPen topPen, JRPen leftPen, JRPen rightPen, JRPrintElement element)
protected void exportLeftPen(JRPen topPen, JRPen leftPen, JRPen bottomPen, JRPrintElement element)
protected void exportBottomPen(JRPen leftPen, JRPen bottomPen, JRPen rightPen, JRPrintElement element)
protected void exportRightPen(JRPen topPen, JRPen bottomPen, JRPen rightPen, JRPrintElement element)
protected static void registerFonts()
protected void initBookmarks()
protected void addBookmark(int level,
String title,
int x,
int y)
protected void setAnchor(com.lowagie.text.Chunk chunk,
JRPrintAnchor anchor,
JRPrintElement element)
protected void exportFrame(JRPrintFrame frame) throws com.lowagie.text.DocumentException, IOException, JRException
com.lowagie.text.DocumentExceptionIOExceptionJRExceptionprotected void exportGenericElement(JRGenericPrintElement element)
protected String getExporterKey()
getExporterKey in class JRAbstractExporterCopyright © 2012. All Rights Reserved.