Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Public Attributes | |
const | AUTO = "0" |
const | ASCII = "1" |
const | FULL = "6" |
const | CUSTOM = "7" |
const | C40 = "8" |
const | TEXT = "9" |
const | EDIFACT = 10 |
const | ANSIX12 = 11 |
const | EXTENDED_CODETEXT = 12 |
DataMatrix encoder's encoding mode, default to AUTO
const ANSIX12 = 11 |
Uses ANSI X12 encoding.
const ASCII = "1" |
Encodes one alphanumeric or two numeric characters per byte
const AUTO = "0" |
Automatically pick up the best encode mode for datamatrix encoding
const C40 = "8" |
Uses C40 encoding. Encodes Upper-case alphanumeric, Lower case and special characters
const CUSTOM = "7" |
Encode with the encoding specified in BarCodeBuilder.CodeTextEncoding
const EDIFACT = 10 |
Uses EDIFACT encoding. Uses six bits per character, encodes digits, upper-case letters, and many punctuation marks, but has no support for lower-case letters.
const EXTENDED_CODETEXT = 12 |
ExtendedCodetext mode allows to manually switch encodation schemes in codetext. Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto. Extended codetext example: "\ansix12:ANSIX12TEXT\ascii:backslash must be \ doubled\edifact:EdifactEncodedText" All backslashes () must be doubled in text.
This sample shows how to do codetext in Extended Mode.
$generator = new BarcodeGenerator(EncodeTypes::DATA_MATRIX); $generator->setCodeText("\\ansix12:ANSIX12TEXT\\ascii:backslash must be \\\\ doubled\\edifact:EdifactEncodedText"); $generator->getParameters()->getBarcode()->getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT); $generator->getParameters()->getBarcode()->getCodeTextParameters().setTwoDDisplayText("My Text"); $generator->save("test.png");
const FULL = "6" |
Encode 8 bit values
const TEXT = "9" |
Uses TEXT encoding. Encodes Lower-case alphanumeric, Upper case and special characters