Class SimplePdfReportConfiguration
- java.lang.Object
-
- net.sf.jasperreports.export.SimpleCommonExportConfiguration
-
- net.sf.jasperreports.export.SimpleReportExportConfiguration
-
- net.sf.jasperreports.export.SimplePdfReportConfiguration
-
- All Implemented Interfaces:
CommonExportConfiguration,PdfReportConfiguration,ReportExportConfiguration
public class SimplePdfReportConfiguration extends SimpleReportExportConfiguration implements PdfReportConfiguration
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
PROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS
-
Fields inherited from interface net.sf.jasperreports.export.PdfReportConfiguration
PROPERTY_BOOKMARKS_ENABLED, PROPERTY_COLLAPSE_MISSING_BOOKMARK_LEVELS, PROPERTY_EVEN_PAGE_OFFSET_X, PROPERTY_EVEN_PAGE_OFFSET_Y, PROPERTY_FORCE_LINEBREAK_POLICY, PROPERTY_FORCE_SVG_SHAPES, PROPERTY_GLYPH_RENDERER_ADD_ACTUAL_TEXT, PROPERTY_IGNORE_HYPERLINK, PROPERTY_ODD_PAGE_OFFSET_X, PROPERTY_ODD_PAGE_OFFSET_Y, PROPERTY_PREFIX_GLYPH_RENDERER_BLOCKS, PROPERTY_SIZE_PAGE_TO_CONTENT
-
Fields inherited from interface net.sf.jasperreports.export.ReportExportConfiguration
PROPERTY_IGNORE_PAGE_MARGINS
-
-
Constructor Summary
Constructors Constructor Description SimplePdfReportConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetEvenPageOffsetX()Specifies the X offset for moving elements in even page number pages, to simulate gutter margins.java.lang.IntegergetEvenPageOffsetY()Specifies the Y offset for moving elements in even page number pages, to simulate gutter margins.java.lang.IntegergetOddPageOffsetX()Specifies the X offset for moving elements in odd page number pages, to simulate gutter margins.java.lang.IntegergetOddPageOffsetY()Specifies the Y offset for moving elements in odd page number pages, to simulate gutter margins.java.lang.BooleanisBookmarksEnabled()Flag that determines if the bookmarks are to be created or not in the resulting PDF document.java.lang.BooleanisCollapseMissingBookmarkLevels()Flag that determines if missing bookmark levels are collapsed, or if empty bookmarks are created for the missing levels.java.lang.BooleanisForceLineBreakPolicy()Flag that decides whether the PDF exporter should use aSplitCharacterimplementation which ensures that report texts are broken into lines by OpenPDF in the same manner as done by the fill process.java.lang.BooleanisForceSvgShapes()Flag to force the rendering of SVG images using shapes, on the PDF Graphics2D context.java.lang.BooleanisIgnoreHyperlink()java.lang.BooleanisSizePageToContent()Flag which specifies if the size of each page should be increased to accommodate its content.voidsetBookmarksEnabled(java.lang.Boolean isBookmarksEnabled)voidsetCollapseMissingBookmarkLevels(java.lang.Boolean isCollapseMissingBookmarkLevels)voidsetEvenPageOffsetX(java.lang.Integer evenPageOffsetX)voidsetEvenPageOffsetY(java.lang.Integer evenPageOffsetY)voidsetForceLineBreakPolicy(java.lang.Boolean isForceLineBreakPolicy)voidsetForceSvgShapes(java.lang.Boolean isForceSvgShapes)voidsetIgnoreHyperlink(java.lang.Boolean isIgnoreHyperlink)voidsetOddPageOffsetX(java.lang.Integer oddPageOffsetX)voidsetOddPageOffsetY(java.lang.Integer oddPageOffsetY)voidsetSizePageToContent(java.lang.Boolean isSizePageToContent)-
Methods inherited from class net.sf.jasperreports.export.SimpleReportExportConfiguration
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex, setEndPageIndex, setExporterFilter, setHyperlinkProducerFactory, setOffsetX, setOffsetY, setPageIndex, setProgressMonitor, setStartPageIndex
-
Methods inherited from class net.sf.jasperreports.export.SimpleCommonExportConfiguration
isOverrideHints, setOverrideHints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
isOverrideHints
-
Methods inherited from interface net.sf.jasperreports.export.ReportExportConfiguration
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex
-
-
-
-
Method Detail
-
isForceSvgShapes
public java.lang.Boolean isForceSvgShapes()
Description copied from interface:PdfReportConfigurationFlag to force the rendering of SVG images using shapes, on the PDF Graphics2D context. This allows rendering fonts as shapes and avoid font mapping issues that might cause Unicode text not to show up properly, but has the disadvantage of producing larger PDF files. By default, the flag is set to true, mainly due to backward compatibility reasons. To reduce PDF file size for documents containing SVG images such as charts, the flag should be turned to false, and the PDF exporter font mappings should be correctly configured using the font extension support, to ensure proper rendering of text in the SVG. This flag can be set system-wide using thePROPERTY_FORCE_SVG_SHAPESproperty.- Specified by:
isForceSvgShapesin interfacePdfReportConfiguration- See Also:
PdfReportConfiguration.PROPERTY_FORCE_SVG_SHAPES
-
setForceSvgShapes
public void setForceSvgShapes(java.lang.Boolean isForceSvgShapes)
-
isBookmarksEnabled
public java.lang.Boolean isBookmarksEnabled()
Description copied from interface:PdfReportConfigurationFlag that determines if the bookmarks are to be created or not in the resulting PDF document.- Specified by:
isBookmarksEnabledin interfacePdfReportConfiguration- See Also:
PdfReportConfiguration.PROPERTY_BOOKMARKS_ENABLED
-
setBookmarksEnabled
public void setBookmarksEnabled(java.lang.Boolean isBookmarksEnabled)
-
isCollapseMissingBookmarkLevels
public java.lang.Boolean isCollapseMissingBookmarkLevels()
Description copied from interface:PdfReportConfigurationFlag that determines if missing bookmark levels are collapsed, or if empty bookmarks are created for the missing levels.The flag dictates what happens when a filled report contains an anchor having a bookmark level that is not the immediate successor of its parent (e.g. an anchor with bookmark level 3 follows immediately after a bookmark of level 1). If the flag is not set, an empty bookmark is created for the missing level(s) in order to preserve the original level of the bookmark. When the property is set, the level of the bookmark will be collapsed and the bookmark will be created as a direct descendant of its nearest parent.
- Specified by:
isCollapseMissingBookmarkLevelsin interfacePdfReportConfiguration- See Also:
PdfReportConfiguration.PROPERTY_COLLAPSE_MISSING_BOOKMARK_LEVELS
-
setCollapseMissingBookmarkLevels
public void setCollapseMissingBookmarkLevels(java.lang.Boolean isCollapseMissingBookmarkLevels)
-
isSizePageToContent
public java.lang.Boolean isSizePageToContent()
Description copied from interface:PdfReportConfigurationFlag which specifies if the size of each page should be increased to accommodate its content.- Specified by:
isSizePageToContentin interfacePdfReportConfiguration- See Also:
PdfReportConfiguration.PROPERTY_SIZE_PAGE_TO_CONTENT
-
setSizePageToContent
public void setSizePageToContent(java.lang.Boolean isSizePageToContent)
-
isIgnoreHyperlink
public java.lang.Boolean isIgnoreHyperlink()
- Specified by:
isIgnoreHyperlinkin interfacePdfReportConfiguration- See Also:
PdfReportConfiguration.PROPERTY_IGNORE_HYPERLINK
-
setIgnoreHyperlink
public void setIgnoreHyperlink(java.lang.Boolean isIgnoreHyperlink)
-
isForceLineBreakPolicy
public java.lang.Boolean isForceLineBreakPolicy()
Description copied from interface:PdfReportConfigurationFlag that decides whether the PDF exporter should use aSplitCharacterimplementation which ensures that report texts are broken into lines by OpenPDF in the same manner as done by the fill process.The default line-breaking logic differs from AWT (which is used during the report fill) to OpenPDF (used by the PDF exporter). By setting this flag, the logic used by AWT is imposed to OpenPDF. The drawback is that the PDF export performance would drop. Because of this, the flag is not set by default.
This flag can be set system-wide using the
PROPERTY_FORCE_LINEBREAK_POLICYproperty.- Specified by:
isForceLineBreakPolicyin interfacePdfReportConfiguration- See Also:
PdfReportConfiguration.PROPERTY_FORCE_LINEBREAK_POLICY,BreakIteratorSplitCharacter
-
setForceLineBreakPolicy
public void setForceLineBreakPolicy(java.lang.Boolean isForceLineBreakPolicy)
-
getOddPageOffsetX
public java.lang.Integer getOddPageOffsetX()
Description copied from interface:PdfReportConfigurationSpecifies the X offset for moving elements in odd page number pages, to simulate gutter margins.- Specified by:
getOddPageOffsetXin interfacePdfReportConfiguration
-
setOddPageOffsetX
public void setOddPageOffsetX(java.lang.Integer oddPageOffsetX)
-
getOddPageOffsetY
public java.lang.Integer getOddPageOffsetY()
Description copied from interface:PdfReportConfigurationSpecifies the Y offset for moving elements in odd page number pages, to simulate gutter margins.- Specified by:
getOddPageOffsetYin interfacePdfReportConfiguration
-
setOddPageOffsetY
public void setOddPageOffsetY(java.lang.Integer oddPageOffsetY)
-
getEvenPageOffsetX
public java.lang.Integer getEvenPageOffsetX()
Description copied from interface:PdfReportConfigurationSpecifies the X offset for moving elements in even page number pages, to simulate gutter margins.- Specified by:
getEvenPageOffsetXin interfacePdfReportConfiguration
-
setEvenPageOffsetX
public void setEvenPageOffsetX(java.lang.Integer evenPageOffsetX)
-
getEvenPageOffsetY
public java.lang.Integer getEvenPageOffsetY()
Description copied from interface:PdfReportConfigurationSpecifies the Y offset for moving elements in even page number pages, to simulate gutter margins.- Specified by:
getEvenPageOffsetYin interfacePdfReportConfiguration
-
setEvenPageOffsetY
public void setEvenPageOffsetY(java.lang.Integer evenPageOffsetY)
-
-