PDFiumPas 文件

PageLabel 屬性

元件: TPdf  ·  單元: PDFium
頁面層級屬性 — 傳回使用者可見的頁面標籤(例如 "iv" 或 "A-3"),而不是從 0 開始的索引

Syntax

property PageLabel: WString;

Description

Returns the returns the user-visible page label (such as "iv" or "A-3") rather than the zero-based index. 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('PageLabel = ' + VarToStr(Pdf1.PageLabel));

See Also

PageNumber, Page, PageCount