Package com.itextpdf.text.pdf.richmedia
Class RichMediaConfiguration
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.richmedia.RichMediaConfiguration
- All Implemented Interfaces:
Serializable
The RichMediaConfiguration dictionary describes a set of instances
that are loaded for a given scene configuration. The configuration
to be loaded when an annotation is activated is referenced by the
Configuration key in the RichMediaActivation dictionary specified
in the RichMediaSettings dictionary.
see ExtensionLevel 3 p88
- Since:
- 5.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PdfArray
An array of indirect object references to RichMediaInstance dictionaries. -
Constructor Summary
ConstructorsConstructorDescriptionRichMediaConfiguration
(PdfName subtype) Creates a RichMediaConfiguration object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInstance
(RichMediaInstance instance) Adds a RichMediaInstance to the instances array of this configuration.void
Sets the name of the configuration (must be unique).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, toString
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
instances
An array of indirect object references to RichMediaInstance dictionaries.
-
-
Constructor Details
-
RichMediaConfiguration
Creates a RichMediaConfiguration object. Also specifies the primary content type for the configuration. Valid values are 3D, Flash, Sound, and Video.- Parameters:
subtype
- Possible values are: PdfName._3D, PdfName.FLASH, PdfName.SOUND, and PdfName.VIDEO.
-
-
Method Details
-
setName
Sets the name of the configuration (must be unique).- Parameters:
name
- the name
-
addInstance
Adds a RichMediaInstance to the instances array of this configuration.- Parameters:
instance
- a RichMediaInstance
-