PDFium Delphi Component Docs

PageCount свойство

Компонент: TPdf  ·  Модул: PDFium
Свойство на ниво страница — общият брой страници в отворения документ

Синтаксис

property PageCount: Integer;

Описание

Returns the total number of pages in the open document. 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.

Забележки

Пример

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

Виж също

Page, PageNumber, PageLabel