Package org.faceless.pdf2
Class OutputProfile.Separation
- java.lang.Object
-
- org.faceless.pdf2.OutputProfile.Separation
-
- All Implemented Interfaces:
Comparable<OutputProfile.Separation>
- Enclosing class:
- OutputProfile
public static final class OutputProfile.Separation extends Object implements Comparable<OutputProfile.Separation>
Represents an individual "ink" used in the PDF. The list can be retreived fromOutputProfile.getColorSeparations()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(OutputProfile.Separation s)
Compare two Separations for sorting.Color
getColor()
Return the color of the Separation.float
getDotGain(float input)
Evaluate the "dot gain" function for this Separation.String
getName()
Return the name of the SeparationCollection<PDFPage>
getPages()
Return the set of pages this Separation was used in, in no particular orderString
toString()
-
-
-
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 aSpotColorSpace
or aDeviceNColorSpace
with the recommended "Colorants" array; it may be a regular process colorSpace if used from aDeviceNColorSpace
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).- Parameters:
input
- the input value between 0..1- Returns:
- 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 interfaceComparable<OutputProfile.Separation>
- Since:
- 2.26
-
-