|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.JRAbstractExporter net.sf.jasperreports.engine.export.JRPdfExporter
public class JRPdfExporter
Exports a JasperReports document to PDF format. It has binary output type and exports the document to a free-form layout.
Nested Class Summary | |
---|---|
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. |
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
---|
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver |
Field Summary | |
---|---|
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 java.lang.String |
JR_PAGE_ANCHOR_PREFIX
|
protected java.util.Map<Renderable,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
|
static java.lang.String |
PDF_FONT_DIRS_PREFIX
Prefix of properties that specify font directories for the PDF exporter. |
static java.lang.String |
PDF_FONT_FILES_PREFIX
Prefix of properties that specify font files for the PDF exporter. |
protected com.lowagie.text.pdf.PdfContentByte |
pdfContentByte
|
protected java.lang.String |
pdfJavaScript
|
protected java.lang.Character |
pdfVersion
|
protected com.lowagie.text.pdf.PdfWriter |
pdfWriter
|
protected int |
permissions
|
protected java.lang.String |
printScaling
|
protected JRExportProgressMonitor |
progressMonitor
|
protected com.lowagie.text.Image |
pxImage
|
protected int |
reportIndex
|
protected JRPdfExporterTagHelper |
tagHelper
|
protected java.lang.String |
userPassword
|
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
---|
dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, numberFormatCache, parameters, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex |
Constructor Summary | |
---|---|
JRPdfExporter()
|
|
JRPdfExporter(JasperReportsContext jasperReportsContext)
|
Method Summary | |
---|---|
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 com.lowagie.text.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 com.lowagie.text.Font |
getFont(java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes,
java.util.Locale locale,
boolean setFontLines)
Creates a PDF font. |
protected com.lowagie.text.Phrase |
getPhrase(java.text.AttributedString as,
java.lang.String text,
JRPrintText textElement)
|
protected com.lowagie.text.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(com.lowagie.text.Chunk chunk,
JRPrintAnchor anchor,
JRPrintElement element)
|
protected void |
setFontMap()
|
protected void |
setHyperlinkInfo(com.lowagie.text.Chunk chunk,
JRPrintHyperlink link)
|
protected void |
setSplitCharacter()
|
protected void |
writePageAnchor(int pageIndex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PDF_EXPORTER_PROPERTIES_PREFIX
public static final java.lang.String PDF_FONT_FILES_PREFIX
public static final java.lang.String PDF_FONT_DIRS_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 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 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<Renderable,com.lowagie.text.Image> loadedImagesMap
protected com.lowagie.text.Image pxImage
protected JRPdfExporterContext exporterContext
Constructor Detail |
---|
public JRPdfExporter()
JRPdfExporter(JasperReportsContext)
public JRPdfExporter(JasperReportsContext jasperReportsContext)
Method Detail |
---|
protected com.lowagie.text.Image getPxImage()
public void exportReport() throws JRException
JRExporter
exportReport
in interface JRExporter
exportReport
in class JRAbstractExporter
JRException
protected void setFontMap()
setFontMap
in class JRAbstractExporter
protected void setSplitCharacter()
protected void exportReportToStream(java.io.OutputStream os) throws JRException
JRException
protected void writePageAnchor(int pageIndex) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
protected void exportPage(JRPrintPage page) throws JRException, com.lowagie.text.DocumentException, java.io.IOException
JRException
com.lowagie.text.DocumentException
java.io.IOException
protected void exportElements(java.util.Collection<JRPrintElement> elements) throws com.lowagie.text.DocumentException, java.io.IOException, JRException
com.lowagie.text.DocumentException
java.io.IOException
JRException
protected void exportLine(JRPrintLine line)
protected void exportRectangle(JRPrintRectangle rectangle)
protected void exportEllipse(JRPrintEllipse ellipse)
public void exportImage(JRPrintImage printImage) throws com.lowagie.text.DocumentException, java.io.IOException, JRException
com.lowagie.text.DocumentException
java.io.IOException
JRException
protected void setHyperlinkInfo(com.lowagie.text.Chunk chunk, JRPrintHyperlink link)
protected com.lowagie.text.Phrase getPhrase(java.text.AttributedString as, java.lang.String text, JRPrintText textElement)
protected com.lowagie.text.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 com.lowagie.text.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 style
public void exportText(JRPrintText text) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
protected 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(com.lowagie.text.Chunk chunk, JRPrintAnchor anchor, JRPrintElement element)
protected void exportFrame(JRPrintFrame frame) throws com.lowagie.text.DocumentException, java.io.IOException, JRException
com.lowagie.text.DocumentException
java.io.IOException
JRException
protected void exportGenericElement(JRGenericPrintElement element)
protected java.lang.String getExporterKey()
getExporterKey
in class JRAbstractExporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |