Package com.tom_roush.pdfbox.pdmodel.fdf
Class FDFAnnotationFreeText
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotation
-
- com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotationFreeText
-
- All Implemented Interfaces:
COSObjectable
public class FDFAnnotationFreeText extends FDFAnnotation
This represents a FreeText FDF annotation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSUBTYPECOS Model value for SubType entry.-
Fields inherited from class com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotation
annot
-
-
Constructor Summary
Constructors Constructor Description FDFAnnotationFreeText()Default constructor.FDFAnnotationFreeText(COSDictionary a)Constructor.FDFAnnotationFreeText(Element element)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJustification()This will get the form of quadding (justification) of the annotation text.StringgetRotation()This will get the clockwise rotation in degrees.voidsetJustification(String justification)This will set the form of quadding (justification) of the annotation text.voidsetRotation(int rotation)This will set the clockwise rotation in degrees.-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotation
create, getBorderEffect, getBorderStyle, getColor, getContents, getCOSObject, getCreationDate, getDate, getIntent, getName, getOpacity, getPage, getRectangle, getRichContents, getStringOrStream, getSubject, getTitle, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPage, setPrinted, setReadOnly, setRectangle, setRichContents, setSubject, setTitle, setToggleNoView
-
-
-
-
Field Detail
-
SUBTYPE
public static final String SUBTYPE
COS Model value for SubType entry.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FDFAnnotationFreeText
public FDFAnnotationFreeText()
Default constructor.
-
FDFAnnotationFreeText
public FDFAnnotationFreeText(COSDictionary a)
Constructor.- Parameters:
a- An existing FDF Annotation.
-
FDFAnnotationFreeText
public FDFAnnotationFreeText(Element element) throws IOException
Constructor.- Parameters:
element- An XFDF element.- Throws:
IOException- If there is an error extracting information from the element.
-
-
Method Detail
-
setJustification
public void setJustification(String justification)
This will set the form of quadding (justification) of the annotation text.- Parameters:
justification- The quadding of the text.
-
getJustification
public String getJustification()
This will get the form of quadding (justification) of the annotation text.- Returns:
- The quadding of the text.
-
setRotation
public void setRotation(int rotation)
This will set the clockwise rotation in degrees.- Parameters:
rotation- The number of degrees of clockwise rotation.
-
getRotation
public String getRotation()
This will get the clockwise rotation in degrees.- Returns:
- The number of degrees of clockwise rotation.
-
-