aspose.barcode 24.5.1 → 24.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/AsposeBarcode.js
CHANGED
|
@@ -4,7 +4,7 @@ const joint_ = require('./Joint');
|
|
|
4
4
|
const complexbarcode_ = require("./ComplexBarcode");
|
|
5
5
|
const generation_ = require("./Generation");
|
|
6
6
|
const recognition_ = require("./Recognition");
|
|
7
|
-
const jar_name_ = "/aspose-barcode-nodejs-24.
|
|
7
|
+
const jar_name_ = "/aspose-barcode-nodejs-24.6.jar";
|
|
8
8
|
const jar_path_ = __dirname + jar_name_;
|
|
9
9
|
const fs = require("fs");
|
|
10
10
|
|
package/lib/Generation.js
CHANGED
|
@@ -128,11 +128,22 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* <p>
|
|
132
|
+
* Encodes codetext with byte order mark (BOM) using specified encoding.
|
|
133
|
+
* </p>
|
|
134
|
+
* @param codeText CodeText string | Bytes of codetext
|
|
135
|
+
* @param encoding Applied encoding
|
|
132
136
|
*/
|
|
133
|
-
setCodeText(
|
|
137
|
+
setCodeText(codeText, encoding)
|
|
134
138
|
{
|
|
135
|
-
|
|
139
|
+
if(Array.isArray(codeText))
|
|
140
|
+
{
|
|
141
|
+
this.getJavaClass().setCodeBytesSync(Buffer.from(codeText));
|
|
142
|
+
}
|
|
143
|
+
else
|
|
144
|
+
{
|
|
145
|
+
this.getJavaClass().setCodeTextSync(codeText, encoding);
|
|
146
|
+
}
|
|
136
147
|
}
|
|
137
148
|
|
|
138
149
|
/**
|
|
@@ -739,9 +750,14 @@ class BaseGenerationParameters extends joint.BaseJavaClass
|
|
|
739
750
|
* Background color of the barcode image.<br>
|
|
740
751
|
* Default value: #FFFFFF<br>
|
|
741
752
|
*/
|
|
742
|
-
setBackColor(
|
|
753
|
+
setBackColor(colorValue)
|
|
743
754
|
{
|
|
744
|
-
|
|
755
|
+
let hexValue = colorValue.substring(1, colorValue.length)
|
|
756
|
+
if(!(/^[0-9A-Fa-f]+$/.test(hexValue)))
|
|
757
|
+
{
|
|
758
|
+
throw new joint.BarcodeException("Illegal color value: " + hexValue);
|
|
759
|
+
}
|
|
760
|
+
this.getJavaClass().setBackColorSync((parseInt(hexValue, 16) << 8) / 256);
|
|
745
761
|
}
|
|
746
762
|
|
|
747
763
|
/**
|
|
@@ -2133,24 +2149,6 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
2133
2149
|
this.getJavaClass().setAspectRatioSync(java.newFloat(value));
|
|
2134
2150
|
}
|
|
2135
2151
|
|
|
2136
|
-
/**
|
|
2137
|
-
* Gets the encoding of codetext.<br>
|
|
2138
|
-
* Default value: UTF-16
|
|
2139
|
-
*/
|
|
2140
|
-
getCodeTextEncoding()
|
|
2141
|
-
{
|
|
2142
|
-
return this.getJavaClass().getCodeTextEncodingSync();
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
/**
|
|
2146
|
-
* Sets the encoding of codetext.<br>
|
|
2147
|
-
* Default value: UTF-16
|
|
2148
|
-
*/
|
|
2149
|
-
setCodeTextEncoding(value)
|
|
2150
|
-
{
|
|
2151
|
-
this.getJavaClass().setCodeTextEncodingSync(value);
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
2152
|
/**
|
|
2155
2153
|
* <p>
|
|
2156
2154
|
* Gets ECI encoding. Used when DataMatrixEncodeMode is Auto.
|
|
@@ -2839,24 +2837,6 @@ class QrParameters extends joint.BaseJavaClass
|
|
|
2839
2837
|
this.getJavaClass().setAspectRatioSync(java.newFloat(value));
|
|
2840
2838
|
}
|
|
2841
2839
|
|
|
2842
|
-
/**
|
|
2843
|
-
* Gets the encoding of codetext.<br>
|
|
2844
|
-
* Default value: UTF-8
|
|
2845
|
-
*/
|
|
2846
|
-
getCodeTextEncoding()
|
|
2847
|
-
{
|
|
2848
|
-
return this.getJavaClass().getCodeTextEncodingSync();
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
/**
|
|
2852
|
-
* Sets the encoding of codetext.<br>
|
|
2853
|
-
* Default value: UTF-8
|
|
2854
|
-
*/
|
|
2855
|
-
setCodeTextEncoding(value)
|
|
2856
|
-
{
|
|
2857
|
-
this.getJavaClass().setCodeTextEncodingSync(value);
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
2840
|
/**
|
|
2861
2841
|
* Returns a human-readable string representation of this QrParameters.<br>
|
|
2862
2842
|
* @return A string that represents this QrParameters.
|
|
@@ -2928,6 +2908,24 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2928
2908
|
this.getJavaClass().setPdf417CompactionModeSync(value);
|
|
2929
2909
|
}
|
|
2930
2910
|
|
|
2911
|
+
/**
|
|
2912
|
+
* Identifies Pdf417 encode mode.
|
|
2913
|
+
* Default value: Auto.
|
|
2914
|
+
*/
|
|
2915
|
+
getPdf417EncodeMode()
|
|
2916
|
+
{
|
|
2917
|
+
return this.getJavaClass().getPdf417EncodeModeSync();
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* Identifies Pdf417 encode mode.
|
|
2922
|
+
* Default value: Auto.
|
|
2923
|
+
*/
|
|
2924
|
+
setPdf417EncodeMode(pdf417EncodeMode)
|
|
2925
|
+
{
|
|
2926
|
+
this.getJavaClass().setPdf417EncodeModeSync(pdf417EncodeMode);
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2931
2929
|
/**
|
|
2932
2930
|
* Gets Pdf417 symbology type of BarCode's error correction level<br>
|
|
2933
2931
|
* ranging from level0 to level8, level0 means no error correction info,<br>
|
|
@@ -3162,24 +3160,6 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3162
3160
|
this.getJavaClass().setPdf417MacroChecksumSync(value);
|
|
3163
3161
|
}
|
|
3164
3162
|
|
|
3165
|
-
/**
|
|
3166
|
-
* Gets the encoding of codetext.<br>
|
|
3167
|
-
* Default value: UTF-8
|
|
3168
|
-
*/
|
|
3169
|
-
getCodeTextEncoding()
|
|
3170
|
-
{
|
|
3171
|
-
return this.getJavaClass().getCodeTextEncodingSync();
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
/**
|
|
3175
|
-
* Sets the encoding of codetext.<br>
|
|
3176
|
-
* Default value: UTF-8
|
|
3177
|
-
*/
|
|
3178
|
-
setCodeTextEncoding(value)
|
|
3179
|
-
{
|
|
3180
|
-
this.getJavaClass().setCodeTextEncodingSync(value);
|
|
3181
|
-
}
|
|
3182
|
-
|
|
3183
3163
|
/**
|
|
3184
3164
|
* Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details<br>
|
|
3185
3165
|
* about the used references for encoding the data in the symbol.<br>
|
|
@@ -4053,30 +4033,6 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
4053
4033
|
this.getJavaClass().setAspectRatioSync(java.newFloat(value));
|
|
4054
4034
|
}
|
|
4055
4035
|
|
|
4056
|
-
/**
|
|
4057
|
-
* <p>
|
|
4058
|
-
* Gets the encoding of codetext.
|
|
4059
|
-
* Default value: UTF-8
|
|
4060
|
-
* </p>
|
|
4061
|
-
*/
|
|
4062
|
-
getCodeTextEncoding()
|
|
4063
|
-
{
|
|
4064
|
-
console.log('This function is deprecated.');
|
|
4065
|
-
return this.getJavaClass().getCodeTextEncodingSync();
|
|
4066
|
-
}
|
|
4067
|
-
|
|
4068
|
-
/**
|
|
4069
|
-
* <p>
|
|
4070
|
-
* Sets the encoding of codetext.
|
|
4071
|
-
* Default value: UTF-8
|
|
4072
|
-
* </p>
|
|
4073
|
-
*/
|
|
4074
|
-
setCodeTextEncoding(codeTextEncoding)
|
|
4075
|
-
{
|
|
4076
|
-
console.log('This function is deprecated.');
|
|
4077
|
-
this.getJavaClass().setCodeTextEncodingSync(codeTextEncoding);
|
|
4078
|
-
}
|
|
4079
|
-
|
|
4080
4036
|
/**
|
|
4081
4037
|
* <p>
|
|
4082
4038
|
* Returns a human-readable string representation of this {@code AztecParameters}.
|
|
@@ -5296,14 +5252,45 @@ CodabarSymbol =
|
|
|
5296
5252
|
D: 68,
|
|
5297
5253
|
};
|
|
5298
5254
|
|
|
5255
|
+
|
|
5299
5256
|
/**
|
|
5300
|
-
*
|
|
5301
|
-
*
|
|
5257
|
+
* <p>
|
|
5258
|
+
* DataMatrix encoder's encoding mode, default to Auto
|
|
5259
|
+
* </p><p><hr><blockquote><pre>
|
|
5260
|
+
* This sample shows how to do codetext in Extended Mode.
|
|
5261
|
+
* <pre>
|
|
5262
|
+
* //Auto mode
|
|
5263
|
+
* let codetext = "犬Right狗";
|
|
5264
|
+
* let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, codetext);
|
|
5265
|
+
* generator.getParameters().getBarcode().getDataMatrix().setECIEncoding(ECIEncodings.UTF8);
|
|
5266
|
+
* generator.save("test.bmp", BarcodeImageFormat.PNG);
|
|
5267
|
+
* //Bytes mode
|
|
5268
|
+
* let encodedArr = [ 0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9 ];
|
|
5269
|
+
* let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, encodedArr);
|
|
5270
|
+
* generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.BINARY);
|
|
5271
|
+
* generator.save("test.bmp", BarcodeImageFormat.PNG);
|
|
5272
|
+
* //Extended codetext mode
|
|
5273
|
+
* //create codetext
|
|
5274
|
+
* let codetextBuilder=new DataMatrixExtCodetextBuilder();
|
|
5275
|
+
* codetextBuilder.addECICodetextWithEncodeMode(ECIEncodings.Win1251,DataMatrixEncodeMode.BYTES,"World");
|
|
5276
|
+
* codetextBuilder.addPlainCodetext("Will");
|
|
5277
|
+
* codetextBuilder.addECICodetext(ECIEncodings.UTF8,"犬Right狗");
|
|
5278
|
+
* codetextBuilder.addCodetextWithEncodeMode(DataMatrixEncodeMode.C40,"ABCDE");
|
|
5279
|
+
* //generate codetext
|
|
5280
|
+
* let codetext=codetextBuilder.getExtended();
|
|
5281
|
+
* //generate
|
|
5282
|
+
* let generator=new BarcodeGenerator(EncodeTypes.DATA_MATRIX,codetext);
|
|
5283
|
+
* generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT);
|
|
5284
|
+
* generator.save("test.bmp", BarcodeImageFormat.PNG);
|
|
5285
|
+
* </pre>
|
|
5286
|
+
* </pre></blockquote></hr></p>
|
|
5302
5287
|
*/
|
|
5303
5288
|
DataMatrixEncodeMode =
|
|
5304
5289
|
{
|
|
5305
5290
|
/**
|
|
5306
|
-
*
|
|
5291
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
5292
|
+
* Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
5293
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
5307
5294
|
*/
|
|
5308
5295
|
AUTO: 0,
|
|
5309
5296
|
|
|
@@ -5314,6 +5301,7 @@ DataMatrixEncodeMode =
|
|
|
5314
5301
|
|
|
5315
5302
|
/**
|
|
5316
5303
|
* Encode 8 bit values
|
|
5304
|
+
* @deprecated This property is obsolete and will be removed in future releases. Instead, use Base256 option.
|
|
5317
5305
|
*/
|
|
5318
5306
|
BYTES: 6,
|
|
5319
5307
|
|
|
@@ -5323,7 +5311,7 @@ DataMatrixEncodeMode =
|
|
|
5323
5311
|
C40: 8,
|
|
5324
5312
|
|
|
5325
5313
|
/**
|
|
5326
|
-
*
|
|
5314
|
+
* Uses Text encoding. Encodes Lower-case alphanumeric, Upper case and special characters
|
|
5327
5315
|
*/
|
|
5328
5316
|
TEXT: 9,
|
|
5329
5317
|
|
|
@@ -5338,21 +5326,52 @@ DataMatrixEncodeMode =
|
|
|
5338
5326
|
ANSIX12: 11,
|
|
5339
5327
|
|
|
5340
5328
|
/**
|
|
5341
|
-
* ExtendedCodetext mode allows to manually switch encodation schemes in codetext
|
|
5342
|
-
*
|
|
5343
|
-
*
|
|
5344
|
-
*
|
|
5329
|
+
* ExtendedCodetext mode allows to manually switch encodation schemes and ECI encodings in codetext.
|
|
5330
|
+
* It is better to use DataMatrixExtCodetextBuilder for extended codetext generation.
|
|
5331
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
5332
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
5333
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
5345
5334
|
*
|
|
5346
|
-
*
|
|
5347
|
-
*
|
|
5335
|
+
* Encodation schemes are set in the next format : "\Encodation_scheme_name:text\Encodation_scheme_name:text".
|
|
5336
|
+
* Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto.
|
|
5348
5337
|
*
|
|
5349
|
-
*
|
|
5350
|
-
*
|
|
5351
|
-
*
|
|
5352
|
-
|
|
5353
|
-
|
|
5338
|
+
* All backslashes (\) must be doubled in text.
|
|
5339
|
+
*
|
|
5340
|
+
* @deprecated This property is obsolete and will be removed in future releases. Instead, use the 'Extended' encode mode
|
|
5341
|
+
*/
|
|
5342
|
+
EXTENDED_CODETEXT: 12,
|
|
5343
|
+
|
|
5344
|
+
/**
|
|
5345
|
+
* ExtendedCodetext mode allows to manually switch encodation schemes and ECI encodings in codetext.
|
|
5346
|
+
* It is better to use DataMatrixExtCodetextBuilder for extended codetext generation.
|
|
5347
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
5348
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
5349
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
5350
|
+
*
|
|
5351
|
+
* Encodation schemes are set in the next format : "\Encodation_scheme_name:text\Encodation_scheme_name:text".
|
|
5352
|
+
* Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto.
|
|
5353
|
+
*
|
|
5354
|
+
* All backslashes (\) must be doubled in text.
|
|
5355
|
+
*/
|
|
5356
|
+
EXTENDED: 13,
|
|
5357
|
+
|
|
5358
|
+
/**
|
|
5359
|
+
* Encode 8 bit values
|
|
5360
|
+
*/
|
|
5361
|
+
BASE_256: 14,
|
|
5362
|
+
|
|
5363
|
+
/**
|
|
5364
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
5365
|
+
* If a Unicode character is found, an exception is thrown.
|
|
5354
5366
|
*/
|
|
5355
|
-
|
|
5367
|
+
BINARY: 15,
|
|
5368
|
+
|
|
5369
|
+
/**
|
|
5370
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
5371
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
5372
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
5373
|
+
*/
|
|
5374
|
+
ECI: 16
|
|
5356
5375
|
};
|
|
5357
5376
|
|
|
5358
5377
|
/**
|
|
@@ -5413,56 +5432,64 @@ ITF14BorderType =
|
|
|
5413
5432
|
};
|
|
5414
5433
|
|
|
5415
5434
|
/**
|
|
5416
|
-
*
|
|
5417
|
-
*
|
|
5418
|
-
*
|
|
5419
|
-
*
|
|
5420
|
-
*
|
|
5421
|
-
*
|
|
5422
|
-
*
|
|
5423
|
-
*
|
|
5424
|
-
*
|
|
5435
|
+
* <p>
|
|
5436
|
+
* Encoding mode for QR barcodes.
|
|
5437
|
+
* </p>
|
|
5438
|
+
* <p><hr><blockquote><pre>
|
|
5439
|
+
* Example how to use ECI encoding
|
|
5440
|
+
* <pre>
|
|
5441
|
+
* generator = new BarcodeGenerator(EncodeTypes.QR, "12345TEXT");
|
|
5442
|
+
* generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ECI_ENCODING);
|
|
5443
|
+
* generator.getParameters().getBarcode().getQR().setQrECIEncoding(ECIEncodings.UTF8);
|
|
5444
|
+
* generator.save("test.png", BarcodeImageFormat.PNG);
|
|
5445
|
+
* </pre>
|
|
5446
|
+
* </pre></blockquote></hr></p>
|
|
5447
|
+
* <p><hr><blockquote><pre>
|
|
5448
|
+
* Example how to use FNC1 first position in Extended Mode
|
|
5449
|
+
* <pre>
|
|
5450
|
+
* textBuilder = new QrExtCodetextBuilder();
|
|
5451
|
+
* textBuilder.addPlainCodetext("000%89%%0");
|
|
5452
|
+
* textBuilder.addFNC1GroupSeparator();
|
|
5453
|
+
* textBuilder.addPlainCodetext("12345<FNC1>");
|
|
5454
|
+
* //generate barcode
|
|
5455
|
+
* generator = new BarcodeGenerator(EncodeTypes.QR);
|
|
5456
|
+
* generator.setCodeText(textBuilder.getExtended());
|
|
5457
|
+
* generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
|
|
5458
|
+
* generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
|
|
5459
|
+
* generator.save("d:/test.png", BarcodeImageFormat.PNG);
|
|
5460
|
+
* </pre>
|
|
5425
5461
|
*
|
|
5426
|
-
*
|
|
5427
|
-
*
|
|
5428
|
-
* QrExtCodetextBuilder textBuilder = new QrExtCodetextBuilder();
|
|
5429
|
-
* textBuilder.addPlainCodetext("000%89%%0");
|
|
5430
|
-
* textBuilder.addFNC1GroupSeparator();
|
|
5431
|
-
* textBuilder.addPlainCodetext("12345<FNC1>");
|
|
5432
|
-
* //generate barcode
|
|
5433
|
-
* let generator = new BarcodeGenerator(EncodeTypes.QR);
|
|
5434
|
-
* generator.setCodeText(textBuilder.getExtendedCodetext());
|
|
5435
|
-
* generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
|
|
5436
|
-
* generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
|
|
5437
|
-
* generator.save("d:/test.png", BarcodeImageFormat.PNG);
|
|
5462
|
+
* This sample shows how to use FNC1 second position in Extended Mode.
|
|
5463
|
+
* <pre>
|
|
5438
5464
|
*
|
|
5439
|
-
* @example
|
|
5440
|
-
* // This sample shows how to use FNC1 second position in Extended Mode.
|
|
5441
5465
|
* //create codetext
|
|
5442
|
-
*
|
|
5466
|
+
* textBuilder = new QrExtCodetextBuilder();
|
|
5443
5467
|
* textBuilder.addFNC1SecondPosition("12");
|
|
5444
5468
|
* textBuilder.addPlainCodetext("TRUE3456");
|
|
5445
5469
|
* //generate barcode
|
|
5446
|
-
*
|
|
5447
|
-
* generator.setCodeText(textBuilder.
|
|
5470
|
+
* generator = new BarcodeGenerator(EncodeTypes.QR);
|
|
5471
|
+
* generator.setCodeText(textBuilder.getExtended());
|
|
5448
5472
|
* generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
|
|
5449
5473
|
* generator.save("d:/test.png", BarcodeImageFormat.PNG);
|
|
5474
|
+
* </pre>
|
|
5475
|
+
*
|
|
5476
|
+
* This sample shows how to use multi ECI mode in Extended Mode.
|
|
5477
|
+
* <pre>
|
|
5450
5478
|
*
|
|
5451
|
-
* @example
|
|
5452
|
-
* //This sample shows how to use multi ECI mode in Extended Mode.
|
|
5453
5479
|
* //create codetext
|
|
5454
|
-
*
|
|
5480
|
+
* textBuilder = new QrExtCodetextBuilder();
|
|
5455
5481
|
* textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
|
|
5456
5482
|
* textBuilder.addECICodetext(ECIEncodings.UTF8, "Right");
|
|
5457
5483
|
* textBuilder.addECICodetext(ECIEncodings.UTF16BE, "Power");
|
|
5458
5484
|
* textBuilder.addPlainCodetext("t\e\\st");
|
|
5459
5485
|
* //generate barcode
|
|
5460
|
-
*
|
|
5461
|
-
* generator.setCodeText(textBuilder.
|
|
5486
|
+
* generator = new BarcodeGenerator(EncodeTypes.QR);
|
|
5487
|
+
* generator.setCodeText(textBuilder.getExtended());
|
|
5462
5488
|
* generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
|
|
5463
5489
|
* generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
|
|
5464
5490
|
* generator.save("d:/test.png", BarcodeImageFormat.PNG);
|
|
5465
|
-
*
|
|
5491
|
+
* </pre>
|
|
5492
|
+
* </pre></blockquote></hr></p>
|
|
5466
5493
|
*/
|
|
5467
5494
|
QREncodeMode =
|
|
5468
5495
|
{
|
|
@@ -7019,11 +7046,39 @@ ECIEncodings =
|
|
|
7019
7046
|
/**
|
|
7020
7047
|
* GB (PRC) Chinese Character Set encoding. ECI Id:"\000029"
|
|
7021
7048
|
*/
|
|
7022
|
-
|
|
7049
|
+
GB2312: 29,
|
|
7023
7050
|
/**
|
|
7024
7051
|
* Korean Character Set encoding. ECI Id:"\000030"
|
|
7025
7052
|
*/
|
|
7026
7053
|
EUC_KR: 30,
|
|
7054
|
+
/**
|
|
7055
|
+
* <p>GBK (extension of GB2312 for Simplified Chinese) encoding. ECI Id:"\000031"</p>
|
|
7056
|
+
*/
|
|
7057
|
+
GBK: 31,
|
|
7058
|
+
/**
|
|
7059
|
+
* <p>GGB18030 Chinese Character Set encoding. ECI Id:"\000032"</p>
|
|
7060
|
+
*/
|
|
7061
|
+
GB18030: 32,
|
|
7062
|
+
/**
|
|
7063
|
+
* <p> ISO/IEC 10646 UTF-16LE encoding. ECI Id:"\000033"</p>
|
|
7064
|
+
*/
|
|
7065
|
+
UTF16LE: 33,
|
|
7066
|
+
/**
|
|
7067
|
+
* <p> ISO/IEC 10646 UTF-32BE encoding. ECI Id:"\000034"</p>
|
|
7068
|
+
*/
|
|
7069
|
+
UTF32BE: 34,
|
|
7070
|
+
/**
|
|
7071
|
+
* <p> ISO/IEC 10646 UTF-32LE encoding. ECI Id:"\000035"</p>
|
|
7072
|
+
*/
|
|
7073
|
+
UTF32LE: 35,
|
|
7074
|
+
/**
|
|
7075
|
+
* <p> ISO/IEC 646: ISO 7-bit coded character set - Invariant Characters set encoding. ECI Id:"\000170"</p>
|
|
7076
|
+
*/
|
|
7077
|
+
INVARIANT: 170,
|
|
7078
|
+
/**
|
|
7079
|
+
* <p> 8-bit binary data. ECI Id:"\000899"</p>
|
|
7080
|
+
*/
|
|
7081
|
+
BINARY: 899,
|
|
7027
7082
|
/**
|
|
7028
7083
|
* No Extended Channel Interpretation
|
|
7029
7084
|
*/
|
|
@@ -7227,25 +7282,51 @@ Pdf417MacroTerminator =
|
|
|
7227
7282
|
*/
|
|
7228
7283
|
MaxiCodeEncodeMode =
|
|
7229
7284
|
{
|
|
7230
|
-
|
|
7231
7285
|
/**
|
|
7232
|
-
*
|
|
7286
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
7287
|
+
* Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7288
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7233
7289
|
*/
|
|
7234
7290
|
AUTO: 0,
|
|
7235
7291
|
|
|
7236
7292
|
/**
|
|
7237
7293
|
* Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
|
|
7294
|
+
* @deprecated
|
|
7238
7295
|
*/
|
|
7239
7296
|
BYTES: 1,
|
|
7240
7297
|
|
|
7241
7298
|
/**
|
|
7242
|
-
* Extended mode which supports multi ECI modes
|
|
7243
|
-
* It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation
|
|
7244
|
-
* Use Display2DText property to set visible text to removing managing characters
|
|
7245
|
-
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7299
|
+
* Extended mode which supports multi ECI modes.
|
|
7300
|
+
* It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.
|
|
7301
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
7302
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7303
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
7304
|
+
*
|
|
7305
|
+
* @deprecated
|
|
7306
|
+
*/
|
|
7307
|
+
EXTENDED_CODETEXT: 2,
|
|
7308
|
+
|
|
7309
|
+
/**
|
|
7310
|
+
* Extended mode which supports multi ECI modes.
|
|
7311
|
+
* It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.
|
|
7312
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
7313
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7246
7314
|
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
7247
7315
|
*/
|
|
7248
|
-
|
|
7316
|
+
EXTENDED: 3,
|
|
7317
|
+
|
|
7318
|
+
/**
|
|
7319
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
7320
|
+
* If a Unicode character is found, an exception is thrown.
|
|
7321
|
+
*/
|
|
7322
|
+
BINARY: 4,
|
|
7323
|
+
|
|
7324
|
+
/**
|
|
7325
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7326
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7327
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
7328
|
+
*/
|
|
7329
|
+
ECI: 5
|
|
7249
7330
|
}
|
|
7250
7331
|
|
|
7251
7332
|
/**
|
|
@@ -7415,29 +7496,87 @@ MaxiCodeMode =
|
|
|
7415
7496
|
DotCodeEncodeMode =
|
|
7416
7497
|
{
|
|
7417
7498
|
/**
|
|
7418
|
-
*
|
|
7419
|
-
*
|
|
7499
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
7500
|
+
* Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7501
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7420
7502
|
* </p>
|
|
7421
7503
|
*/
|
|
7422
7504
|
AUTO: 0,
|
|
7423
7505
|
|
|
7424
7506
|
/**
|
|
7425
|
-
* <p>
|
|
7426
7507
|
* Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
|
|
7427
|
-
*
|
|
7508
|
+
* @deprecated
|
|
7428
7509
|
*/
|
|
7429
7510
|
BYTES: 1,
|
|
7430
7511
|
|
|
7431
7512
|
/**
|
|
7432
|
-
*
|
|
7433
|
-
*
|
|
7434
|
-
*
|
|
7435
|
-
*
|
|
7436
|
-
*
|
|
7513
|
+
* Extended mode which supports multi ECI modes.
|
|
7514
|
+
* It is better to use DotCodeExtCodetextBuilder for extended codetext generation.
|
|
7515
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
7516
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7517
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
7518
|
+
* @deprecated
|
|
7519
|
+
*/
|
|
7520
|
+
EXTENDED_CODETEXT: 2,
|
|
7521
|
+
|
|
7522
|
+
/**
|
|
7523
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
7524
|
+
* If a Unicode character is found, an exception is thrown.
|
|
7437
7525
|
*/
|
|
7438
|
-
|
|
7526
|
+
BINARY: 3,
|
|
7527
|
+
|
|
7528
|
+
/**
|
|
7529
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7530
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7531
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
7532
|
+
*/
|
|
7533
|
+
ECI: 4,
|
|
7534
|
+
|
|
7535
|
+
/**
|
|
7536
|
+
* Extended mode which supports multi ECI modes.
|
|
7537
|
+
* It is better to use DotCodeExtCodetextBuilder for extended codetext generation.
|
|
7538
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
7539
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7540
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
7541
|
+
*/
|
|
7542
|
+
EXTENDED: 5
|
|
7439
7543
|
}
|
|
7440
7544
|
|
|
7545
|
+
/**
|
|
7546
|
+
* Pdf417 barcode encode mode
|
|
7547
|
+
*/
|
|
7548
|
+
Pdf417EncodeMode =
|
|
7549
|
+
{
|
|
7550
|
+
/**
|
|
7551
|
+
*
|
|
7552
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
7553
|
+
* Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7554
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7555
|
+
*/
|
|
7556
|
+
AUTO: 0,
|
|
7557
|
+
|
|
7558
|
+
/**
|
|
7559
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
7560
|
+
* If a Unicode character is found, an exception is thrown.
|
|
7561
|
+
*/
|
|
7562
|
+
BINARY: 1,
|
|
7563
|
+
|
|
7564
|
+
/**
|
|
7565
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7566
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7567
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
7568
|
+
*/
|
|
7569
|
+
ECI: 2,
|
|
7570
|
+
|
|
7571
|
+
/**
|
|
7572
|
+
* Extended mode which supports multi ECI modes.
|
|
7573
|
+
* It is better to use Pdf417ExtCodetextBuilder for extended codetext generation.
|
|
7574
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
7575
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7576
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
7577
|
+
*/
|
|
7578
|
+
EXTENDED: 3
|
|
7579
|
+
}
|
|
7441
7580
|
|
|
7442
7581
|
/**
|
|
7443
7582
|
* <p>
|
|
@@ -8641,45 +8780,60 @@ DataMatrixVersion =
|
|
|
8641
8780
|
AztecEncodeMode =
|
|
8642
8781
|
{
|
|
8643
8782
|
/**
|
|
8644
|
-
*
|
|
8645
|
-
*
|
|
8646
|
-
*
|
|
8783
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
8784
|
+
* Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
8785
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
8647
8786
|
*/
|
|
8648
8787
|
AUTO: 0,
|
|
8649
8788
|
|
|
8650
8789
|
/**
|
|
8651
|
-
* <p>
|
|
8652
8790
|
* Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
|
|
8653
|
-
*
|
|
8791
|
+
* @deprecated
|
|
8654
8792
|
*/
|
|
8655
8793
|
BYTES: 1,
|
|
8656
8794
|
|
|
8657
8795
|
/**
|
|
8658
|
-
*
|
|
8659
|
-
*
|
|
8660
|
-
*
|
|
8661
|
-
*
|
|
8662
|
-
*
|
|
8663
|
-
*
|
|
8664
|
-
* </p>
|
|
8796
|
+
* Extended mode which supports multi ECI modes.
|
|
8797
|
+
* It is better to use AztecExtCodetextBuilder for extended codetext generation.
|
|
8798
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
8799
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
8800
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
8801
|
+
* @deprecated
|
|
8665
8802
|
*/
|
|
8666
|
-
EXTENDED_CODETEXT: 2
|
|
8803
|
+
EXTENDED_CODETEXT: 2,
|
|
8804
|
+
/**
|
|
8805
|
+
* Extended mode which supports multi ECI modes.
|
|
8806
|
+
* It is better to use AztecExtCodetextBuilder for extended codetext generation.
|
|
8807
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
8808
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
8809
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
8810
|
+
*/
|
|
8811
|
+
EXTENDED: 3,
|
|
8812
|
+
|
|
8813
|
+
/**
|
|
8814
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
8815
|
+
* If a Unicode character is found, an exception is thrown.
|
|
8816
|
+
*/
|
|
8817
|
+
BINARY: 4,
|
|
8818
|
+
|
|
8819
|
+
/**
|
|
8820
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
8821
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
8822
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
8823
|
+
*/
|
|
8824
|
+
ECI: 5
|
|
8667
8825
|
}
|
|
8668
8826
|
|
|
8669
8827
|
/**
|
|
8670
|
-
* <p>
|
|
8671
8828
|
* Version of MicroQR Code.
|
|
8672
8829
|
* From M1 to M4.
|
|
8673
|
-
* </p>
|
|
8674
8830
|
* @enum
|
|
8675
8831
|
*/
|
|
8676
8832
|
MicroQRVersion =
|
|
8677
8833
|
{
|
|
8678
8834
|
/**
|
|
8679
|
-
* <p>
|
|
8680
8835
|
* Specifies to automatically pick up the best version for MicroQR.
|
|
8681
8836
|
* This is default value.
|
|
8682
|
-
* </p>
|
|
8683
8837
|
*/
|
|
8684
8838
|
AUTO: 0,
|
|
8685
8839
|
|
package/lib/Recognition.js
CHANGED
|
@@ -1344,6 +1344,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1344
1344
|
_dataMatrixExtendedParameters;
|
|
1345
1345
|
_aztecExtendedParameters;
|
|
1346
1346
|
_gs1CompositeBarExtendedParameters;
|
|
1347
|
+
_codabarExtendedParameters;
|
|
1347
1348
|
|
|
1348
1349
|
constructor(javaclass)
|
|
1349
1350
|
{
|
|
@@ -1363,6 +1364,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1363
1364
|
this._dataMatrixExtendedParameters = new DataMatrixExtendedParameters(this.getJavaClass().getDataMatrixSync());
|
|
1364
1365
|
this._aztecExtendedParameters = new AztecExtendedParameters(this.getJavaClass().getAztecSync());
|
|
1365
1366
|
this._gs1CompositeBarExtendedParameters = new GS1CompositeBarExtendedParameters(this.getJavaClass().getGS1CompositeBarSync());
|
|
1367
|
+
this._codabarExtendedParameters = new CodabarExtendedParameters(this.getJavaClass().getCodabarSync());
|
|
1366
1368
|
}
|
|
1367
1369
|
|
|
1368
1370
|
/**
|
|
@@ -1424,6 +1426,15 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1424
1426
|
return this._gs1CompositeBarExtendedParameters;
|
|
1425
1427
|
}
|
|
1426
1428
|
|
|
1429
|
+
/**
|
|
1430
|
+
* Gets a Codabar additional information{@code CodabarExtendedParameters} of recognized barcode
|
|
1431
|
+
* @return A Codabar additional information{@code CodabarExtendedParameters} of recognized barcode
|
|
1432
|
+
*/
|
|
1433
|
+
getCodabar()
|
|
1434
|
+
{
|
|
1435
|
+
return this._codabarExtendedParameters;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1427
1438
|
/**
|
|
1428
1439
|
* Gets a special data Code128ExtendedParameters of Code128 recognized barcode Value: A special data Code128ExtendedParameters of Code128 recognized barcode
|
|
1429
1440
|
*/
|
|
@@ -1542,9 +1553,9 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1542
1553
|
class QualitySettings extends joint.BaseJavaClass
|
|
1543
1554
|
{
|
|
1544
1555
|
|
|
1545
|
-
constructor(
|
|
1556
|
+
constructor(javaClass)
|
|
1546
1557
|
{
|
|
1547
|
-
super(
|
|
1558
|
+
super(javaClass);
|
|
1548
1559
|
this.init();
|
|
1549
1560
|
}
|
|
1550
1561
|
|
|
@@ -1605,11 +1616,11 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
1605
1616
|
* This sample shows how to use MaxQuality mode
|
|
1606
1617
|
* <pre>
|
|
1607
1618
|
*
|
|
1608
|
-
*
|
|
1619
|
+
* reader = new BarCodeReader("test.png"null, null, DecodeType.CODE_39_EXTENDED, DecodeType.CODE_128);
|
|
1609
1620
|
* {
|
|
1610
|
-
*
|
|
1611
|
-
*
|
|
1612
|
-
* echo (
|
|
1621
|
+
* reader.setQualitySettings(QualitySettings.getMaxQuality());
|
|
1622
|
+
* for(let i = 0; i < reader.readBarCodes().length; i++)
|
|
1623
|
+
* echo (reader.getFoundBarcodes()[i].getCodeText());
|
|
1613
1624
|
* }
|
|
1614
1625
|
* </pre>
|
|
1615
1626
|
* </pre></blockquote></hr></p>Value:
|
|
@@ -2114,7 +2125,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2114
2125
|
* @example
|
|
2115
2126
|
*
|
|
2116
2127
|
* let generator = new BarcodeGenerator(EncodeTypes.QR, "Слово"))
|
|
2117
|
-
*
|
|
2128
|
+
* im = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
|
|
2118
2129
|
*
|
|
2119
2130
|
* //detects encoding for Unicode codesets is enabled
|
|
2120
2131
|
* let reader = new BarCodeReader(im, DecodeType.QR);
|
|
@@ -2144,7 +2155,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2144
2155
|
* @example
|
|
2145
2156
|
*
|
|
2146
2157
|
* let generator = new BarcodeGenerator(EncodeTypes.QR, "Слово"))
|
|
2147
|
-
*
|
|
2158
|
+
* im = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
|
|
2148
2159
|
*
|
|
2149
2160
|
* //detects encoding for Unicode codesets is enabled
|
|
2150
2161
|
* let reader = new BarCodeReader(im, DecodeType.QR);
|
|
@@ -2621,7 +2632,7 @@ class GS1CompositeBarExtendedParameters extends joint.BaseJavaClass
|
|
|
2621
2632
|
* This sample shows how to get Aztec raw values
|
|
2622
2633
|
* <pre>
|
|
2623
2634
|
* let generator = new BarcodeGenerator(EncodeTypes.AZTEC, "12345");
|
|
2624
|
-
* generator.save("test.png", BarcodeImageFormat
|
|
2635
|
+
* generator.save("test.png", BarcodeImageFormat.PNG);
|
|
2625
2636
|
*
|
|
2626
2637
|
* @example
|
|
2627
2638
|
* BarCodeReader reader = new BarCodeReader("test.png", null, DecodeType.AZTEC);
|
|
@@ -2718,6 +2729,102 @@ class AztecExtendedParameters extends joint.BaseJavaClass
|
|
|
2718
2729
|
}
|
|
2719
2730
|
}
|
|
2720
2731
|
|
|
2732
|
+
/**
|
|
2733
|
+
* <p>
|
|
2734
|
+
* Stores a Codabar additional information of recognized barcode
|
|
2735
|
+
* </p>
|
|
2736
|
+
*/
|
|
2737
|
+
class CodabarExtendedParameters extends joint.BaseJavaClass
|
|
2738
|
+
{
|
|
2739
|
+
constructor(javaClass)
|
|
2740
|
+
{
|
|
2741
|
+
super(javaClass);
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
init()
|
|
2745
|
+
{
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* <p>
|
|
2750
|
+
* Gets or sets a Codabar start symbol.
|
|
2751
|
+
* Default value: CodabarSymbol.A
|
|
2752
|
+
* </p>
|
|
2753
|
+
*/
|
|
2754
|
+
getCodabarStartSymbol()
|
|
2755
|
+
{
|
|
2756
|
+
return this.getJavaClass().getCodabarStartSymbolSync();
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* <p>
|
|
2761
|
+
* Gets or sets a Codabar start symbol.
|
|
2762
|
+
* Default value: CodabarSymbol.A
|
|
2763
|
+
* </p>
|
|
2764
|
+
*/
|
|
2765
|
+
setCodabarStartSymbol(value)
|
|
2766
|
+
{
|
|
2767
|
+
this.getJavaClass().setCodabarStartSymbolSync(value);
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* <p>
|
|
2772
|
+
* Gets or sets a Codabar stop symbol.
|
|
2773
|
+
* Default value: CodabarSymbol.A
|
|
2774
|
+
* </p>
|
|
2775
|
+
*/
|
|
2776
|
+
getCodabarStopSymbol()
|
|
2777
|
+
{
|
|
2778
|
+
return this.getJavaClass().getCodabarStopSymbolSync();
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* <p>
|
|
2783
|
+
* Gets or sets a Codabar stop symbol.
|
|
2784
|
+
* Default value: CodabarSymbol.A
|
|
2785
|
+
* </p>
|
|
2786
|
+
*/
|
|
2787
|
+
setCodabarStopSymbol(value)
|
|
2788
|
+
{
|
|
2789
|
+
this.getJavaClass().setCodabarStopSymbolSync(value);
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
/**
|
|
2794
|
+
* <p>
|
|
2795
|
+
* Returns a value indicating whether this instance is equal to a specified {@code CodabarExtendedParameters} value.
|
|
2796
|
+
* </p>
|
|
2797
|
+
* @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
|
|
2798
|
+
* @param obj An System.Object value to compare to this instance.
|
|
2799
|
+
*/
|
|
2800
|
+
equals(obj)
|
|
2801
|
+
{
|
|
2802
|
+
return this.getJavaClass().equalsSync(obj.getJavaClass());
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
/**
|
|
2806
|
+
* <p>
|
|
2807
|
+
* Returns the hash code for this instance.
|
|
2808
|
+
* </p>
|
|
2809
|
+
* @return A 32-bit signed integer hash code.
|
|
2810
|
+
*/
|
|
2811
|
+
hashCode()
|
|
2812
|
+
{
|
|
2813
|
+
return this.getJavaClass().hashCodeSync();
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* <p>
|
|
2818
|
+
* Returns a human-readable string representation of this {@code CodabarExtendedParameters}.
|
|
2819
|
+
* </p>
|
|
2820
|
+
* @return A string that represents this {@code CodabarExtendedParameters}.
|
|
2821
|
+
*/
|
|
2822
|
+
toString()
|
|
2823
|
+
{
|
|
2824
|
+
return this.getJavaClass().toStringSync();
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2721
2828
|
/**
|
|
2722
2829
|
* Specify the type of barcode to read.
|
|
2723
2830
|
*
|
|
Binary file
|