Class PdfRendition
This a wrapper around a rendition dictionary.
public class PdfRendition : PdfObjectWrapper<PdfDictionary>
- Inheritance
-
PdfRendition
- Inherited Members
Remarks
This a wrapper around a rendition dictionary. See ISO 32000-1 sections 13.2.3.2, 13.2.3.3.
Constructors
PdfRendition(string, PdfFileSpec, string)
Creates a new wrapper around a newly created media rendition dictionary object.
public PdfRendition(string file, PdfFileSpec fs, string mimeType)
Parameters
file
stringa text string specifying the name of the file to display
fs
PdfFileSpeca file specification that specifies the actual media data
mimeType
stringan ASCII string identifying the type of data
PdfRendition(PdfDictionary)
Creates a new wrapper around an existing PdfDictionary
public PdfRendition(PdfDictionary pdfObject)
Parameters
pdfObject
PdfDictionarya rendition object to create a wrapper for
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()