Class OutputIntent

    • Constructor Detail

      • OutputIntent

        public OutputIntent​(String type,
                            String identifier,
                            ColorSpace colorspace)
        Create a new OutputIntent
        Parameters:
        type - the type of OutputIntent - usually one of "GTS_PDFA1", "GTS_PDX" or "ISO_PDFE1". Required.
        identifier - the name of the Output Condition, eg "FOGRA39" or "CGATS TR 001". If null, we will try to use the description from the ICCColorSpace if available, but if this is empty or null we'll throw an Exception.
        colorspace - the ColorSpace, which must be a ICCColorSpace or ICC_ColorSpace, and must be GrayScale, RGB or CMYK. If null and the identifier is "sRGB" this will be auto-populated, otherwise a null value leaves the ColorSpace unset.
      • OutputIntent

        public OutputIntent​(String type,
                            String identifier,
                            ColorSpace colorspace,
                            String description,
                            String info,
                            String registry)
        Create a new OutputIntent
        Parameters:
        type - the type of OutputIntent - usually one of "GTS_PDFA1", "GTS_PDX" or "ISO_PDFE1". Required.
        identifier - the name of the Output Condition, eg "FOGRA39" or "CGATS TR 001". If null, we will try to use the description from the ICCColorSpace if available, but if this is empty or null we'll throw an Exception.
        colorspace - the ColorSpace, which must be a ICCColorSpace or ICC_ColorSpace, and must be GrayScale, RGB or CMYK. If null and the identifier is "sRGB" this will be auto-populated, otherwise a null value leaves the ColorSpace unset.
        description - if not null, the value to pass to setDescription(java.lang.String)
        info - if not null, the value to pass to setInfo(java.lang.String)
        registry - if not null, the value to pass to setRegistry(java.lang.String)
      • OutputIntent

        public OutputIntent​(String type,
                            OutputIntent source)
        Create a new OutputIntent which is a copy of the supplied Intent, but with a new Type
        Parameters:
        type - the type of OutputIntent - usually one of "GTS_PDFA1", "GTS_PDX" or "ISO_PDFE1"
        source - the OutputIntent to duplicate
      • OutputIntent

        public OutputIntent​(OutputIntent source)
        Create a duplicate of the supplied OutputIntent. Calls this(source.getType(), source)
    • Method Detail

      • getType

        public String getType()
        Get the Output Condition Identifier, eg. "GTS_PDFX"
      • getIdentifier

        public String getIdentifier()
        Get the Output Condition Identifier, eg. "CGATS TR 001"
      • getDescription

        public String getDescription()
        Get the description of the Output Condition, if specified.
      • getRegistry

        public String getRegistry()
        Get the registry of the Output Condition if specified, eg. "http://www.color.org"
      • getInfo

        public String getInfo()
        Get the Info field of the Output Intent, if specified.
      • setDescription

        public void setDescription​(String description)
        Set the Description field of the Output Condition.
      • setInfo

        public void setInfo​(String info)
        Set the Info field of the Output Condition.
      • setRegistry

        public void setRegistry​(String registry)
        Set the RegistryName field of the Output Condition.
      • getColorSpace

        public ICCColorSpace getColorSpace()
        Get the embedded ICCColorSpace of the Output Intent, if one is included, or null if it is invalid or missing.
      • isCompatibleWith

        public OutputProfile.Feature[] isCompatibleWith​(OutputProfile target)
        Return the list of features of this OutputIntent that are incompatible with the supplied target OutputProfile, or null if this OutputIntent is compatible
      • toString

        public String toString()
      • putLiteral

        public void putLiteral​(String key,
                               String tokens)
        Put a literal token sequnce. For debugging
        Parameters:
        key - the key
        tokens - the token sequence, eg "true" or "/foo" or "[/Foo/Bar]". No refs, just direct objects.