new MovieAnnot()
A movie annotation contains animated graphics and sound to be
presented on the computer screen and through the speakers. When the
annotation is activated, the movie is played.
Extends
- Annot
Methods
-
<static> create(doc, pos)
-
Creates a new Movie annotation in the specified document.
Parameters:
Name Type Description doc
PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc A document to which the Movie annotation is added. pos
PDFNet.Rect A rectangle specifying the Movie annotation's bounds in default user space units. Returns:
A promise that resolves to a newly created blank Movie annotation.- Type
- Promise.<PDFNet.MovieAnnot>
-
<static> createFromAnnot(ann)
-
creates a Movie annotation and initializes it using given annotation object.
Parameters:
Name Type Description ann
PDFNet.Annot Annot object used to initialize the Movie annotation. Returns:
A promise that resolves to an object of type: "PDFNet.MovieAnnot"- Type
- Promise.<PDFNet.MovieAnnot>
-
<static> createFromObj( [d])
-
creates a Movie annotation and initializes it using given Cos/SDF object.
Parameters:
Name Type Argument Description d
PDFNet.Obj <optional>
The Cos/SDF object to initialze the annotation with. Returns:
A promise that resolves to an object of type: "PDFNet.MovieAnnot"- Type
- Promise.<PDFNet.MovieAnnot>
-
getTitle()
-
Returns the title of the Movie Annotation.
Returns:
A promise that resolves to a string representing the title of the Movie Annotation.- Type
- Promise.<string>
-
isToBePlayed()
-
Returns the option of whether the Movie is to be played.
Returns:
A promise that resolves to a boolean value indicating if the movie is to be played.- Type
- Promise.<boolean>
-
setTitle(title)
-
sets the title of the Movie Annotation. (Optional)
Parameters:
Name Type Description title
string A string representing the title of the Movie Annotation. Returns:
- Type
- Promise.<void>
-
setToBePlayed( [isplay])
-
sets the option of whether the Movie is to be played. (Optional)
Parameters:
Name Type Argument Description isplay
boolean <optional>
A boolean value telling if the movie is to be played. Default value: true. Returns:
- Type
- Promise.<void>