Package com.itextpdf.kernel.pdf
Class PdfOutputIntent
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfObjectWrapper<PdfDictionary>
-
- com.itextpdf.kernel.pdf.PdfOutputIntent
-
public class PdfOutputIntent extends PdfObjectWrapper<PdfDictionary>
Specify the colour characteristics of output devices on which the document might be rendered See ISO 32000-1 14.11.5: Output Intents.
-
-
Constructor Summary
Constructors Constructor Description PdfOutputIntent(PdfDictionary outputIntentDict)
PdfOutputIntent(java.lang.String outputConditionIdentifier, java.lang.String outputCondition, java.lang.String registryName, java.lang.String info, java.io.InputStream iccStream)
Creates output intent dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfStream
getDestOutputProfile()
PdfString
getInfo()
PdfString
getOutputCondition()
PdfString
getOutputConditionIdentifier()
PdfName
getOutputIntentSubtype()
PdfString
getRegistryName()
protected boolean
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.void
setDestOutputProfile(java.io.InputStream iccStream)
void
setInfo(java.lang.String info)
void
setOutputCondition(java.lang.String outputCondition)
void
setOutputConditionIdentifier(java.lang.String outputConditionIdentifier)
void
setOutputIntentSubtype(PdfName subtype)
void
setRegistryName(java.lang.String registryName)
-
Methods inherited from class com.itextpdf.kernel.pdf.PdfObjectWrapper
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
-
-
-
-
Constructor Detail
-
PdfOutputIntent
public PdfOutputIntent(java.lang.String outputConditionIdentifier, java.lang.String outputCondition, java.lang.String registryName, java.lang.String info, java.io.InputStream iccStream)
Creates output intent dictionary. Null values are allowed to suppress any key. By default output intent subtype is GTS_PDFA1, use setter to change it.- Parameters:
outputConditionIdentifier
- (required) identifying the intended output device or production condition in human or machine readable formoutputCondition
- (optional) identifying the intended output device or production condition in human-readable formregistryName
- identifying the registry in which the condition designated byoutputConditionIdentifier
is definedinfo
- (required ifoutputConditionIdentifier
does not specify a standard production condition; optional otherwise) containing additional information or comments about the intended target device or production conditioniccStream
- ICC profile stream. User is responsible for closing the stream
-
PdfOutputIntent
public PdfOutputIntent(PdfDictionary outputIntentDict)
-
-
Method Detail
-
getDestOutputProfile
public PdfStream getDestOutputProfile()
-
setDestOutputProfile
public void setDestOutputProfile(java.io.InputStream iccStream)
-
getInfo
public PdfString getInfo()
-
setInfo
public void setInfo(java.lang.String info)
-
getRegistryName
public PdfString getRegistryName()
-
setRegistryName
public void setRegistryName(java.lang.String registryName)
-
getOutputConditionIdentifier
public PdfString getOutputConditionIdentifier()
-
setOutputConditionIdentifier
public void setOutputConditionIdentifier(java.lang.String outputConditionIdentifier)
-
getOutputCondition
public PdfString getOutputCondition()
-
setOutputCondition
public void setOutputCondition(java.lang.String outputCondition)
-
getOutputIntentSubtype
public PdfName getOutputIntentSubtype()
-
setOutputIntentSubtype
public void setOutputIntentSubtype(PdfName subtype)
-
isWrappedObjectMustBeIndirect
protected boolean isWrappedObjectMustBeIndirect()
Description copied from class:PdfObjectWrapper
Defines if the object behind this wrapper must be an indirect object in the resultant document.
If this method returns true it doesn't necessarily mean that object must be in the indirect state at any moment, but rather defines that when the object will be written to the document it will be transformed into indirect object if it's not indirect yet.
Return value of this method shouldn't depend on any logic, it should return always true or false.- Specified by:
isWrappedObjectMustBeIndirect
in classPdfObjectWrapper<PdfDictionary>
- Returns:
- true if in the resultant document the object behind the wrapper must be indirect, otherwise false.
-
-