public class JRPptxExporter extends JRAbstractExporter<PptxReportConfiguration,PptxExporterConfiguration,OutputStreamExporterOutput,JRPptxExporterContext>
PptxReportConfiguration)
to configure its behavior: one can ignore hyperlinks in generated documents if they are
not intended for the PPTX output format. This can be customized using either the
isIgnoreHyperlink()
exporter configuration flag, or its corresponding exporter hint called
net.sf.jasperreports.export.pptx.ignore.hyperlink.
It supports font mappings, batch mode exporting, and filtering
out content using exporter filters.
Documents produced using this exporter can be generated in the great majority of the
samples shipped with the JasperReports project source files, where the pptx Ant task is
defined.PptxReportConfiguration| Modifier and Type | Class and Description |
|---|---|
protected class |
JRPptxExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRangeallSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_MIXED_CALLS_NOT_ALLOWED, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, fontUtil, hyperlinkProducerFactory, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses| Constructor and Description |
|---|
JRPptxExporter() |
JRPptxExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeSlide() |
protected void |
closeSlideMaster() |
protected void |
createSlide(boolean hideSlideMaster) |
protected void |
createSlideMaster() |
protected void |
ensureOutput() |
protected void |
exportElement(JRPrintElement element) |
protected void |
exportEllipse(JRPrintEllipse ellipse) |
void |
exportFrame(JRPrintFrame frame) |
protected void |
exportGenericElement(JRGenericPrintElement element) |
void |
exportImage(JRPrintImage image) |
protected void |
exportLine(JRPrintLine line) |
protected void |
exportPage(JRPrintPage page,
boolean isBackgroundAsSlideMaster,
boolean hasToSlideMasterElements) |
protected boolean |
exportPageToSlideMaster(JRPrintPage page,
boolean isBackgroundAsSlideMaster) |
protected void |
exportPen(JRLineBox lineBox) |
protected void |
exportPen(JRPen pen) |
protected void |
exportRectangle(JRPrintElement rectangle,
JRPen pen,
int radius) |
protected void |
exportRectangle(JRPrintRectangle rectangle) |
void |
exportReport()
Performs the export.
|
protected void |
exportReportToStream(OutputStream os) |
protected void |
exportStyledText(JRStyle style,
JRStyledText styledText,
Locale locale,
String fieldType,
String uuid) |
void |
exportText(JRPrintText text) |
protected Class<PptxExporterConfiguration> |
getConfigurationInterface() |
protected JRPrintElementIndex |
getElementIndex() |
String |
getExporterKey() |
String |
getExporterPropertiesPrefix()
Returns the properties prefix for the current exporter.
|
protected String |
getHyperlinkTarget(JRPrintHyperlink link) |
protected String |
getHyperlinkURL(JRPrintHyperlink link) |
protected Class<PptxReportConfiguration> |
getItemConfigurationInterface() |
protected JRPen |
getPptxPen(JRLineBox box) |
static JRPrintElementIndex |
getPrintElementIndex(String imageName) |
protected JRStyledText |
getStyledText(JRPrintText textElement,
boolean setBackcolor) |
protected void |
initExport() |
protected void |
initReport() |
protected String |
toOOXMLId(JRPrintElement element) |
createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getRendererUtil, getReportContext, getRepository, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic static final String PPTX_EXPORTER_KEY
GenericElementHandlerEnviroment.getElementHandler(JRGenericElementType, String).public static final String PPTX_EXPORTER_PROPERTIES_PREFIX
public static final String PROPERTY_TO_SLIDE_MASTER
public static final String PROPERTY_FIELD_TYPE
public static final String FIELD_TYPE_SLIDENUM
public static final String FIELD_TYPE_DATETIME
protected static final String JR_PAGE_ANCHOR_PREFIX
public static final String IMAGE_NAME_PREFIX
protected static final int IMAGE_NAME_PREFIX_LEGTH
protected PptxZip pptxZip
protected PptxFontHelper fontHelper
protected PptxPresentationHelper presentationHelper
protected PptxPresentationRelsHelper presentationRelsHelper
protected PptxContentTypesHelper ctHelper
protected PropsAppHelper appHelper
protected PropsCoreHelper coreHelper
protected PptxSlideHelper slideHelper
protected PptxSlideRelsHelper slideRelsHelper
protected Writer presentationWriter
protected Writer presentationRelsWriter
protected RenderersCache renderersCache
protected int reportIndex
protected int pageIndex
protected int elementIndex
protected boolean startPage
protected String invalidCharReplacement
protected int slideIndex
public JRPptxExporter()
JRPptxExporter(JasperReportsContext)public JRPptxExporter(JasperReportsContext jasperReportsContext)
protected Class<PptxExporterConfiguration> getConfigurationInterface()
protected Class<PptxReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public void exportReport()
throws JRException
ExporterexportReport in interface Exporter<ExporterInput,PptxReportConfiguration,PptxExporterConfiguration,OutputStreamExporterOutput>exportReport in class JRAbstractExporter<PptxReportConfiguration,PptxExporterConfiguration,OutputStreamExporterOutput,JRPptxExporterContext>JRExceptionprotected void initExport()
protected void initReport()
protected void exportReportToStream(OutputStream os) throws JRException, IOException
JRExceptionIOExceptionprotected boolean exportPageToSlideMaster(JRPrintPage page, boolean isBackgroundAsSlideMaster) throws JRException
JRExceptionprotected void exportPage(JRPrintPage page, boolean isBackgroundAsSlideMaster, boolean hasToSlideMasterElements) throws JRException
JRExceptionprotected void createSlideMaster()
protected void createSlide(boolean hideSlideMaster)
protected void closeSlideMaster()
protected void closeSlide()
protected void exportElement(JRPrintElement element) throws JRException
JRExceptionprotected void exportLine(JRPrintLine line)
protected void exportPen(JRPen pen)
protected void exportRectangle(JRPrintRectangle rectangle)
protected void exportRectangle(JRPrintElement rectangle, JRPen pen, int radius)
protected void exportEllipse(JRPrintEllipse ellipse)
public void exportText(JRPrintText text)
protected void exportPen(JRLineBox lineBox)
protected void exportStyledText(JRStyle style, JRStyledText styledText, Locale locale, String fieldType, String uuid)
public void exportImage(JRPrintImage image) throws JRException
JRExceptionprotected JRPrintElementIndex getElementIndex()
public static JRPrintElementIndex getPrintElementIndex(String imageName)
public void exportFrame(JRPrintFrame frame) throws JRException
JRExceptionprotected void exportGenericElement(JRGenericPrintElement element)
protected String getHyperlinkTarget(JRPrintHyperlink link)
protected String getHyperlinkURL(JRPrintHyperlink link)
protected JRStyledText getStyledText(JRPrintText textElement, boolean setBackcolor)
public String getExporterKey()
public String getExporterPropertiesPrefix()
JRAbstractExportergetExporterPropertiesPrefix in class JRAbstractExporter<PptxReportConfiguration,PptxExporterConfiguration,OutputStreamExporterOutput,JRPptxExporterContext>protected String toOOXMLId(JRPrintElement element)
Copyright © 2020 TIBCO Software Inc.. All rights reserved.