Print production
editThe renderer composites the pages in RGB, for a screen. A printing press lays inks on paper instead: each object paints the plates of the colorants of its color, and erases the other plates under it, unless it overprints. The options of PdfRenderOptions render a page as a press would print it:
using var preview = PdfRenderer.RenderPage(document.Pages[0], new PdfRenderOptions { SimulateOverprint = true });
using var cyanPlate = PdfRenderer.RenderPage(document.Pages[0], new PdfRenderOptions { Plate = "Cyan" });Simulate overprinting
SimulateOverprint renders the plate of each colorant of the page, then combines their inks on white paper: cyan, magenta, yellow and black for the process colorants, and the color of its alternate color space for a spot colorant. Where an object overprints, the inks under it show through, as in the overprint preview of a prepress application.
- The overprint parameters are those of the graphics state:
OPfor the strokes,opfor the fills, the text and the images, and the overprint modeOPM. With the nonzero overprint mode (OPM 1), a component of 0 of a CMYK color leaves its plate unchanged. - The page is rendered once per colorant: the simulation takes several times as long as a rendering. The background of the options is not painted.
- The colors of images and shadings are separated into the process colorants from their RGB colors: their spot colorants are not separated.
Render a plate
Plate renders the plate of one colorant, in gray, as a film: black where the ink is full, white where there is none. The colorant is Cyan, Magenta, Yellow, Black, or the name of a spot colorant. Gray colors are separated as black, and RGB colors with a full gray component replacement. SimulateOverprint is ignored when a plate is set.
List the colorants of a page
PdfSeparations.GetColorants lists the colorants a page paints, in its content, its forms, images, shadings and patterns, and the appearances of its annotations:
var colorants = PdfSeparations.GetColorants(page);PdfColorantUsage has the process colorants (those the CMYK, gray and RGB colors ink), the spot colorants, the families of the color spaces, and whether a graphics state overprints.
Report the print production of a document
PdfPrintProductionReport gathers what a printer checks before printing a document:
var report = PdfPrintProductionReport.Create(document);- The output intents of the document: the printing condition (such as
FOGRA39), its registry, and the number of components of its profile. - For each page (PdfPageProductionInfo): the media box and the crop box, the bleed, trim and art boxes the page declares, its colorants, and its issues: no trim box nor art box, a box that extends outside the box that should contain it, a trim box and an art box together.
- The trapping state of the document information, and the spot colorants of all the pages.
The report does not change the document.