Class PdfConfiguration


  • @UriParams
    public class PdfConfiguration
    extends Object
    Handles pdf component configuration values.
    • Constructor Detail

      • PdfConfiguration

        public PdfConfiguration()
    • Method Detail

      • setOperation

        public void setOperation​(String operation)
      • setOperation

        public void setOperation​(PdfOperation operation)
      • getMarginTop

        public int getMarginTop()
      • setMarginTop

        public void setMarginTop​(int marginTop)
        Margin top in pixels
      • getMarginBottom

        public int getMarginBottom()
      • setMarginBottom

        public void setMarginBottom​(int marginBottom)
        Margin bottom in pixels
      • getMarginLeft

        public int getMarginLeft()
      • setMarginLeft

        public void setMarginLeft​(int marginLeft)
        Margin left in pixels
      • getMarginRight

        public int getMarginRight()
      • setMarginRight

        public void setMarginRight​(int marginRight)
        Margin right in pixels
      • getFontSize

        public float getFontSize()
      • setFontSize

        public void setFontSize​(float fontSize)
        Font size in pixels
      • getPageSize

        public org.apache.pdfbox.pdmodel.common.PDRectangle getPageSize()
      • setPageSize

        public void setPageSize​(String pageSize)
        Page size
      • getFont

        public org.apache.pdfbox.pdmodel.font.PDFont getFont()
      • setFont

        public void setFont​(String font)
        Font
      • setTextProcessingFactory

        public void setTextProcessingFactory​(TextProcessingFactory textProcessingFactory)
        Text processing to use.
        • autoFormatting: Text is getting sliced by words, then max amount of words that fits in the line will be written into pdf document. With this strategy all words that doesn't fit in the line will be moved to the new line.
        • lineTermination: Builds set of classes for line-termination writing strategy. Text getting sliced by line termination symbol and then it will be written regardless it fits in the line or not.
      • setTextProcessingFactory

        public void setTextProcessingFactory​(String textProcessingFactory)