TPDFlibSBBates
Editions
Description
TPDFlibSBBates (unit PDFlibSBBates) descends from TPDFlibSBInvoice and implements the Small Business method for Bates numbering: it stamps a sequential number on every page of a page range.
It belongs to the Small Business edition; the Enterprise edition includes every Small Business class, so it is part of both editions. TPDFlibSBDataMerge descends from it and adds the next feature group.
Syntax
Delphi
TPDFlibSBBates = Class(TPDFlibSBInvoice);Key members
| AddBatesNumbering | Stamps StartNumber and its successors on the pages of PageRange, zero-padded to Digits digits and framed by Prefix and Suffix, with the selected font at FontSize; returns the number of pages stamped |
|---|
Remarks
A font has to be selected on the instance before the call; without a selected font the method returns 0.
Position follows the keypad layout, 1 to 9, inside the visible page frame, which is the crop box clipped to the media box; the margin is the text height. The position refers to the page as displayed, so the number on a rotated page is laid out in the rotated frame. The method restores the origin, the selected page, the font and the painter state afterwards.
Applications normally create TPDFlibSmallBusiness or TPDFlibEnterprise and get the methods of this class through them. The same methods on a plain TPDFlib return 0, an empty string or False and set LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED.
See also
TPDFlibSBInvoice, TPDFlibSBDataMerge, TPDFlibSmallBusiness, TPDFlibEnterprise