public class PdfMediaClipData extends PdfObjectWrapper<PdfDictionary>
Constructor and Description |
---|
PdfMediaClipData(PdfDictionary pdfObject)
Constructs a new PdfMediaClipData wrapper using an existing dictionary.
|
PdfMediaClipData(String file, PdfFileSpec fs, String mimeType)
Constructs a new PdfMediaClipData wrapper around a newly created dictionary.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
To manually flush a PdfObject behind this wrapper, you have to ensure that this object is added to the document, i.e.
|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
ensureObjectIsAddedToDocument, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfMediaClipData(PdfDictionary pdfObject)
PdfMediaClipData
wrapper using an existing dictionary.
pdfObject
- the dictionary to construct the wrapper from
public PdfMediaClipData(String file, PdfFileSpec fs, String mimeType)
PdfMediaClipData
wrapper around a newly created dictionary.
file
- the name of the file to create a media clip for
fs
- a file specification that specifies the actual media data
mimeType
- an ASCII string identifying the type of data
public void flush()
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 PdfObjectWrapper.makeIndirect(PdfDocument)
. For example: wrapperInstance.makeIndirect(document).flush(); Note that not every wrapper require this, only those that have such warning in documentation.
flush
in class PdfObjectWrapper<PdfDictionary>
protected boolean isWrappedObjectMustBeIndirect()
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2016 iText Group NV. All rights reserved.