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 Document |
document |
protected JRPdfExporterContext |
exporterContext |
protected static boolean |
fontsRegistered |
protected boolean |
forceSvgShapes |
protected Document |
imageTesterDocument |
protected PdfContentByte |
imageTesterPdfContentByte |
protected boolean |
is128BitKey |
protected boolean |
isCompressed |
protected boolean |
isCreatingBatchModeBookmarks |
protected boolean |
isEncrypted |
protected static java.lang.String |
JR_PAGE_ANCHOR_PREFIX |
protected java.util.Map<JRRenderable,com.lowagie.text.Image> |
loadedImagesMap |
protected java.lang.String |
ownerPassword |
static java.lang.String |
PDF_EXPORTER_KEY
The exporter key, as used in
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String). |
static java.lang.String |
PDF_EXPORTER_PROPERTIES_PREFIX |
protected PdfContentByte |
pdfContentByte |
protected java.lang.String |
pdfJavaScript |
protected java.lang.Character |
pdfVersion |
protected PdfWriter |
pdfWriter |
protected int |
permissions |
protected java.lang.String |
printScaling |
protected JRExportProgressMonitor |
progressMonitor |
protected Image |
pxImage |
protected int |
reportIndex |
protected JRPdfExporterTagHelper |
tagHelper |
protected java.lang.String |
userPassword |
dateFormatCache, endPageIndex, filter, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, numberFormatCache, parameters, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex| Constructor and Description |
|---|
JRPdfExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBookmark(int level,
java.lang.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(java.util.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(java.io.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 Chunk |
getChunk(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes,
java.lang.String text,
java.util.Locale locale) |
protected java.lang.String |
getExporterKey() |
protected Font |
getFont(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes,
java.util.Locale locale,
boolean setFontLines)
Creates a PDF font.
|
protected Phrase |
getPhrase(java.text.AttributedString as,
java.lang.String text,
JRPrintText textElement) |
protected Image |
getPxImage() |
protected boolean |
hasStrikethrough(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> textAttributes) |
protected boolean |
hasUnderline(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> textAttributes) |
protected void |
initBookmarks() |
protected static void |
registerFonts() |
protected void |
setAnchor(Chunk chunk,
JRPrintAnchor anchor,
JRPrintElement element) |
protected void |
setHyperlinkInfo(Chunk chunk,
JRPrintHyperlink link) |
protected void |
writePageAnchor(int pageIndex) |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContextpublic static final java.lang.String PDF_EXPORTER_PROPERTIES_PREFIX
public static final java.lang.String PDF_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).protected static final java.lang.String JR_PAGE_ANCHOR_PREFIX
protected static boolean fontsRegistered
protected Document document
protected PdfContentByte pdfContentByte
protected PdfWriter pdfWriter
protected Document imageTesterDocument
protected 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 java.lang.String userPassword
protected java.lang.String ownerPassword
protected int permissions
protected java.lang.Character pdfVersion
protected java.lang.String pdfJavaScript
protected java.lang.String printScaling
protected java.util.Map<JRRenderable,com.lowagie.text.Image> loadedImagesMap
protected Image pxImage
protected JRPdfExporterContext exporterContext
protected Image getPxImage()
public void exportReport()
throws JRException
JRExporterexportReport in interface JRExporterexportReport in class JRAbstractExporterJRExceptionprotected void exportReportToStream(java.io.OutputStream os)
throws JRException
JRExceptionprotected void writePageAnchor(int pageIndex)
throws DocumentException
DocumentExceptionprotected void exportPage(JRPrintPage page) throws JRException, DocumentException, java.io.IOException
JRExceptionDocumentExceptionjava.io.IOExceptionprotected void exportElements(java.util.Collection<JRPrintElement> elements) throws DocumentException, java.io.IOException, JRException
DocumentExceptionjava.io.IOExceptionJRExceptionprotected void exportLine(JRPrintLine line)
protected void exportRectangle(JRPrintRectangle rectangle)
protected void exportEllipse(JRPrintEllipse ellipse)
public void exportImage(JRPrintImage printImage) throws DocumentException, java.io.IOException, JRException
DocumentExceptionjava.io.IOExceptionJRExceptionprotected void setHyperlinkInfo(Chunk chunk,
JRPrintHyperlink link)
protected Phrase getPhrase(java.text.AttributedString as,
java.lang.String text,
JRPrintText textElement)
protected Chunk getChunk(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes,
java.lang.String text,
java.util.Locale locale)
protected boolean hasUnderline(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> textAttributes)
protected boolean hasStrikethrough(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> textAttributes)
protected Font getFont(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes,
java.util.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 DocumentException
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,
java.lang.String title,
int x,
int y)
protected void setAnchor(Chunk chunk,
JRPrintAnchor anchor,
JRPrintElement element)
protected void exportFrame(JRPrintFrame frame) throws DocumentException, java.io.IOException, JRException
DocumentExceptionjava.io.IOExceptionJRExceptionprotected void exportGenericElement(JRGenericPrintElement element)
protected java.lang.String getExporterKey()
getExporterKey in class JRAbstractExporter© 2001-2010 Jaspersoft Corporation www.jaspersoft.com