Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Inherits BaseJavaClass.
Public Member Functions | |
__construct (?int $encodeType, ?string $codeText) | |
getParameters () | |
getBarcodeType () | |
setBarcodeType (int $value) | |
generateBarCodeGDImage () | |
generateBarCodeImage (int $format) | |
save (string $filePath, int $format) | |
getCodeText () | |
setCodeText ($value, ?string $encoding) | |
exportToXml ($filePath) | |
Public Member Functions inherited from BaseJavaClass | |
__construct ($javaClass) | |
getJavaClass () | |
getJavaClassName () | |
isNull () | |
printJavaClassName () | |
Static Public Member Functions | |
static | construct ($javaClass) |
static | importFromXml ($resource) |
Protected Member Functions | |
init () | |
Protected Member Functions inherited from BaseJavaClass | |
setJavaClass ($javaClass) | |
Private Attributes | |
$parameters | |
const | JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwBarcodeGenerator" |
BarcodeGenerator for backend barcode images generation.
supported symbologies: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, ISBN, GS1Code128, Postnet, Planet EAN14, SCC14, SSCC18, ITF14, SingaporePost ... 2D: Aztec, DataMatrix, PDf417, QR code ...
This sample shows how to create and save a barcode image.
BarcodeGenerator::__construct | ( | ?int | $encodeType, |
?string | $codeText | ||
) |
BarcodeGenerator constructor.
int | null | $encodeType | Barcode symbology type. Use EncodeTypes class to setup a symbology |
string | null | $codeText | Text to be encoded. Should be encoded in UTF-8 encoding |
BarcodeException |
|
static |
BarcodeGenerator::exportToXml | ( | $filePath | ) |
Exports BarCode properties to the xml-stream specified
$filePath | path to xml file |
BarcodeGenerator::generateBarCodeGDImage | ( | ) |
Generate the barcode image under current settings. This sample shows how to create and save a barcode image.
BarcodeException |
BarcodeGenerator::generateBarCodeImage | ( | int | $format | ) |
Generate the barcode image under current settings. This sample shows how to create and save a barcode image.
int | $format | value of BarCodeImageFormat (PNG, BMP, JPEG, GIF, EMF) |
BarcodeException |
BarcodeGenerator::getBarcodeType | ( | ) |
Barcode symbology type.
BarcodeGenerator::getCodeText | ( | ) |
Text to be encoded.
BarcodeGenerator::getParameters | ( | ) |
Generation parameters.
|
static |
Imports BarCode properties from the xml-file specified and creates BarcodeGenerator instance.
$resource | path to xml file or http resource |
|
protected |
Reimplemented from BaseJavaClass.
BarcodeGenerator::save | ( | string | $filePath, |
int | $format | ||
) |
Save barcode image to specific file in specific format.
string | $filePath | Path to save to. |
int | $format | value of BarCodeImageFormat (PNG, BMP, JPEG, GIF, EMF) |
BarcodeException |
BarcodeGenerator::setBarcodeType | ( | int | $value | ) |
Barcode symbology type.
BarcodeGenerator::setCodeText | ( | $value, | |
?string | $encoding | ||
) |
Encodes codetext with byte order mark (BOM) using specified encoding.
string|array | codeText CodeText string | Bytes of codetext |
int | encoding Applied encoding |
|
private |
|
private |