public class AnnotationRichMedia extends PDFAnnotation
This class is a type of PDFAnnotation
that acts as a container
for interactive media such as Flash and (eventually) video.
For example, to embed a Flash animation in a page:
EmbeddedFile file = new EmbeddedFile(new File("myfile.swf")); AnnotationRichMedia annot = new AnnotationRichMedia(); annot.setEmbeddedFile(file, "Flash", "PO", "PC"); annot.setPage(page); annot.setRectangle(100, 600, 300, 800);
Constructor and Description |
---|
AnnotationRichMedia()
Creates a new rich media annotation.
|
Modifier and Type | Method and Description |
---|---|
void |
setEmbeddedFile(EmbeddedFile file,
String type,
String activationCondition,
String deactivationCondition)
Sets the embedded rich media file to use within this annotation.
|
String |
toString() |
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, rebuild, removePropertyChangeListener, setAuthor, setColor, setContents, setCreationDate, setInReplyTo, setLocked, setMetaData, setModifyDate, setOpacity, setPage, setPrintable, setReadOnly, setRectangle, setSubject, setUniqueID, setVisible
public AnnotationRichMedia()
public void setEmbeddedFile(EmbeddedFile file, String type, String activationCondition, String deactivationCondition)
file
- the embedded filetype
- the primary content type of the file. Currently the only
valid value is "Flash"activationCondition
- the condition under which the media will
be activated. Valid values are "XA" (script or user activation), "PO"
(activated when page receives focus), and "PV" (activated when page
becomes visible)deactivationCondition
- the condition under which the media will
be deactivated. Valid values are "XD" (script or user deactivation), "PC"
(deactivated when page loses focus), and "PI" (deactivated when no part
of the page is any longer visible).public String toString()
Copyright © 2001-2017 Big Faceless Organization