public class PdfFunction extends PdfObjectWrapper<PdfObject>
Modifier and Type | Class and Description |
---|---|
static class |
PdfFunction.Type0 |
static class |
PdfFunction.Type2 |
static class |
PdfFunction.Type3 |
static class |
PdfFunction.Type4 |
Constructor and Description |
---|
PdfFunction(PdfObject pdfObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace) |
void |
flush()
To manually flush a PdfObject behind this wrapper, you have to ensure that this object is added to the document, i.e.
|
int |
getInputSize() |
int |
getOutputSize() |
int |
getType() |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
static PdfFunction |
makeFunction(PdfDictionary pdfObject) |
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfFunction(PdfObject pdfObject)
public int getType()
public boolean checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
public int getInputSize()
public int getOutputSize()
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<PdfObject>
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfObject>
public static PdfFunction makeFunction(PdfDictionary pdfObject)
Copyright © 1998–2018 iText Group NV. All rights reserved.