Class PdfColorantInventory
- Namespace
- PdfEngine.Vector.PrintProduction
- Assembly
- PdfEngine.Vector.dll
The colorants of a document or of some pages, as the pages print: every colour space actually painted with, in page content, form XObjects, tiling pattern cells, shadings, images (their own spaces and Indexed bases) and printing annotations. A spot colour defined in the resources but never painted is not listed; soft mask groups print no ink and are not looked at.
public sealed class PdfColorantInventory
- Inheritance
-
PdfColorantInventory
- Inherited Members
Properties
All
Process then spot colorants: the plates of CreateModel(), in its channel order.
public IEnumerable<PdfColorant> All { get; }
Property Value
Pages
The pages that were read.
public IReadOnlyList<int> Pages { get; }
Property Value
Process
Cyan, Magenta, Yellow and Black, always listed (as Acrobat lists them); Pages says where they are used.
public IReadOnlyList<PdfColorant> Process { get; }
Property Value
Spots
Spot colorants (Separation and DeviceN names other than the process ones, /All and /None), in order of first use.
public IReadOnlyList<PdfColorant> Spots { get; }
Property Value
Methods
CreateModel()
An ink model with a plate for every spot (up to MaxSpots).
public PdfInkModel CreateModel()
Returns
ReadAsync(PdfVectorDocument, IEnumerable<int>?, CancellationToken)
Reads the colorants of pages (1-based; all pages when null).
public static Task<PdfColorantInventory> ReadAsync(PdfVectorDocument document, IEnumerable<int>? pages = null, CancellationToken cancellationToken = default)
Parameters
documentPdfVectorDocumentpagesIEnumerable<int>cancellationTokenCancellationToken