public class SimplePdfReportConfiguration extends SimpleReportExportConfiguration implements PdfReportConfiguration
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_CONTENTPROPERTY_IGNORE_PAGE_MARGINSPROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS| Constructor and Description |
|---|
SimplePdfReportConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getEvenPageOffsetX()
Specifies the X offset for moving elements in even page number pages, to simulate gutter margins.
|
Integer |
getEvenPageOffsetY()
Specifies the Y offset for moving elements in even page number pages, to simulate gutter margins.
|
Integer |
getOddPageOffsetX()
Specifies the X offset for moving elements in odd page number pages, to simulate gutter margins.
|
Integer |
getOddPageOffsetY()
Specifies the Y offset for moving elements in odd page number pages, to simulate gutter margins.
|
Boolean |
isCollapseMissingBookmarkLevels()
Flag that determines if missing bookmark levels are collapsed, or if
empty bookmarks are created for the missing levels.
|
Boolean |
isForceLineBreakPolicy()
Flag that decides whether the PDF exporter should use a
SplitCharacter
implementation which ensures that report texts are broken into lines by iText in the same manner as done by the
fill process. |
Boolean |
isForceSvgShapes()
Flag to force the rendering of SVG images using shapes, on the PDF Graphics2D context.
|
Boolean |
isIgnoreHyperlink() |
Boolean |
isSizePageToContent()
Flag which specifies if the size of each page should be increased to accommodate its content.
|
void |
setCollapseMissingBookmarkLevels(Boolean isCollapseMissingBookmarkLevels) |
void |
setEvenPageOffsetX(Integer evenPageOffsetX) |
void |
setEvenPageOffsetY(Integer evenPageOffsetY) |
void |
setForceLineBreakPolicy(Boolean isForceLineBreakPolicy) |
void |
setForceSvgShapes(Boolean isForceSvgShapes) |
void |
setIgnoreHyperlink(Boolean isIgnoreHyperlink) |
void |
setOddPageOffsetX(Integer oddPageOffsetX) |
void |
setOddPageOffsetY(Integer oddPageOffsetY) |
void |
setSizePageToContent(Boolean isSizePageToContent) |
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex, setEndPageIndex, setExporterFilter, setHyperlinkProducerFactory, setOffsetX, setOffsetY, setPageIndex, setProgressMonitor, setStartPageIndexisOverrideHints, setOverrideHintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndexisOverrideHintspublic Boolean isForceSvgShapes()
PdfReportConfigurationPROPERTY_FORCE_SVG_SHAPES
property.isForceSvgShapes in interface PdfReportConfigurationPdfReportConfiguration.PROPERTY_FORCE_SVG_SHAPESpublic void setForceSvgShapes(Boolean isForceSvgShapes)
public Boolean isCollapseMissingBookmarkLevels()
PdfReportConfigurationThe 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.
isCollapseMissingBookmarkLevels in interface PdfReportConfigurationPdfReportConfiguration.PROPERTY_COLLAPSE_MISSING_BOOKMARK_LEVELSpublic void setCollapseMissingBookmarkLevels(Boolean isCollapseMissingBookmarkLevels)
public Boolean isSizePageToContent()
PdfReportConfigurationisSizePageToContent in interface PdfReportConfigurationPdfReportConfiguration.PROPERTY_SIZE_PAGE_TO_CONTENTpublic void setSizePageToContent(Boolean isSizePageToContent)
public Boolean isIgnoreHyperlink()
isIgnoreHyperlink in interface PdfReportConfigurationPdfReportConfiguration.PROPERTY_IGNORE_HYPERLINKpublic void setIgnoreHyperlink(Boolean isIgnoreHyperlink)
public Boolean isForceLineBreakPolicy()
PdfReportConfigurationSplitCharacter
implementation which ensures that report texts are broken into lines by iText 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 iText (used by the PDF exporter). By setting this flag, the logic used by AWT is imposed to iText. 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_POLICY property.
isForceLineBreakPolicy in interface PdfReportConfigurationPdfReportConfiguration.PROPERTY_FORCE_LINEBREAK_POLICY,
BreakIteratorSplitCharacterpublic void setForceLineBreakPolicy(Boolean isForceLineBreakPolicy)
public Integer getOddPageOffsetX()
PdfReportConfigurationgetOddPageOffsetX in interface PdfReportConfigurationpublic void setOddPageOffsetX(Integer oddPageOffsetX)
public Integer getOddPageOffsetY()
PdfReportConfigurationgetOddPageOffsetY in interface PdfReportConfigurationpublic void setOddPageOffsetY(Integer oddPageOffsetY)
public Integer getEvenPageOffsetX()
PdfReportConfigurationgetEvenPageOffsetX in interface PdfReportConfigurationpublic void setEvenPageOffsetX(Integer evenPageOffsetX)
public Integer getEvenPageOffsetY()
PdfReportConfigurationgetEvenPageOffsetY in interface PdfReportConfigurationpublic void setEvenPageOffsetY(Integer evenPageOffsetY)
Copyright © 2017. All rights reserved.