Class PdfInkModel
- Namespace
- PdfEngine.Vector.PrintProduction
- Assembly
- PdfEngine.Vector.dll
The inks of a separation: the four process plates (Cyan, Magenta, Yellow, Black) and the spot plates, and how a colour in any PDF colour space becomes ink on them (ISO 32000-2 8.6.6.4, 8.6.6.5, 10.4.2).
public sealed class PdfInkModel
- Inheritance
-
PdfInkModel
- Inherited Members
Remarks
- DeviceCMYK and four-component ICCBased colours put their components on the process plates as they are: the output is taken to be the profile's own condition, so there is no ICC-to-ICC (device link) conversion.
- DeviceGray (and one-component ICCBased) is black ink only: K = 1 − gray, as PDF/X and Acrobat separate it.
- RGB, Lab and the other CIE spaces are shown in sRGB first and separated by PdfEngine.Vector.Color.CmykSeparation, the numerical inverse of the engine's SWOP model (approximate; see there).
- A Separation or DeviceN colorant named Cyan, Magenta, Yellow or Black goes on that process plate; a spot colorant of the model goes on its own plate; a spot the model converts to process (or does not know) is painted through the tint transform and the alternate space. /All paints every plate; /None paints nothing.
Constructors
PdfInkModel(IEnumerable<string>)
public PdfInkModel(IEnumerable<string> spots)
Parameters
spotsIEnumerable<string>Spot colorant names, each a plate of its own (in this order).
Fields
MaxSpots
At most this many spot plates; further spots convert to process (64-bit plate masks).
public const int MaxSpots = 60
Field Value
ProcessColorants
public static readonly IReadOnlyList<string> ProcessColorants
Field Value
ProcessMask
The four process plates.
public const ulong ProcessMask = 15
Field Value
ProcessOnly
A model with only the process plates: every spot converts to process.
public static readonly PdfInkModel ProcessOnly
Field Value
Properties
AllMask
Every plate of the model.
public ulong AllMask { get; }
Property Value
ChannelCount
public int ChannelCount { get; }
Property Value
Channels
Plate names: Cyan, Magenta, Yellow, Black, then the spots.
public IReadOnlyList<string> Channels { get; }
Property Value
Methods
IndexOf(string)
The plate of a colorant, or −1 when the model has none for it (it then converts to process).
public int IndexOf(string colorant)
Parameters
colorantstring
Returns
SeparateRgb(double, double, double)
sRGB (0..1) to the CMYK the separations use for RGB content (see PdfEngine.Vector.Color.CmykSeparation).
public static (double C, double M, double Y, double K) SeparateRgb(double r, double g, double b)
Parameters
Returns
ShowCmyk(double, double, double, double)
The sRGB the engine shows for a DeviceCMYK colour (the SWOP model, or Adobe's profile when installed).
public static PdfColor ShowCmyk(double c, double m, double y, double k)