PDFium Delphi Component Docs

RenderOverprintPreview method

Component: TPdf  ·  Unit: PDFium
Render the current page simulating how overprinting inks combine on press

Syntax

function RenderOverprintPreview(Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap;

Width, HeightInteger. Size of the output bitmap in pixels
RotationTRotation. Display rotation applied to the page
OptionsTRenderOptions. Rendering flags
ColorTColor. Background fill applied before rendering
ResultTBitmap. A newly created bitmap the caller owns and must free

Description

A normal render knocks out whatever lies underneath; an overprint preview shows the inks mixing the way they will on paper. For a page that PageUsesOverprint reports as overprinting, the two renders differ, and the preview is the one that predicts the print

Native overprint preview is a capability of the loaded PDFium module; without it the call raises EPdfError

The render lock is held for the call, so it is safe against concurrent rendering on the same component

See Also

PageUsesOverprint, RenderSpotPlate, SpotPlates, RenderPage