PDFium Delphi Component Docs

RenderOverprintPreview method

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

Syntax

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

Width, HeightInteger. The dimensions of the output bitmap, in pixels
RotationTRotation. The display rotation to apply to the page
OptionsTRenderOptions. The rendering flags to apply
ColorTColor. The background colour used before rendering begins
ResultTBitmap. A newly created bitmap which the caller owns and must free

Description

An ordinary render knocks out whatever lies underneath; an overprint preview shows the inks mixing as they will on paper. For a page which PageUsesOverprint reports as overprinting, the two renders differ, and it is the preview that predicts the printed result

Native overprint preview is a capability of the loaded PDFium module; should it be absent, the call raises EPdfError

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

See Also

PageUsesOverprint, RenderSpotPlate, SpotPlates, RenderPage