modTcpdfbarcode
class modTcpdfbarcode extends ModeleBarCode (View source)
Class to generate barcode images using tcpdf barcode generator
Properties
| string | $error | ||
| string | $version | Dolibarr version of the loaded document |
|
| bool | $is2d |
Methods
Return if a module can be used or not
Return description of numbering model
Save an image file on disk (with no output)
Return an image file on the fly (no need to write on disk) with the HTTP content-type (generated by TCPDF) of image.
Return true if encoding is supported
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
get available output_modes for tcpdf class with its translated description
Details
bool
isEnabled()
Return if a module can be used or not
string
info($langs)
Return description of numbering model
int
writeBarCode(string $code, string $encoding, string $readable = 'Y', int $scale = 1, $nooutputiferror = 0)
Save an image file on disk (with no output)
int
buildBarCode(string $code, string $encoding, string $readable = 'Y', int $scale = 1, $nooutputiferror = 0, $filebarcode = '')
Return an image file on the fly (no need to write on disk) with the HTTP content-type (generated by TCPDF) of image.
int
encodingIsSupported($encoding)
Return true if encoding is supported
canBeActivated(object $object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
string
getTcpdfEncodingType(string $dolEncodingType)
get available output_modes for tcpdf class with its translated description