SIZE_SPACING_FONT
SIZE_SPACING_FONT = 5
setTrackingCode(int $barcodeIdentifier, int $serviceTypeIdentifier, int $mailerIdentifier, int $serialNumber) : mixed
Sets the tracking code.
| int | $barcodeIdentifier | 2-digit number. 2nd digit must be 0-4 |
| int | $serviceTypeIdentifier | 3 digits |
| int | $mailerIdentifier | 6 or 9 digits |
| int | $serialNumber | 9 (if mailerId is 6) or 6 digits (if mailerId is 9) |
drawText(resource $im, int $x1, int $y1, int $x2, int $y2) : mixed
Draws the text.
The coordinate passed are the positions of the barcode. $x1 and $y1 represent the top left corner. $x2 and $y2 represent the bottom right corner.
| resource | $im | |
| int | $x1 | |
| int | $y1 | |
| int | $x2 | |
| int | $y2 |
drawFilledRectangle(resource $im, int $x1, int $y1, int $x2, int $y2, int $color = self::COLOR_FG) : mixed
Draws a filled rectangle on the resource at a specific position with a determined color.
| resource | $im | |
| int | $x1 | |
| int | $y1 | |
| int | $x2 | |
| int | $y2 | |
| int | $color |
executeStep1(string $text, string $barcodeIdentifier, string $serviceTypeIdentifier, string $mailerIdentifier, string $serialNumber) : string
Executes Step 1: Conversion of Data Fields into Binary Data
| string | $text | |
| string | $barcodeIdentifier | |
| string | $serviceTypeIdentifier | |
| string | $mailerIdentifier | |
| string | $serialNumber |
BCNumber
conversionTrackingCode(string $number, string $barcodeIdentifier, string $serviceTypeIdentifier, string $mailerIdentifier, string $serialNumber) : string
Converts the tracking code number.
| string | $number | BCNumber |
| string | $barcodeIdentifier | |
| string | $serviceTypeIdentifier | |
| string | $mailerIdentifier | |
| string | $serialNumber |
BCNumber