Package org.apache.pdfbox.pdmodel.fdf
Class FDFAnnotationStamp
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
-
- org.apache.pdfbox.pdmodel.fdf.FDFAnnotationStamp
-
- All Implemented Interfaces:
COSObjectable
public class FDFAnnotationStamp extends FDFAnnotation
This represents a Stamp FDF annotation.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.Log
LOG
static java.lang.String
SUBTYPE
COS Model value for SubType entry.-
Fields inherited from class org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
annot
-
-
Constructor Summary
Constructors Constructor Description FDFAnnotationStamp()
Default constructor.FDFAnnotationStamp(COSDictionary a)
Constructor.FDFAnnotationStamp(org.w3c.dom.Element element)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private COSArray
parseArrayElement(org.w3c.dom.Element arrayEl)
private COSDictionary
parseDictElement(org.w3c.dom.Element dictEl)
private COSDictionary
parseStampAnnotationAppearanceXML(org.w3c.dom.Element appearanceXML)
This will create an Appearance dictionary from an appearance XML document.private COSStream
parseStreamElement(org.w3c.dom.Element streamEl)
-
Methods inherited from class org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
create, getBorderEffect, getBorderStyle, getColor, getContents, getCOSObject, getCreationDate, getDate, getIntent, getName, getOpacity, getPage, getRectangle, getRichContents, getStringOrStream, getSubject, getTitle, isHidden, isInvisible, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, setLockedContents, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPage, setPrinted, setReadOnly, setRectangle, setRichContents, setSubject, setTitle, setToggleNoView
-
-
-
-
Field Detail
-
LOG
private static final org.apache.commons.logging.Log LOG
-
SUBTYPE
public static final java.lang.String SUBTYPE
COS Model value for SubType entry.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FDFAnnotationStamp
public FDFAnnotationStamp()
Default constructor.
-
FDFAnnotationStamp
public FDFAnnotationStamp(COSDictionary a)
Constructor.- Parameters:
a
- An existing FDF Annotation.
-
FDFAnnotationStamp
public FDFAnnotationStamp(org.w3c.dom.Element element) throws java.io.IOException
Constructor.- Parameters:
element
- An XFDF element.- Throws:
java.io.IOException
- If there is an error extracting information from the element.
-
-
Method Detail
-
parseStampAnnotationAppearanceXML
private COSDictionary parseStampAnnotationAppearanceXML(org.w3c.dom.Element appearanceXML) throws java.io.IOException
This will create an Appearance dictionary from an appearance XML document.- Parameters:
fdfXML
- The XML document that contains the appearance data.- Throws:
java.io.IOException
-
parseStreamElement
private COSStream parseStreamElement(org.w3c.dom.Element streamEl) throws java.io.IOException
- Throws:
java.io.IOException
-
parseArrayElement
private COSArray parseArrayElement(org.w3c.dom.Element arrayEl) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDictElement
private COSDictionary parseDictElement(org.w3c.dom.Element dictEl) throws java.io.IOException
- Throws:
java.io.IOException
-
-