|Constructor and Description|
Creates a new wrapper around an existing
Creates a new wrapper around a newly created media rendition dictionary object.
|Modifier and Type||Method and Description|
To manually flush a
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, unsetForbidRelease
public PdfRendition(PdfDictionary pdfObject)
pdfObject- a rendition object to create a wrapper for
public PdfRendition(String file, PdfFileSpec fs, String mimeType)
file- a text string specifying the name of the file to display
fs- a file specification that specifies the actual media data
mimeType- an ASCII string identifying the type of data
public void flush()
PdfObjectbehind 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.
protected boolean isWrappedObjectMustBeIndirect()
Copyright © 1998–2019 iText Group NV. All rights reserved.