Class Renderer

    • Constructor Detail

      • Renderer

        public Renderer()
    • Method Detail

      • renderLabel

        public abstract int renderLabel​(PdfField field)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getTextWidth

        protected static int getTextWidth​(java.util.List<java.lang.String> values,
                                          org.apache.pdfbox.pdmodel.font.PDType0Font font,
                                          int fontSize,
                                          PdfResource resource)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getMaxLabelLineSize

        protected int getMaxLabelLineSize​(int fieldWidth,
                                          int fontSize)
      • removeUnsupportedChars

        public static java.lang.String removeUnsupportedChars​(java.lang.String input,
                                                              PdfResource resource)
      • isCharEncodable

        public static boolean isCharEncodable​(char character,
                                              org.apache.pdfbox.pdmodel.font.PDType0Font font)