Package io.keikai.doc.io.schema.pdf
Class PDFText
java.lang.Object
io.keikai.doc.io.schema.pdf.PDFText
- All Implemented Interfaces:
IPDFElement,PDFInline
Internal Use Only.
Represents a text in a PDF document.
- Author:
- Jamson Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()org.apache.pdfbox.pdmodel.font.PDFontgetFont()Returns thePDFontof thePDFText.floatReturns the font size of thePDFText.getText()floatgetWidth()Returns the width of thePDFText.booleanisNotDef()Returns whether thePDFTextis not defined.booleanisSpace()Returns whether thePDFTextis a space.booleanReturns whether thePDFTextis strikethrough.booleanReturns whether thePDFTextis subscript.booleanReturns whether thePDFTextis superscript.booleanReturns whether thePDFTextis underline.
-
Constructor Details
-
Method Details
-
getText
-
getColor
-
getBackgroundColor
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont()Returns thePDFontof thePDFText.- Returns:
- the
PDFontof thePDFText
-
isStrikethrough
public boolean isStrikethrough()Returns whether thePDFTextis strikethrough.- Returns:
- whether the
PDFTextis strikethrough
-
getFontSize
public float getFontSize()Returns the font size of thePDFText.- Returns:
- the font size of the
PDFText
-
isUnderline
public boolean isUnderline()Returns whether thePDFTextis underline.- Returns:
- whether the
PDFTextis underline
-
isSuperscript
public boolean isSuperscript()Returns whether thePDFTextis superscript.- Returns:
- whether the
PDFTextis superscript
-
isSubscript
public boolean isSubscript()Returns whether thePDFTextis subscript.- Returns:
- whether the
PDFTextis subscript
-
getWidth
public float getWidth()Returns the width of thePDFText. -
isSpace
public boolean isSpace()Returns whether thePDFTextis a space. -
isNotDef
public boolean isNotDef()Returns whether thePDFTextis not defined.- Returns:
- whether the
PDFTextis not defined
-