Class PDFRun


  • public class PDFRun
    extends java.lang.Object
    Internal Use Only.

    Represents a text run in PDF.

    Author:
    jamson
    • Constructor Detail

      • PDFRun

        public PDFRun​(char text,
                      io.keikai.doc.api.impl.node.style.TextStyle style,
                      PDFFont pdfFont)
        Create a PDFRun instance.
        Parameters:
        text - the character of the PDFRun
        style - the style of the PDFRun
    • Method Detail

      • getText

        public java.lang.String getText()
        Returns the text String of the PDFRun.
        Returns:
        the text String of the PDFRun
      • getColor

        public java.awt.Color getColor()
        Returns the Color of the PDFRun.
        Returns:
        the Color of the PDFRun
      • getBackgroundColor

        public java.awt.Color getBackgroundColor()
        Returns the background Color of the PDFRun.
        Returns:
        the background Color of the PDFRun
      • getFont

        public org.apache.pdfbox.pdmodel.font.PDFont getFont()
        Returns the PDFont of the PDFRun.
        Returns:
        the PDFont of the PDFRun
      • isStrikethrough

        public boolean isStrikethrough()
        Returns whether the PDFRun is strikethrough.
        Returns:
        whether the PDFRun is strikethrough
      • getFontSize

        public float getFontSize()
        Returns the font size of the PDFRun.
        Returns:
        the font size of the PDFRun
      • isUnderline

        public boolean isUnderline()
        Returns whether the PDFRun is underline.
        Returns:
        whether the PDFRun is underline
      • isSuperscript

        public boolean isSuperscript()
        Returns whether the PDFRun is superscript.
        Returns:
        whether the PDFRun is superscript
      • isSubscript

        public boolean isSubscript()
        Returns whether the PDFRun is subscript.
        Returns:
        whether the PDFRun is subscript
      • getWidth

        public float getWidth()
        Returns the width of the PDFRun.
        Returns:
        the width of the PDFRun
      • isSpace

        public boolean isSpace()
        Returns whether the PDFRun is a space.
        Returns:
        whether the PDFRun is a space
      • isNotDef

        public boolean isNotDef()
        Returns whether the PDFRun is not defined.
        Returns:
        whether the PDFRun is not defined