Package com.itextpdf.text.pdf.richmedia
Class RichMediaActivation
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.richmedia.RichMediaActivation
- All Implemented Interfaces:
Serializable
The RichMediaActivation dictionary specifies the style of presentation,
default script behavior, default view information, and animation style
when the annotation is activated.
See ExtensionLevel 3 p78
- Since:
- 5.0.0
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAnimation(RichMediaAnimation animation) Sets the animation dictionary describing the preferred method that conforming readers should use to drive keyframe animations present in this artwork.voidsetCondition(PdfName condition) Sets the activation condition.voidsetConfiguration(PdfIndirectReference configuration) Sets an indirect object reference to a RichMediaConfiguration dictionary that shall also be referenced by the Configurations array in the RichMediaContent dictionary (which is part of the RichMediaAnnotation object).voidsetPresentation(RichMediaPresentation richMediaPresentation) Sets a RichMediaPresentation dictionary that contains information as to how the annotation and user interface elements will be visually laid out and drawn.voidsetScripts(PdfArray scripts) Sets an array of indirect object references to file specification dictionaries, each of which describe a JavaScript file that shall be present in the Assets name tree of the RichMediaContent dictionary.voidsetView(PdfIndirectReference view) Sets an indirect object reference to a 3D view dictionary that shall also be referenced by the Views array within the annotation's RichMediaContent dictionary.Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
RichMediaActivation
public RichMediaActivation()Creates a RichMediaActivation dictionary.
-
-
Method Details
-
setCondition
Sets the activation condition. Set it to XA if the annotation is explicitly activated by a user action or script (this is the default). To PO, if the annotation is activated as soon as the page that contains the annotation receives focus as the current page. To PV, if the annotation is activated as soon as any part of the page that contains the annotation becomes visible. One example is in a multiple-page presentation. Only one page is the current page although several are visible.- Parameters:
condition- possible values are: PdfName.XA, PdfName.PO, or PdfName.PV
-
setAnimation
Sets the animation dictionary describing the preferred method that conforming readers should use to drive keyframe animations present in this artwork.- Parameters:
animation- a RichMediaAnimation dictionary
-
setView
Sets an indirect object reference to a 3D view dictionary that shall also be referenced by the Views array within the annotation's RichMediaContent dictionary.- Parameters:
view- an indirect reference
-
setConfiguration
Sets an indirect object reference to a RichMediaConfiguration dictionary that shall also be referenced by the Configurations array in the RichMediaContent dictionary (which is part of the RichMediaAnnotation object).- Parameters:
configuration- an indirect reference
-
setPresentation
Sets a RichMediaPresentation dictionary that contains information as to how the annotation and user interface elements will be visually laid out and drawn.- Parameters:
richMediaPresentation- a RichMediaPresentation object
-
setScripts
Sets an array of indirect object references to file specification dictionaries, each of which describe a JavaScript file that shall be present in the Assets name tree of the RichMediaContent dictionary.- Parameters:
scripts- a PdfArray
-