Table of Contents

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

bool

Height

public int Height { get; }

Property Value

int

Model

public PdfInkModel Model { get; }

Property Value

PdfInkModel

SimulatedOverprint

public bool SimulatedOverprint { get; }

Property Value

bool

Width

public int Width { get; }

Property Value

int

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

visible ulong
spotAppearances IReadOnlyList<PdfColor>
highlightOverPercent double?
highlight PdfColor?

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

limitPercent double
channels ulong

Returns

PdfInkCoverage

InkAt(int, int, int)

The ink (0..1) of a plate at a pixel.

public double InkAt(int channel, int x, int y)

Parameters

channel int
x int
y int

Returns

double

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

channel int

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

channel int
tinted bool
appearance PdfColor?

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

x int
y int

Returns

IReadOnlyList<(string Plate, double Percent)>

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)

Parameters

x int
y int
channels ulong

Returns

double