Adobe Acrobat SDK
Multimedia Features (Chapter 9 in PDF Reference)
Adobe® Supplement to the ISO 32000
9.6.1 RichMedia Annotations 94
This is honored only when the conforming reader has the usage rights to edit the document. It results in
the document being dirtied.
Loading State Data.
When the View is activated, the run time iterates through each View Params
dictionary and loads the state data for each
Instance
referenced. The mechanism by which the content
of the
Data
entry is restored depends on the content type:
Flash content:
An ActionScript ExternalInterface call is made to the function
multimedia_setState
, where the first argument is the value stored for
Data
.
3D content:
A JavaScript
StateEvent
is invoked with the
type
property set to the value
load
and
the
data
property set to the value stored for
Data
.
See implementation note E-11,
page 131
.
State Data for Commenting on Video.
RichMedia annotations that support video playback have a Flash
(.swf ) resource to enable playback of the video content. That file needs to support saving and loading
state data in order to enable commenting on Video.
The format of the state data when a
multimedia_getState
ExternalInterface command is invoked is as
follows, where
currentTimeInSeconds
is the current time the video playhead is set at:
'<stateData><movieInfo time="
currentTimeInSeconds
"/></stateData>'
Sending a
multimedia_setState
ExternalInterface command to the video player Flash instance with
the above string as an argument sets the current time to match the value for
currentTimeInSeconds
.
Extended Example
The following is a quasi complete example of a rich media annotation.
9 0 obj
% RichMedia annotation
<< /Type /Annot
/Subtype /RichMedia
/NM (RichMedia001)
% Annotation name
/AP << /N 10 0 R >>
% Appearance dictionary
/F 68
% Annotation flags
/P 5 0 R
% Parent
/Rect [ 50 50 742 500 ]
% Rectangle
/Border [ 0 0 0 ]
% Border
/BS
% Border Style dictionary
<< /Type /Border
/W 0
% Width (0 points)
/S /S
% Border style (Solid)
>>
/RichMediaContent 12 0 R
/RichMediaSettings 22 0 R
>>
endobj
10 0 obj
% Appearance dictionary
<< /Length 39
/Type /XObject
/BBox [ 0.0 0.0 692 450 ]
/Resources
<< /XObject << /Im0 11 0 R >>
/ProcSet [ /PDF /ImageC ]