|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.PDFAnnotation
org.faceless.pdf2.AnnotationFile
public final class AnnotationFile
A subtype new PDFAnnotation
that allows files to be attached to the PDF.
File attachments do not work in the free Acrobat Reader - they require the full
version of Acrobat. Currently the "encrypt separately" option added in Acrobat 7
is not supported, although if the document is encrypted the attachment will be
encrypted with it.
Note in revisions prior to 2.6 this class dealt with the file internally. In 2.6
the EmbeddedFile handling was moved to a separate class, EmbeddedFile
,
which now handles all the details of the actual file.
Constructor Summary | |
---|---|
AnnotationFile()
Create a new File annotation. |
Method Summary | |
---|---|
EmbeddedFile |
getFile()
Return the file embedded in this annotation |
void |
rebuild()
|
void |
setFile(EmbeddedFile file)
Set the contents of this annotation to the specified embedded file. |
void |
setType(String type,
Color color)
Set the type of attachment - the physical appearance on the page. |
String |
toString()
|
Methods inherited from class org.faceless.pdf2.PDFAnnotation |
---|
addPropertyChangeListener, addReview, flatten, getAuthor, getColor, getContents, getCreationDate, getInReplyTo, getMetaData, getModifyDate, getOpacity, getPage, getPopup, getRectangle, getReplies, getReviews, getSubject, getType, getUniqueID, hasAppearanceState, isContentLocked, isPositionLocked, isPrintable, isReadOnly, isVisible, removePropertyChangeListener, setAuthor, setColor, setContents, setCreationDate, setInReplyTo, setLocked, setMetaData, setModifyDate, setOpacity, setPage, setPrintable, setReadOnly, setRectangle, setSubject, setUniqueID, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnnotationFile()
setFile()
method must be called.
Method Detail |
---|
public void setType(String type, Color color)
IllegalArgumentException
will be thrown.
type
- the type of attachment - one of the four values listed above.color
- the color of the attachmentpublic void setFile(EmbeddedFile file)
file
- the EmbeddedFile object to attachpublic EmbeddedFile getFile()
public void rebuild()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |