public class PdfRendition extends PdfObjectWrapper<PdfDictionary>
| Constructor and Description |
|---|
PdfRendition(PdfDictionary pdfObject)
Creates a new wrapper around an existing
PdfDictionary |
PdfRendition(String file,
PdfFileSpec fs,
String mimeType)
Creates a new wrapper around a newly created media rendition dictionary object.
|
| 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, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfRendition(PdfDictionary pdfObject)
PdfDictionarypdfObject - a rendition object to create a wrapper forpublic PdfRendition(String file, PdfFileSpec fs, String mimeType)
file - a text string specifying the name of the file to displayfs - a file specification that specifies the actual media datamimeType - an ASCII string identifying the type of datapublic 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–2025 Apryse Group NV. All rights reserved.