Class PdfMediaClipData
This class is a wrapper of media clip data dictionary that defines the data for a media object that can be played.
public class PdfMediaClipData : PdfObjectWrapper<PdfDictionary>
- Inheritance
-
PdfMediaClipData
- Inherited Members
Constructors
PdfMediaClipData(string, PdfFileSpec, string)
Constructs a new PdfMediaClipData wrapper around a newly created dictionary.
public PdfMediaClipData(string file, PdfFileSpec fs, string mimeType)
Parameters
file
stringthe name of the file to create a media clip for
fs
PdfFileSpeca file specification that specifies the actual media data
mimeType
stringan ASCII string identifying the type of data
PdfMediaClipData(PdfDictionary)
Constructs a new PdfMediaClipData wrapper using an existing dictionary.
public PdfMediaClipData(PdfDictionary pdfObject)
Parameters
pdfObject
PdfDictionarythe dictionary to construct the wrapper from
Methods
Flush()
To manually flush a
PdfObject
behind this wrapper, you have to ensure
that this object is added to the document, i.e. it has an indirect reference.
public override void Flush()
Remarks
To manually flush a
PdfObject
behind this wrapper, you have to ensure
that this object is added to the document, i.e. it has an indirect reference.
Basically this means that before flushing you need to explicitly call
MakeIndirect(PdfDocument).
For example: wrapperInstance.makeIndirect(document).flush();
Note that not every wrapper require this, only those that have such warning in documentation.
IsWrappedObjectMustBeIndirect()
protected override bool IsWrappedObjectMustBeIndirect()