Class PdfSeparation
- Namespace
- PdfEngine.Vector.PrintProduction
- Assembly
- PdfEngine.Vector.dll
A separated page: one 8-bit ink plane per plate (0 = no ink, 255 = 100 %), at the size it was rendered.
public sealed class PdfSeparation
- Inheritance
-
PdfSeparation
- Inherited Members
Properties
HasFallback
Part of the page needed a fallback renderer the separation cannot use: those areas are approximate.
public bool HasFallback { get; }
Property Value
Height
public int Height { get; }
Property Value
Model
public PdfInkModel Model { get; }
Property Value
SimulatedOverprint
public bool SimulatedOverprint { get; }
Property Value
Width
public int Width { get; }
Property Value
Methods
CompositeToBgra(ulong, IReadOnlyList<PdfColor>?, double?, PdfColor?)
The visible plates mixed to an on-screen colour: the process plates through the engine's DeviceCMYK
conversion, then each spot multiplied over them in its appearance colour (an approximation of how inks
overprint; Acrobat mixes in Lab). Pixels whose total ink over the visible plates exceeds
highlightOverPercent are painted in highlight.
public byte[] CompositeToBgra(ulong visible, IReadOnlyList<PdfColor>? spotAppearances = null, double? highlightOverPercent = null, PdfColor? highlight = null)
Parameters
visibleulongspotAppearancesIReadOnlyList<PdfColor>highlightOverPercentdouble?highlightPdfColor?
Returns
- byte[]
Coverage(double, ulong)
Total ink coverage over the plates in channels (all when 0) against a limit in percent.
public PdfInkCoverage Coverage(double limitPercent = 300, ulong channels = 0)
Parameters
Returns
InkAt(int, int, int)
The ink (0..1) of a plate at a pixel.
public double InkAt(int channel, int x, int y)
Parameters
Returns
Plane(int)
The ink plane of a plate (row-major, top row first), or null when it was not rendered.
public byte[]? Plane(int channel)
Parameters
channelint
Returns
- byte[]
PlateToBgra(int, bool, PdfColor?)
One plate as BGRA: black ink on white (tinted false), or the plate's own colour.
public byte[] PlateToBgra(int channel, bool tinted, PdfColor? appearance = null)
Parameters
Returns
- byte[]
Readout(int, int)
Every plate's ink at a pixel, in percent, in channel order (plates not rendered are omitted).
public IReadOnlyList<(string Plate, double Percent)> Readout(int x, int y)
Parameters
Returns
TotalInkAt(int, int, ulong)
Total ink at a pixel over the plates in channels (all when 0), in percent.
public double TotalInkAt(int x, int y, ulong channels = 0)