Class SimplePdfReportConfiguration

    • Constructor Detail

      • SimplePdfReportConfiguration

        public SimplePdfReportConfiguration()
    • Method Detail

      • isForceSvgShapes

        public java.lang.Boolean isForceSvgShapes()
        Description copied from interface: PdfReportConfiguration
        Flag 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 the PROPERTY_FORCE_SVG_SHAPES property.
        Specified by:
        isForceSvgShapes in interface PdfReportConfiguration
        See Also:
        PdfReportConfiguration.PROPERTY_FORCE_SVG_SHAPES
      • setForceSvgShapes

        public void setForceSvgShapes​(java.lang.Boolean isForceSvgShapes)
      • setBookmarksEnabled

        public void setBookmarksEnabled​(java.lang.Boolean isBookmarksEnabled)
      • isCollapseMissingBookmarkLevels

        public java.lang.Boolean isCollapseMissingBookmarkLevels()
        Description copied from interface: PdfReportConfiguration
        Flag 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:
        isCollapseMissingBookmarkLevels in interface PdfReportConfiguration
        See Also:
        PdfReportConfiguration.PROPERTY_COLLAPSE_MISSING_BOOKMARK_LEVELS
      • setCollapseMissingBookmarkLevels

        public void setCollapseMissingBookmarkLevels​(java.lang.Boolean isCollapseMissingBookmarkLevels)
      • setSizePageToContent

        public void setSizePageToContent​(java.lang.Boolean isSizePageToContent)
      • setIgnoreHyperlink

        public void setIgnoreHyperlink​(java.lang.Boolean isIgnoreHyperlink)
      • isForceLineBreakPolicy

        public java.lang.Boolean isForceLineBreakPolicy()
        Description copied from interface: PdfReportConfiguration
        Flag that decides whether the PDF exporter should use a SplitCharacter implementation 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_POLICY property.

        Specified by:
        isForceLineBreakPolicy in interface PdfReportConfiguration
        See Also:
        PdfReportConfiguration.PROPERTY_FORCE_LINEBREAK_POLICY, BreakIteratorSplitCharacter
      • setForceLineBreakPolicy

        public void setForceLineBreakPolicy​(java.lang.Boolean isForceLineBreakPolicy)
      • setOddPageOffsetX

        public void setOddPageOffsetX​(java.lang.Integer oddPageOffsetX)
      • setOddPageOffsetY

        public void setOddPageOffsetY​(java.lang.Integer oddPageOffsetY)
      • setEvenPageOffsetX

        public void setEvenPageOffsetX​(java.lang.Integer evenPageOffsetX)
      • setEvenPageOffsetY

        public void setEvenPageOffsetY​(java.lang.Integer evenPageOffsetY)