SIZE_SPACING_FONT
SIZE_SPACING_FONT = 5
getFont() : \BCGFont
Gets the font.
getForegroundColor() : \BCGColor
Gets the foreground color of the barcode.
getBackgroundColor() : \BCGColor
Gets the background color of the barcode.
addLabel(\BCGLabel $label)
Adds the label to the drawing.
\BCGLabel | $label |
removeLabel(\BCGLabel $label)
Removes the label from the drawing.
\BCGLabel | $label |
setTrackingCode(integer $barcodeIdentifier, integer $serviceTypeIdentifier, integer $mailerIdentifier, integer $serialNumber)
Sets the tracking code.
integer | $barcodeIdentifier | 2-digit number. 2nd digit must be 0-4 |
integer | $serviceTypeIdentifier | 3 digits |
integer | $mailerIdentifier | 6 or 9 digits |
integer | $serialNumber | 9 (if mailerId is 6) or 6 digits (if mailerId is 9) |
drawText(resource $im, integer $x1, integer $y1, integer $x2, integer $y2)
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 | |
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 |
drawRectangle(resource $im, integer $x1, integer $y1, integer $x2, integer $y2, integer $color = self::COLOR_FG)
Draws an empty rectangle on the resource at a specific position with a determined color.
resource | $im | |
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $color |
drawFilledRectangle(resource $im, integer $x1, integer $y1, integer $x2, integer $y2, integer $color = self::COLOR_FG)
Draws a filled rectangle on the resource at a specific position with a determined color.
resource | $im | |
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $color |
getBiggestLabels(boolean $reversed = false) : array<mixed,\BCGLabel>
Returning the biggest label widths for LEFT/RIGHT and heights for TOP/BOTTOM.
boolean | $reversed |
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