Class OutputProfile.Separation

    • Method Detail

      • getName

        public String getName()
        Return the name of the Separation
      • getColor

        public Color getColor()

        Return the color of the Separation. The ColorSpace will be a SpotColorSpace if the separation was used from a SpotColorSpace or a DeviceNColorSpace with the recommended "Colorants" array; it may be a regular process colorSpace if used from a DeviceNColorSpace that identifies the process colorSpace this ink it belongs to; or it may be null if part of a DeviceNColorSpace that doesn't defined the ink at all.

        If a SpotColorspace, the sole component will typically be 1, but may be less based on the "Solidity" specified in the PDF

      • getPages

        public Collection<PDFPage> getPages()
        Return the set of pages this Separation was used in, in no particular order
      • getDotGain

        public float getDotGain​(float input)
        Evaluate the "dot gain" function for this Separation. The supplied value should be between 0 and 1 - the returned value will be between 0 and 1 if a function is specified, or Float.NaN if no DotGain function is specified for this Separation (which is normal, and required PDF/X).
        input - the input value between 0..1
        the computedvalue between 0..1, or NaN.
      • compareTo

        public int compareTo​(OutputProfile.Separation s)
        Compare two Separations for sorting. Since release 2.26 Separations are comparable - the sort order is our approximation of the sort order used by Acrobat, with higher priority Separations of the same name taking priority where names must be unique.
        Specified by:
        compareTo in interface Comparable<OutputProfile.Separation>