Docs PDFiumVCL

PageMode property

Cette entrée API conserve identifiants, signatures, blocs de code et termes PDF dans leur forme d’origine.
Component: TPdf  ·  Unit: PDFium
Page-level property — the document /PageMode hint (Outlines, Thumbs, FullScreen, ...).

Syntax

property PageMode: TPageMode;

Description

Returns the the document /PageMode hint (Outlines, Thumbs, FullScreen, ...). The value is sourced from the page dictionary in the PDF, after any inherited /MediaBox / /CropBox / /Rotate from parent nodes are resolved.

Read-only unless the property name implies a writer (such as Page or PageRotation); assigning to read-only properties has no effect.

Coordinates and dimensions are reported in PDF user-space points. To convert to pixels for a target DPI, use PointsToPixels(Value, DPI) or the equivalent helpers.

Remarks

Example

if Pdf1.Active then
  Memo1.Lines.Add('PageMode = ' + VarToStr(Pdf1.PageMode));

See Also

ViewerPreference, PageLabel