TPDFlibNumberBatesPages

Data types, page manipulation

Description

Stamps sequential Bates numbers on the pages of a page range. TPDFlib resolves the page range before the callback runs, so the callback only receives the pages.

TPDFlib declares the public methods and a protected dispatch method for stamping sequential Bates numbers on a range of pages. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibNumberBatesPages = Function(Const Pages: TPDFlibPageList; StartNumber, Digits,
  Position: Integer; FontSize: Double; Const Prefix, Suffix: WideString): Integer Of Object;

Parameters

PagesTPDFlibPageList with the one-based page numbers to stamp
StartNumberNumber stamped on the first page of the range
DigitsZero-padding width, from 1 through 12
PositionPosition on the visible page area from 1 through 9, following the keypad layout
FontSizeSize of the stamp text applied on every selected page
Prefix, SuffixText placed before and after the number

Return values

N

See also

AddBatesNumbering