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
| Pages | TPDFlibPageList with the one-based page numbers to stamp |
|---|---|
| StartNumber | Number stamped on the first page of the range |
| Digits | Zero-padding width, from 1 through 12 |
| Position | Position on the visible page area from 1 through 9, following the keypad layout |
| FontSize | Size of the stamp text applied on every selected page |
| Prefix, Suffix | Text placed before and after the number |
Return values
| N |