PDFium Delphi Component Docs

PageShadowColor property

Component: TPdfView  ·  Unit: PDFium
Fill color of the drop shadow painted beneath each page rectangle

Syntax

property PageShadowColor: TColor; // default clGray

Description

Each page in the viewer is drawn as a rectangle floating over the control's Color background. Below the right and bottom edges of that rectangle the viewer paints a drop shadow strip that visually lifts the page off the scroll area, mimicking the look of Adobe Reader and other modern PDF viewers. PageShadowColor is the solid fill of that strip

The shadow is only rendered when PageShadowSize is greater than zero. With PageShadowSize set to 0 the color is ignored and no extra pixels are drawn, which is the default appearance (flat, no shadow)

Pick a color darker than Color to get a believable shadow. clGray, $00606060 (charcoal), or a custom 30%-luminance gray all read convincingly. Lighter colors on a light background reduce the effect to a subtle border accent

Remarks

Example

// Classic Adobe-style page presentation
PdfView1.Color := $00CCCCCC; // light gray scroll area
PdfView1.PageColor := clWhite;
PdfView1.PageShadowSize := 6;
PdfView1.PageShadowColor := clGray;
PdfView1.PageBorderColor := $00808080;

// Crisp, high-contrast page edge for dark mode
PdfView1.Color := $00202020;
PdfView1.PageShadowColor := clBlack;
PdfView1.PageShadowSize := 8;

See Also

PageShadowSize, PageBorderColor, PageColor, Color