aspose.barcode 24.6.0 → 24.7.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/Generation.js
CHANGED
|
@@ -94,12 +94,10 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
94
94
|
*/
|
|
95
95
|
generateBarCodeImage(format)
|
|
96
96
|
{
|
|
97
|
-
try
|
|
98
|
-
{
|
|
97
|
+
try {
|
|
99
98
|
let base64Image = this.getJavaClass().generateBarCodeImageSync(format);
|
|
100
99
|
return (base64Image);
|
|
101
|
-
} catch (e)
|
|
102
|
-
{
|
|
100
|
+
} catch (e) {
|
|
103
101
|
throw new joint.BarcodeException(e)
|
|
104
102
|
}
|
|
105
103
|
}
|
|
@@ -136,12 +134,10 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
136
134
|
*/
|
|
137
135
|
setCodeText(codeText, encoding)
|
|
138
136
|
{
|
|
139
|
-
if(Array.isArray(codeText))
|
|
140
|
-
{
|
|
137
|
+
if (Array.isArray(codeText)) {
|
|
141
138
|
this.getJavaClass().setCodeBytesSync(Buffer.from(codeText));
|
|
142
139
|
}
|
|
143
|
-
else
|
|
144
|
-
{
|
|
140
|
+
else {
|
|
145
141
|
this.getJavaClass().setCodeTextSync(codeText, encoding);
|
|
146
142
|
}
|
|
147
143
|
}
|
|
@@ -154,17 +150,14 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
154
150
|
*/
|
|
155
151
|
exportToXml(filePath)
|
|
156
152
|
{
|
|
157
|
-
try
|
|
158
|
-
{
|
|
153
|
+
try {
|
|
159
154
|
let xmlData = this.getJavaClass().exportToXmlSync();
|
|
160
155
|
let isSaved = xmlData != null;
|
|
161
|
-
if (isSaved)
|
|
162
|
-
{
|
|
156
|
+
if (isSaved) {
|
|
163
157
|
fs.writeFileSync(filePath, xmlData);
|
|
164
158
|
}
|
|
165
159
|
return isSaved;
|
|
166
|
-
} catch (ex)
|
|
167
|
-
{
|
|
160
|
+
} catch (ex) {
|
|
168
161
|
throw new BarcodeException(ex.getMessage());
|
|
169
162
|
}
|
|
170
163
|
}
|
|
@@ -178,14 +171,12 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
178
171
|
*/
|
|
179
172
|
importFromXml(filePath)
|
|
180
173
|
{
|
|
181
|
-
try
|
|
182
|
-
{
|
|
174
|
+
try {
|
|
183
175
|
let xmlData = joint.convertResourceToBase64String(filePath);
|
|
184
176
|
let offset = 6;
|
|
185
177
|
xmlData = xmlData.substr(offset);
|
|
186
178
|
return BarcodeGenerator.construct(java(BarcodeGenerator.javaClassName).importFromXmlSync(xmlData));
|
|
187
|
-
} catch (ex)
|
|
188
|
-
{
|
|
179
|
+
} catch (ex) {
|
|
189
180
|
throw new BarcodeException(ex.getMessage());
|
|
190
181
|
}
|
|
191
182
|
}
|
|
@@ -307,8 +298,7 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
307
298
|
{
|
|
308
299
|
let intColor = this.getJavaClass().getBarColorSync();
|
|
309
300
|
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
310
|
-
while (hexColor.length < 6)
|
|
311
|
-
{
|
|
301
|
+
while (hexColor.length < 6) {
|
|
312
302
|
hexColor = "0" + hexColor;
|
|
313
303
|
}
|
|
314
304
|
hexColor = "#" + hexColor;
|
|
@@ -738,8 +728,7 @@ class BaseGenerationParameters extends joint.BaseJavaClass
|
|
|
738
728
|
{
|
|
739
729
|
let intColor = this.getJavaClass().getBackColorSync();
|
|
740
730
|
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
741
|
-
while (hexColor.length < 6)
|
|
742
|
-
{
|
|
731
|
+
while (hexColor.length < 6) {
|
|
743
732
|
hexColor = "0" + hexColor;
|
|
744
733
|
}
|
|
745
734
|
hexColor = "#" + hexColor;
|
|
@@ -753,8 +742,7 @@ class BaseGenerationParameters extends joint.BaseJavaClass
|
|
|
753
742
|
setBackColor(colorValue)
|
|
754
743
|
{
|
|
755
744
|
let hexValue = colorValue.substring(1, colorValue.length)
|
|
756
|
-
if(!(/^[0-9A-Fa-f]+$/.test(hexValue)))
|
|
757
|
-
{
|
|
745
|
+
if (!(/^[0-9A-Fa-f]+$/.test(hexValue))) {
|
|
758
746
|
throw new joint.BarcodeException("Illegal color value: " + hexValue);
|
|
759
747
|
}
|
|
760
748
|
this.getJavaClass().setBackColorSync((parseInt(hexValue, 16) << 8) / 256);
|
|
@@ -1033,8 +1021,7 @@ class BorderParameters extends joint.BaseJavaClass
|
|
|
1033
1021
|
{
|
|
1034
1022
|
let intColor = this.getJavaClass().getColorSync();
|
|
1035
1023
|
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
1036
|
-
while (hexColor.length < 6)
|
|
1037
|
-
{
|
|
1024
|
+
while (hexColor.length < 6) {
|
|
1038
1025
|
hexColor = "0" + hexColor;
|
|
1039
1026
|
}
|
|
1040
1027
|
hexColor = "#" + hexColor;
|
|
@@ -1125,8 +1112,7 @@ class CaptionParameters extends joint.BaseJavaClass
|
|
|
1125
1112
|
{
|
|
1126
1113
|
let intColor = this.getJavaClass().getTextColorSync();
|
|
1127
1114
|
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
1128
|
-
while (hexColor.length < 6)
|
|
1129
|
-
{
|
|
1115
|
+
while (hexColor.length < 6) {
|
|
1130
1116
|
hexColor = "0" + hexColor;
|
|
1131
1117
|
}
|
|
1132
1118
|
hexColor = "#" + hexColor;
|
|
@@ -1218,8 +1204,7 @@ class Unit extends joint.BaseJavaClass
|
|
|
1218
1204
|
|
|
1219
1205
|
static initUnit(source)
|
|
1220
1206
|
{
|
|
1221
|
-
if (source instanceof Unit)
|
|
1222
|
-
{
|
|
1207
|
+
if (source instanceof Unit) {
|
|
1223
1208
|
return source.getJavaClass();
|
|
1224
1209
|
}
|
|
1225
1210
|
return source;
|
|
@@ -1561,8 +1546,7 @@ class CodetextParameters extends joint.BaseJavaClass
|
|
|
1561
1546
|
{
|
|
1562
1547
|
let intColor = this.getJavaClass().getColorSync();
|
|
1563
1548
|
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
1564
|
-
while (hexColor.length < 6)
|
|
1565
|
-
{
|
|
1549
|
+
while (hexColor.length < 6) {
|
|
1566
1550
|
hexColor = "0" + hexColor;
|
|
1567
1551
|
}
|
|
1568
1552
|
hexColor = "#" + hexColor;
|
|
@@ -1997,6 +1981,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
1997
1981
|
{
|
|
1998
1982
|
return this.getJavaClass().getStructuredAppendBarcodeIdSync();
|
|
1999
1983
|
}
|
|
1984
|
+
|
|
2000
1985
|
/**
|
|
2001
1986
|
* <p>
|
|
2002
1987
|
* Barcode ID for Structured Append mode of Datamatrix barcode.
|
|
@@ -2018,6 +2003,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
2018
2003
|
{
|
|
2019
2004
|
return this.getJavaClass().getStructuredAppendBarcodesCountSync();
|
|
2020
2005
|
}
|
|
2006
|
+
|
|
2021
2007
|
/**
|
|
2022
2008
|
* <p>
|
|
2023
2009
|
* Barcodes count for Structured Append mode of Datamatrix barcode.
|
|
@@ -2039,6 +2025,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
2039
2025
|
{
|
|
2040
2026
|
return this.getJavaClass().getStructuredAppendFileIdSync();
|
|
2041
2027
|
}
|
|
2028
|
+
|
|
2042
2029
|
/**
|
|
2043
2030
|
* <p>
|
|
2044
2031
|
* File ID for Structured Append mode of Datamatrix barcode.
|
|
@@ -2061,6 +2048,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
2061
2048
|
{
|
|
2062
2049
|
return this.getJavaClass().isReaderProgrammingSync();
|
|
2063
2050
|
}
|
|
2051
|
+
|
|
2064
2052
|
/**
|
|
2065
2053
|
* <p>
|
|
2066
2054
|
* Used to instruct the reader to interpret the data contained within the symbol
|
|
@@ -2159,6 +2147,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
2159
2147
|
{
|
|
2160
2148
|
return this.getJavaClass().getECIEncodingSync();
|
|
2161
2149
|
}
|
|
2150
|
+
|
|
2162
2151
|
/**
|
|
2163
2152
|
* <p>
|
|
2164
2153
|
* Sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
|
|
@@ -2344,6 +2333,7 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2344
2333
|
{
|
|
2345
2334
|
return this.getJavaClass().getDotCodeEncodeModeSync();
|
|
2346
2335
|
}
|
|
2336
|
+
|
|
2347
2337
|
/**
|
|
2348
2338
|
* <p>
|
|
2349
2339
|
* Identifies DotCode encode mode.
|
|
@@ -2362,7 +2352,10 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2362
2352
|
* Default value is false.
|
|
2363
2353
|
*/
|
|
2364
2354
|
isReaderInitialization()
|
|
2365
|
-
{
|
|
2355
|
+
{
|
|
2356
|
+
return this.getJavaClass().isReaderInitializationSync();
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2366
2359
|
/**
|
|
2367
2360
|
* <p>
|
|
2368
2361
|
* Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
|
|
@@ -2370,7 +2363,9 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2370
2363
|
* Default value is false.
|
|
2371
2364
|
*/
|
|
2372
2365
|
setReaderInitialization(value)
|
|
2373
|
-
{
|
|
2366
|
+
{
|
|
2367
|
+
this.getJavaClass().setReaderInitializationSync(value);
|
|
2368
|
+
}
|
|
2374
2369
|
|
|
2375
2370
|
/**
|
|
2376
2371
|
* <p>
|
|
@@ -2378,7 +2373,9 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2378
2373
|
* </p>
|
|
2379
2374
|
*/
|
|
2380
2375
|
getDotCodeStructuredAppendModeBarcodeId()
|
|
2381
|
-
{
|
|
2376
|
+
{
|
|
2377
|
+
return this.getJavaClass().getDotCodeStructuredAppendModeBarcodeIdSync();
|
|
2378
|
+
}
|
|
2382
2379
|
|
|
2383
2380
|
/**
|
|
2384
2381
|
* <p>
|
|
@@ -2386,7 +2383,9 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2386
2383
|
* </p>
|
|
2387
2384
|
*/
|
|
2388
2385
|
setDotCodeStructuredAppendModeBarcodeId(value)
|
|
2389
|
-
{
|
|
2386
|
+
{
|
|
2387
|
+
this.getJavaClass().setDotCodeStructuredAppendModeBarcodeIdSync(value);
|
|
2388
|
+
}
|
|
2390
2389
|
|
|
2391
2390
|
/**
|
|
2392
2391
|
* <p>
|
|
@@ -2394,14 +2393,19 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2394
2393
|
* </p>
|
|
2395
2394
|
*/
|
|
2396
2395
|
getDotCodeStructuredAppendModeBarcodesCount()
|
|
2397
|
-
{
|
|
2396
|
+
{
|
|
2397
|
+
return this.getJavaClass().getDotCodeStructuredAppendModeBarcodesCountSync();
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2398
2400
|
/**
|
|
2399
2401
|
* <p>
|
|
2400
2402
|
* Identifies DotCode structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.
|
|
2401
2403
|
* </p>
|
|
2402
2404
|
*/
|
|
2403
2405
|
setDotCodeStructuredAppendModeBarcodesCount(value)
|
|
2404
|
-
{
|
|
2406
|
+
{
|
|
2407
|
+
this.getJavaClass().setDotCodeStructuredAppendModeBarcodesCountSync(value);
|
|
2408
|
+
}
|
|
2405
2409
|
|
|
2406
2410
|
/**
|
|
2407
2411
|
* <p>
|
|
@@ -2410,7 +2414,10 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2410
2414
|
* Default value: ISO-8859-1
|
|
2411
2415
|
*/
|
|
2412
2416
|
getECIEncoding()
|
|
2413
|
-
{
|
|
2417
|
+
{
|
|
2418
|
+
return this.getJavaClass().getECIEncodingSync();
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2414
2421
|
/**
|
|
2415
2422
|
* <p>
|
|
2416
2423
|
* Identifies ECI encoding. Used when DotCodeEncodeMode is AUTO.<br>
|
|
@@ -2429,7 +2436,10 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2429
2436
|
* Default value: -1
|
|
2430
2437
|
*/
|
|
2431
2438
|
getRows()
|
|
2432
|
-
{
|
|
2439
|
+
{
|
|
2440
|
+
return this.getJavaClass().getRowsSync();
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2433
2443
|
/**
|
|
2434
2444
|
* <p>
|
|
2435
2445
|
* Identifies rows count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of rows must be at least 5.
|
|
@@ -2448,7 +2458,10 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2448
2458
|
* Default value: -1
|
|
2449
2459
|
*/
|
|
2450
2460
|
getColumns()
|
|
2451
|
-
{
|
|
2461
|
+
{
|
|
2462
|
+
return this.getJavaClass().getColumnsSync();
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2452
2465
|
/**
|
|
2453
2466
|
* <p>
|
|
2454
2467
|
* Identifies columns count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of columns must be at least 5.
|
|
@@ -2542,6 +2555,7 @@ class GS1CompositeBarParameters extends joint.BaseJavaClass
|
|
|
2542
2555
|
{
|
|
2543
2556
|
return this.getJavaClass().isAllowOnlyGS1EncodingSync();
|
|
2544
2557
|
}
|
|
2558
|
+
|
|
2545
2559
|
/**
|
|
2546
2560
|
* <p>
|
|
2547
2561
|
* If this flag is set, it allows only GS1 encoding standard for GS1CompositeBar 2D Component
|
|
@@ -2789,6 +2803,7 @@ class QrParameters extends joint.BaseJavaClass
|
|
|
2789
2803
|
{
|
|
2790
2804
|
return this.getJavaClass().getMicroQRVersionSync();
|
|
2791
2805
|
}
|
|
2806
|
+
|
|
2792
2807
|
/**
|
|
2793
2808
|
* <p>
|
|
2794
2809
|
* Version of MicroQR Code. From version M1 to version M4.
|
|
@@ -2810,6 +2825,7 @@ class QrParameters extends joint.BaseJavaClass
|
|
|
2810
2825
|
{
|
|
2811
2826
|
return this.getJavaClass().getRectMicroQrVersionSync();
|
|
2812
2827
|
}
|
|
2828
|
+
|
|
2813
2829
|
/**
|
|
2814
2830
|
* <p>
|
|
2815
2831
|
* Version of RectMicroQR Code. From version R7x59 to version R17x139.
|
|
@@ -3250,7 +3266,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3250
3266
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3251
3267
|
* {
|
|
3252
3268
|
* console.log( result.getCodeText());
|
|
3253
|
-
|
|
3269
|
+
* });
|
|
3254
3270
|
*
|
|
3255
3271
|
* @example
|
|
3256
3272
|
* # Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"
|
|
@@ -3264,7 +3280,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3264
3280
|
* </pre>
|
|
3265
3281
|
* </pre></blockquote></hr></p>
|
|
3266
3282
|
*/
|
|
3267
|
-
getMacroCharacters()
|
|
3283
|
+
getMacroCharacters()
|
|
3268
3284
|
{
|
|
3269
3285
|
return this.getJavaClass().getMacroCharactersSync();
|
|
3270
3286
|
}
|
|
@@ -3300,7 +3316,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3300
3316
|
* </pre>
|
|
3301
3317
|
* </pre></blockquote></hr></p>
|
|
3302
3318
|
*/
|
|
3303
|
-
setMacroCharacters(value)
|
|
3319
|
+
setMacroCharacters(value)
|
|
3304
3320
|
{
|
|
3305
3321
|
this.getJavaClass().setMacroCharactersSync(value);
|
|
3306
3322
|
}
|
|
@@ -3406,7 +3422,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3406
3422
|
* </pre>
|
|
3407
3423
|
* </pre></blockquote></hr></p>
|
|
3408
3424
|
*/
|
|
3409
|
-
isLinked()
|
|
3425
|
+
isLinked()
|
|
3410
3426
|
{
|
|
3411
3427
|
return this.getJavaClass().isLinkedSync();
|
|
3412
3428
|
}
|
|
@@ -3513,7 +3529,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3513
3529
|
* </pre>
|
|
3514
3530
|
* </pre></blockquote></hr></p>
|
|
3515
3531
|
*/
|
|
3516
|
-
setLinked(value)
|
|
3532
|
+
setLinked(value)
|
|
3517
3533
|
{
|
|
3518
3534
|
this.getJavaClass().setLinkedSync(value);
|
|
3519
3535
|
}
|
|
@@ -3853,6 +3869,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3853
3869
|
{
|
|
3854
3870
|
return this.getJavaClass().getECIEncodingSync();
|
|
3855
3871
|
}
|
|
3872
|
+
|
|
3856
3873
|
/**
|
|
3857
3874
|
* <p>
|
|
3858
3875
|
* Sets ECI encoding. Used when AztecEncodeMode is Auto.
|
|
@@ -3874,6 +3891,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3874
3891
|
{
|
|
3875
3892
|
return this.getJavaClass().getStructuredAppendBarcodeIdSync();
|
|
3876
3893
|
}
|
|
3894
|
+
|
|
3877
3895
|
/**
|
|
3878
3896
|
* <p>
|
|
3879
3897
|
* Barcode ID for Structured Append mode of Aztec barcode. Barcode ID should be in range from 1 to barcodes count.
|
|
@@ -3895,6 +3913,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3895
3913
|
{
|
|
3896
3914
|
return this.getJavaClass().getStructuredAppendBarcodesCountSync();
|
|
3897
3915
|
}
|
|
3916
|
+
|
|
3898
3917
|
/**
|
|
3899
3918
|
* <p>
|
|
3900
3919
|
* Barcodes count for Structured Append mode of Aztec barcode. Barcodes count should be in range from 1 to 26.
|
|
@@ -3916,6 +3935,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3916
3935
|
{
|
|
3917
3936
|
return this.getJavaClass().getStructuredAppendFileIdSync();
|
|
3918
3937
|
}
|
|
3938
|
+
|
|
3919
3939
|
/**
|
|
3920
3940
|
* <p>
|
|
3921
3941
|
* File ID for Structured Append mode of Aztec barcode (optional field). File ID should not contain spaces.
|
|
@@ -3937,6 +3957,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3937
3957
|
{
|
|
3938
3958
|
return this.getJavaClass().getAztecErrorLevelSync();
|
|
3939
3959
|
}
|
|
3960
|
+
|
|
3940
3961
|
/**
|
|
3941
3962
|
* <p>
|
|
3942
3963
|
* Level of error correction of Aztec types of barcode.
|
|
@@ -3958,6 +3979,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3958
3979
|
{
|
|
3959
3980
|
return this.getJavaClass().getAztecSymbolModeSync();
|
|
3960
3981
|
}
|
|
3982
|
+
|
|
3961
3983
|
/**
|
|
3962
3984
|
* <p>
|
|
3963
3985
|
* Sets a Aztec Symbol mode.
|
|
@@ -3980,6 +4002,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3980
4002
|
{
|
|
3981
4003
|
return this.getJavaClass().getLayersCountSync();
|
|
3982
4004
|
}
|
|
4005
|
+
|
|
3983
4006
|
/**
|
|
3984
4007
|
* <p>
|
|
3985
4008
|
* Sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and
|
|
@@ -4023,6 +4046,7 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
4023
4046
|
{
|
|
4024
4047
|
return this.getJavaClass().getAspectRatioSync();
|
|
4025
4048
|
}
|
|
4049
|
+
|
|
4026
4050
|
/**
|
|
4027
4051
|
* <p>
|
|
4028
4052
|
* Height/Width ratio of 2D BarCode module.
|
|
@@ -4204,8 +4228,7 @@ class FontUnit extends joint.BaseJavaClass
|
|
|
4204
4228
|
|
|
4205
4229
|
static initFontUnit(source)
|
|
4206
4230
|
{
|
|
4207
|
-
if (source instanceof FontUnit)
|
|
4208
|
-
{
|
|
4231
|
+
if (source instanceof FontUnit) {
|
|
4209
4232
|
return source.getJavaClass();
|
|
4210
4233
|
}
|
|
4211
4234
|
return source;
|
|
@@ -4245,8 +4268,7 @@ class FontUnit extends joint.BaseJavaClass
|
|
|
4245
4268
|
*/
|
|
4246
4269
|
setStyle(value)
|
|
4247
4270
|
{
|
|
4248
|
-
if (!("number" === typeof value))
|
|
4249
|
-
{
|
|
4271
|
+
if (!("number" === typeof value)) {
|
|
4250
4272
|
value = parseInt(value, 10);
|
|
4251
4273
|
}
|
|
4252
4274
|
this.getJavaClass().setStyleSync(value);
|
|
@@ -4515,13 +4537,10 @@ class MaxiCodeExtCodetextBuilder extends ExtCodetextBuilder
|
|
|
4515
4537
|
|
|
4516
4538
|
constructor()
|
|
4517
4539
|
{
|
|
4518
|
-
try
|
|
4519
|
-
{
|
|
4540
|
+
try {
|
|
4520
4541
|
let java_class = java.import(MaxiCodeExtCodetextBuilder.JAVA_CLASS_NAME);
|
|
4521
4542
|
super(new java_class());
|
|
4522
|
-
}
|
|
4523
|
-
catch (ex)
|
|
4524
|
-
{
|
|
4543
|
+
} catch (ex) {
|
|
4525
4544
|
throw new BarcodeException(ex.getMessage(), __FILE__, __LINE__);
|
|
4526
4545
|
}
|
|
4527
4546
|
}
|
|
@@ -4576,7 +4595,9 @@ class DotCodeExtCodetextBuilder extends ExtCodetextBuilder
|
|
|
4576
4595
|
super(javaClass);
|
|
4577
4596
|
}
|
|
4578
4597
|
|
|
4579
|
-
init()
|
|
4598
|
+
init()
|
|
4599
|
+
{
|
|
4600
|
+
}
|
|
4580
4601
|
|
|
4581
4602
|
/**
|
|
4582
4603
|
* <p>
|
|
@@ -4658,6 +4679,7 @@ class Code128Parameters extends joint.BaseJavaClass
|
|
|
4658
4679
|
{
|
|
4659
4680
|
return this.getJavaClass().getCode128EncodeModeSync();
|
|
4660
4681
|
}
|
|
4682
|
+
|
|
4661
4683
|
/**
|
|
4662
4684
|
* <p>
|
|
4663
4685
|
* Sets a Code128 encode mode.
|
|
@@ -4730,6 +4752,7 @@ class HanXinParameters extends joint.BaseJavaClass
|
|
|
4730
4752
|
{
|
|
4731
4753
|
return this.getJavaClass().getHanXinErrorLevelSync();
|
|
4732
4754
|
}
|
|
4755
|
+
|
|
4733
4756
|
/**
|
|
4734
4757
|
* <p>
|
|
4735
4758
|
* Level of Reed-Solomon error correction for Han Xin barcode.
|
|
@@ -4751,6 +4774,7 @@ class HanXinParameters extends joint.BaseJavaClass
|
|
|
4751
4774
|
{
|
|
4752
4775
|
return this.getJavaClass().getHanXinEncodeModeSync();
|
|
4753
4776
|
}
|
|
4777
|
+
|
|
4754
4778
|
/**
|
|
4755
4779
|
* <p>
|
|
4756
4780
|
* HanXin encoding mode.
|
|
@@ -4773,6 +4797,7 @@ class HanXinParameters extends joint.BaseJavaClass
|
|
|
4773
4797
|
{
|
|
4774
4798
|
return this.getJavaClass().getHanXinECIEncodingSync();
|
|
4775
4799
|
}
|
|
4800
|
+
|
|
4776
4801
|
/**
|
|
4777
4802
|
* <p>
|
|
4778
4803
|
* Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details
|
|
@@ -4841,6 +4866,7 @@ class DataMatrixExtCodetextBuilder extends ExtCodetextBuilder
|
|
|
4841
4866
|
init()
|
|
4842
4867
|
{
|
|
4843
4868
|
}
|
|
4869
|
+
|
|
4844
4870
|
/**
|
|
4845
4871
|
* <p>
|
|
4846
4872
|
* Adds codetext with Extended Channel Identifier with defined encode mode
|
|
@@ -5160,6 +5186,153 @@ class SvgParameters extends joint.BaseJavaClass
|
|
|
5160
5186
|
{
|
|
5161
5187
|
this.getJavaClass().setTextDrawnInTextElementSync(textDrawnInTextElement);
|
|
5162
5188
|
}
|
|
5189
|
+
|
|
5190
|
+
/**
|
|
5191
|
+
* <p>
|
|
5192
|
+
* Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1.
|
|
5193
|
+
* RGBA, HSL, HSLA is allowed in SVG 2.0 standard.
|
|
5194
|
+
* Even in RGB opacity will be set through "fill-opacity" parameter
|
|
5195
|
+
* </p>
|
|
5196
|
+
*/
|
|
5197
|
+
setSvgColorMode(svgColorMode)
|
|
5198
|
+
{
|
|
5199
|
+
this.getJavaClass().setSvgColorModeSync(svgColorMode);
|
|
5200
|
+
}
|
|
5201
|
+
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1.
|
|
5205
|
+
* RGBA, HSL, HSLA is allowed in SVG 2.0 standard.
|
|
5206
|
+
* Even in RGB opacity will be set through "fill-opacity" parameter
|
|
5207
|
+
*/
|
|
5208
|
+
getSvgColorMode()
|
|
5209
|
+
{
|
|
5210
|
+
return this.getJavaClass().getSvgColorModeSync();
|
|
5211
|
+
}
|
|
5212
|
+
}
|
|
5213
|
+
|
|
5214
|
+
/**
|
|
5215
|
+
* <p>
|
|
5216
|
+
* Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)
|
|
5217
|
+
* </p>
|
|
5218
|
+
*/
|
|
5219
|
+
class HslaColor
|
|
5220
|
+
{
|
|
5221
|
+
/**
|
|
5222
|
+
* <p>
|
|
5223
|
+
* Hue [0, 360]
|
|
5224
|
+
* </p>
|
|
5225
|
+
*/
|
|
5226
|
+
H;
|
|
5227
|
+
|
|
5228
|
+
/**
|
|
5229
|
+
* <p>
|
|
5230
|
+
* Saturation [0, 100]
|
|
5231
|
+
* </p>
|
|
5232
|
+
*/
|
|
5233
|
+
S;
|
|
5234
|
+
|
|
5235
|
+
/**
|
|
5236
|
+
* <p>
|
|
5237
|
+
* Lightness [0, 100]
|
|
5238
|
+
* </p>
|
|
5239
|
+
*/
|
|
5240
|
+
L;
|
|
5241
|
+
|
|
5242
|
+
/**
|
|
5243
|
+
* <p>
|
|
5244
|
+
* Alpha (opacity) [0.0f, 1.0f]
|
|
5245
|
+
* </p>
|
|
5246
|
+
*/
|
|
5247
|
+
A = 0.0;
|
|
5248
|
+
|
|
5249
|
+
|
|
5250
|
+
/**
|
|
5251
|
+
* <p>
|
|
5252
|
+
* Constructor for HslaColor
|
|
5253
|
+
* </p>
|
|
5254
|
+
*
|
|
5255
|
+
* @param h Hue [0, 360]
|
|
5256
|
+
* @param s Saturation [0, 100]
|
|
5257
|
+
* @param l Lightness [0, 100]
|
|
5258
|
+
* @param a Alpha (opacity) [0.0f, 1.0f]
|
|
5259
|
+
*/
|
|
5260
|
+
constructor(h, s, l, a)
|
|
5261
|
+
{
|
|
5262
|
+
HslaColor.checkHue(h);
|
|
5263
|
+
HslaColor.checkSatLight(s);
|
|
5264
|
+
HslaColor.checkSatLight(l);
|
|
5265
|
+
HslaColor.checkAlpha(a);
|
|
5266
|
+
|
|
5267
|
+
this.H = h;
|
|
5268
|
+
this.S = s;
|
|
5269
|
+
this.L = l;
|
|
5270
|
+
this.A = a;
|
|
5271
|
+
}
|
|
5272
|
+
|
|
5273
|
+
static checkHue(value)
|
|
5274
|
+
{
|
|
5275
|
+
if (value < 0 || value > 360) {
|
|
5276
|
+
throw new Exception("Wrong color value");
|
|
5277
|
+
}
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
static checkSatLight(value)
|
|
5281
|
+
{
|
|
5282
|
+
if (value < 0 || value > 100) {
|
|
5283
|
+
throw new Exception("Wrong color value");
|
|
5284
|
+
}
|
|
5285
|
+
}
|
|
5286
|
+
|
|
5287
|
+
static checkAlpha(value)
|
|
5288
|
+
{
|
|
5289
|
+
if (value < 0.0 || value > 1.0) {
|
|
5290
|
+
throw new Exception("Wrong color value");
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
/**
|
|
5295
|
+
* <p>
|
|
5296
|
+
* Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
|
|
5297
|
+
* </p>
|
|
5298
|
+
*
|
|
5299
|
+
* @param hslaColor HSLA color to convert
|
|
5300
|
+
* @return string with RGBA values
|
|
5301
|
+
*/
|
|
5302
|
+
static convertHslaToRgba(hslaColor) {
|
|
5303
|
+
let r = 0, g = 0, b = 0;
|
|
5304
|
+
|
|
5305
|
+
let hueF = hslaColor.hue / 360.0;
|
|
5306
|
+
let satF = hslaColor.saturation / 100.0;
|
|
5307
|
+
let lightF = hslaColor.lightness / 100.0;
|
|
5308
|
+
|
|
5309
|
+
if (satF === 0) {
|
|
5310
|
+
r = g = b = lightF;
|
|
5311
|
+
} else {
|
|
5312
|
+
let q = lightF < 0.5 ? lightF * (1 + satF) : lightF + satF - lightF * satF;
|
|
5313
|
+
let p = 2 * lightF - q;
|
|
5314
|
+
|
|
5315
|
+
r = HslaColor.hueToRgb(p, q, hueF + 1.0 / 3.0);
|
|
5316
|
+
g = HslaColor.hueToRgb(p, q, hueF);
|
|
5317
|
+
b = HslaColor.hueToRgb(p, q, hueF - 1.0 / 3.0);
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5320
|
+
let rI = Math.round(r * 255);
|
|
5321
|
+
let gI = Math.round(g * 255);
|
|
5322
|
+
let bI = Math.round(b * 255);
|
|
5323
|
+
let aI = Math.round(hslaColor.alpha * 255);
|
|
5324
|
+
|
|
5325
|
+
return `#${aI.toString(16).padStart(2, '0')}${rI.toString(16).padStart(2, '0')}${gI.toString(16).padStart(2, '0')}${bI.toString(16).padStart(2, '0')}`.toUpperCase();
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
static hueToRgb(p, q, t) {
|
|
5329
|
+
if (t < 0) t += 1;
|
|
5330
|
+
if (t > 1) t -= 1;
|
|
5331
|
+
if (t < 1 / 6) return p + (q - p) * 6 * t;
|
|
5332
|
+
if (t < 1 / 2) return q;
|
|
5333
|
+
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
|
|
5334
|
+
return p;
|
|
5335
|
+
}
|
|
5163
5336
|
}
|
|
5164
5337
|
|
|
5165
5338
|
/**
|
|
@@ -6148,24 +6321,25 @@ EncodeTypes =
|
|
|
6148
6321
|
CODE_11: 1,
|
|
6149
6322
|
|
|
6150
6323
|
/**
|
|
6151
|
-
*
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
/**
|
|
6156
|
-
* Specifies that the data should be encoded with Extended CODE 39 barcode specification
|
|
6324
|
+
* <p>
|
|
6325
|
+
* Specifies that the data should be encoded with {@code <b>Code 39</b>} basic charset barcode specification: ISO/IEC 16388
|
|
6326
|
+
* </p>
|
|
6157
6327
|
*/
|
|
6158
|
-
|
|
6328
|
+
CODE_39: 2,
|
|
6159
6329
|
|
|
6160
6330
|
/**
|
|
6161
|
-
*
|
|
6331
|
+
* <p>
|
|
6332
|
+
* Specifies that the data should be encoded with {@code <b>Code 39</b>} full ASCII charset barcode specification: ISO/IEC 16388
|
|
6333
|
+
* </p>
|
|
6162
6334
|
*/
|
|
6163
|
-
|
|
6335
|
+
CODE_39_FULL_ASCII: 3,
|
|
6164
6336
|
|
|
6165
6337
|
/**
|
|
6166
|
-
*
|
|
6338
|
+
* <p>
|
|
6339
|
+
* Specifies that the data should be encoded with {@code <b>CODE 93</b>} barcode specification
|
|
6340
|
+
* </p>
|
|
6167
6341
|
*/
|
|
6168
|
-
|
|
6342
|
+
CODE_93: 5,
|
|
6169
6343
|
|
|
6170
6344
|
/**
|
|
6171
6345
|
* Specifies that the data should be encoded with CODE 128 barcode specification
|
|
@@ -6323,7 +6497,7 @@ EncodeTypes =
|
|
|
6323
6497
|
* Specifies that the data should be encoded with {@code <b>GS1 Aztec</b>} barcode specification. The codetext must contains parentheses for AI.
|
|
6324
6498
|
* </p>
|
|
6325
6499
|
*/
|
|
6326
|
-
GS_1_AZTEC:81,
|
|
6500
|
+
GS_1_AZTEC: 81,
|
|
6327
6501
|
|
|
6328
6502
|
|
|
6329
6503
|
/**
|
|
@@ -6599,177 +6773,260 @@ EncodeTypes =
|
|
|
6599
6773
|
|
|
6600
6774
|
parse(encodeTypeName)
|
|
6601
6775
|
{
|
|
6602
|
-
if(encodeTypeName == "CODABAR")
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
else if(encodeTypeName == "
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
else if(encodeTypeName == "
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
else if(encodeTypeName == "
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
else if(encodeTypeName == "
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
else if(encodeTypeName == "
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
else if(encodeTypeName == "
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
else if(encodeTypeName == "
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
else if(encodeTypeName == "
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
else if(encodeTypeName == "
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
else if(encodeTypeName == "
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
else if(encodeTypeName == "
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
else if(encodeTypeName == "
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
else if(encodeTypeName == "
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
else if(encodeTypeName == "
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
else if(encodeTypeName == "
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
else if(encodeTypeName == "
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
else if(encodeTypeName == "
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
else if(encodeTypeName == "
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
else if(encodeTypeName == "
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
else if(encodeTypeName == "
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
else if(encodeTypeName == "
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
else if(encodeTypeName == "
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
else if(encodeTypeName == "
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
else if(encodeTypeName == "
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
else if(encodeTypeName == "
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
else if(encodeTypeName == "
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
else if(encodeTypeName == "
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
else
|
|
6771
|
-
|
|
6772
|
-
|
|
6776
|
+
if (encodeTypeName == "CODABAR") {
|
|
6777
|
+
return 0;
|
|
6778
|
+
}
|
|
6779
|
+
else if (encodeTypeName == "CODE_11") {
|
|
6780
|
+
return 1;
|
|
6781
|
+
}
|
|
6782
|
+
else if (encodeTypeName == "CODE_39") {
|
|
6783
|
+
return 2;
|
|
6784
|
+
}
|
|
6785
|
+
else if (encodeTypeName == "CODE_39_FULL_ASCII") {
|
|
6786
|
+
return 3;
|
|
6787
|
+
}
|
|
6788
|
+
else if (encodeTypeName == "CODE_93") {
|
|
6789
|
+
return 5;
|
|
6790
|
+
}
|
|
6791
|
+
else if (encodeTypeName == "CODE_128") {
|
|
6792
|
+
return 6;
|
|
6793
|
+
}
|
|
6794
|
+
else if (encodeTypeName == "GS_1_CODE_128") {
|
|
6795
|
+
return 7;
|
|
6796
|
+
}
|
|
6797
|
+
else if (encodeTypeName == "EAN_8") {
|
|
6798
|
+
return 8;
|
|
6799
|
+
}
|
|
6800
|
+
else if (encodeTypeName == "EAN_13") {
|
|
6801
|
+
return 9;
|
|
6802
|
+
}
|
|
6803
|
+
else if (encodeTypeName == "EAN_14") {
|
|
6804
|
+
return 10;
|
|
6805
|
+
}
|
|
6806
|
+
else if (encodeTypeName == "SCC_14") {
|
|
6807
|
+
return 11;
|
|
6808
|
+
}
|
|
6809
|
+
else if (encodeTypeName == "SSCC_18") {
|
|
6810
|
+
return 12;
|
|
6811
|
+
}
|
|
6812
|
+
else if (encodeTypeName == "UPCA") {
|
|
6813
|
+
return 13;
|
|
6814
|
+
}
|
|
6815
|
+
else if (encodeTypeName == "UPCE") {
|
|
6816
|
+
return 14;
|
|
6817
|
+
}
|
|
6818
|
+
else if (encodeTypeName == "ISBN") {
|
|
6819
|
+
return 15;
|
|
6820
|
+
}
|
|
6821
|
+
else if (encodeTypeName == "ISSN") {
|
|
6822
|
+
return 16;
|
|
6823
|
+
}
|
|
6824
|
+
else if (encodeTypeName == "ISMN") {
|
|
6825
|
+
return 17;
|
|
6826
|
+
}
|
|
6827
|
+
else if (encodeTypeName == "STANDARD_2_OF_5") {
|
|
6828
|
+
return 18;
|
|
6829
|
+
}
|
|
6830
|
+
else if (encodeTypeName == "INTERLEAVED_2_OF_5") {
|
|
6831
|
+
return 19;
|
|
6832
|
+
}
|
|
6833
|
+
else if (encodeTypeName == "MATRIX_2_OF_5") {
|
|
6834
|
+
return 20;
|
|
6835
|
+
}
|
|
6836
|
+
else if (encodeTypeName == "ITALIAN_POST_25") {
|
|
6837
|
+
return 21;
|
|
6838
|
+
}
|
|
6839
|
+
else if (encodeTypeName == "IATA_2_OF_5") {
|
|
6840
|
+
return 22;
|
|
6841
|
+
}
|
|
6842
|
+
else if (encodeTypeName == "ITF_14") {
|
|
6843
|
+
return 23;
|
|
6844
|
+
}
|
|
6845
|
+
else if (encodeTypeName == "ITF_6") {
|
|
6846
|
+
return 24;
|
|
6847
|
+
}
|
|
6848
|
+
else if (encodeTypeName == "MSI") {
|
|
6849
|
+
return 25;
|
|
6850
|
+
}
|
|
6851
|
+
else if (encodeTypeName == "VIN") {
|
|
6852
|
+
return 26;
|
|
6853
|
+
}
|
|
6854
|
+
else if (encodeTypeName == "DEUTSCHE_POST_IDENTCODE") {
|
|
6855
|
+
return 27;
|
|
6856
|
+
}
|
|
6857
|
+
else if (encodeTypeName == "DEUTSCHE_POST_LEITCODE") {
|
|
6858
|
+
return 28;
|
|
6859
|
+
}
|
|
6860
|
+
else if (encodeTypeName == "OPC") {
|
|
6861
|
+
return 29;
|
|
6862
|
+
}
|
|
6863
|
+
else if (encodeTypeName == "PZN") {
|
|
6864
|
+
return 30;
|
|
6865
|
+
}
|
|
6866
|
+
else if (encodeTypeName == "CODE_16_K") {
|
|
6867
|
+
return 31;
|
|
6868
|
+
}
|
|
6869
|
+
else if (encodeTypeName == "PHARMACODE") {
|
|
6870
|
+
return 32;
|
|
6871
|
+
}
|
|
6872
|
+
else if (encodeTypeName == "DATA_MATRIX") {
|
|
6873
|
+
return 33;
|
|
6874
|
+
}
|
|
6875
|
+
else if (encodeTypeName == "QR") {
|
|
6876
|
+
return 34;
|
|
6877
|
+
}
|
|
6878
|
+
else if (encodeTypeName == "AZTEC") {
|
|
6879
|
+
return 35;
|
|
6880
|
+
}
|
|
6881
|
+
else if (encodeTypeName == "GS_1_AZTEC") {
|
|
6882
|
+
return 81;
|
|
6883
|
+
}
|
|
6884
|
+
else if (encodeTypeName == "PDF_417") {
|
|
6885
|
+
return 36;
|
|
6886
|
+
}
|
|
6887
|
+
else if (encodeTypeName == "MACRO_PDF_417") {
|
|
6888
|
+
return 37;
|
|
6889
|
+
}
|
|
6890
|
+
else if (encodeTypeName == "GS_1_DATA_MATRIX") {
|
|
6891
|
+
return 48;
|
|
6892
|
+
}
|
|
6893
|
+
else if (encodeTypeName == "MICRO_PDF_417") {
|
|
6894
|
+
return 55;
|
|
6895
|
+
}
|
|
6896
|
+
else if (encodeTypeName == "GS_1_QR") {
|
|
6897
|
+
return 56;
|
|
6898
|
+
}
|
|
6899
|
+
else if (encodeTypeName == "MAXI_CODE") {
|
|
6900
|
+
return 57;
|
|
6901
|
+
}
|
|
6902
|
+
else if (encodeTypeName == "DOT_CODE") {
|
|
6903
|
+
return 60;
|
|
6904
|
+
}
|
|
6905
|
+
else if (encodeTypeName == "AUSTRALIA_POST") {
|
|
6906
|
+
return 38;
|
|
6907
|
+
}
|
|
6908
|
+
else if (encodeTypeName == "POSTNET") {
|
|
6909
|
+
return 39;
|
|
6910
|
+
}
|
|
6911
|
+
else if (encodeTypeName == "PLANET") {
|
|
6912
|
+
return 40;
|
|
6913
|
+
}
|
|
6914
|
+
else if (encodeTypeName == "ONE_CODE") {
|
|
6915
|
+
return 41;
|
|
6916
|
+
}
|
|
6917
|
+
else if (encodeTypeName == "RM_4_SCC") {
|
|
6918
|
+
return 42;
|
|
6919
|
+
}
|
|
6920
|
+
else if (encodeTypeName == "MAILMARK") {
|
|
6921
|
+
return 66;
|
|
6922
|
+
}
|
|
6923
|
+
else if (encodeTypeName == "DATABAR_OMNI_DIRECTIONAL") {
|
|
6924
|
+
return 43;
|
|
6925
|
+
}
|
|
6926
|
+
else if (encodeTypeName == "DATABAR_TRUNCATED") {
|
|
6927
|
+
return 44;
|
|
6928
|
+
}
|
|
6929
|
+
else if (encodeTypeName == "DATABAR_LIMITED") {
|
|
6930
|
+
return 45;
|
|
6931
|
+
}
|
|
6932
|
+
else if (encodeTypeName == "DATABAR_EXPANDED") {
|
|
6933
|
+
return 46;
|
|
6934
|
+
}
|
|
6935
|
+
else if (encodeTypeName == "DATABAR_EXPANDED_STACKED") {
|
|
6936
|
+
return 52;
|
|
6937
|
+
}
|
|
6938
|
+
else if (encodeTypeName == "DATABAR_STACKED") {
|
|
6939
|
+
return 53;
|
|
6940
|
+
}
|
|
6941
|
+
else if (encodeTypeName == "DATABAR_STACKED_OMNI_DIRECTIONAL") {
|
|
6942
|
+
return 54;
|
|
6943
|
+
}
|
|
6944
|
+
else if (encodeTypeName == "SINGAPORE_POST") {
|
|
6945
|
+
return 47;
|
|
6946
|
+
}
|
|
6947
|
+
else if (encodeTypeName == "AUSTRALIAN_POSTE_PARCEL") {
|
|
6948
|
+
return 49;
|
|
6949
|
+
}
|
|
6950
|
+
else if (encodeTypeName == "SWISS_POST_PARCEL") {
|
|
6951
|
+
return 50;
|
|
6952
|
+
}
|
|
6953
|
+
else if (encodeTypeName == "PATCH_CODE") {
|
|
6954
|
+
return 51;
|
|
6955
|
+
}
|
|
6956
|
+
else if (encodeTypeName == "CODE_32") {
|
|
6957
|
+
return 58;
|
|
6958
|
+
}
|
|
6959
|
+
else if (encodeTypeName == "DATA_LOGIC_2_OF_5") {
|
|
6960
|
+
return 59;
|
|
6961
|
+
}
|
|
6962
|
+
else if (encodeTypeName == "DUTCH_KIX") {
|
|
6963
|
+
return 61;
|
|
6964
|
+
}
|
|
6965
|
+
else if (encodeTypeName == "UPCA_GS_1_CODE_128_COUPON") {
|
|
6966
|
+
return 62;
|
|
6967
|
+
}
|
|
6968
|
+
else if (encodeTypeName == "UPCA_GS_1_DATABAR_COUPON") {
|
|
6969
|
+
return 63;
|
|
6970
|
+
}
|
|
6971
|
+
else if (encodeTypeName == "CODABLOCK_F") {
|
|
6972
|
+
return 64;
|
|
6973
|
+
}
|
|
6974
|
+
else if (encodeTypeName == "GS_1_CODABLOCK_F") {
|
|
6975
|
+
return 65;
|
|
6976
|
+
}
|
|
6977
|
+
else if (encodeTypeName == "GS_1_COMPOSITE_BAR") {
|
|
6978
|
+
return 67;
|
|
6979
|
+
}
|
|
6980
|
+
else if (encodeTypeName == "HIBC_CODE_39_LIC") {
|
|
6981
|
+
return 68;
|
|
6982
|
+
}
|
|
6983
|
+
else if (encodeTypeName == "HIBC_CODE_128_LIC") {
|
|
6984
|
+
return 69;
|
|
6985
|
+
}
|
|
6986
|
+
else if (encodeTypeName == "HIBC_AZTEC_LIC") {
|
|
6987
|
+
return 70;
|
|
6988
|
+
}
|
|
6989
|
+
else if (encodeTypeName == "HIBC_DATA_MATRIX_LIC") {
|
|
6990
|
+
return 71;
|
|
6991
|
+
}
|
|
6992
|
+
else if (encodeTypeName == "HIBCQRLIC") {
|
|
6993
|
+
return 72;
|
|
6994
|
+
}
|
|
6995
|
+
else if (encodeTypeName == "HIBC_CODE_39_PAS") {
|
|
6996
|
+
return 73;
|
|
6997
|
+
}
|
|
6998
|
+
else if (encodeTypeName == "HIBC_CODE_128_PAS") {
|
|
6999
|
+
return 74;
|
|
7000
|
+
}
|
|
7001
|
+
else if (encodeTypeName == "HIBC_AZTEC_PAS") {
|
|
7002
|
+
return 75;
|
|
7003
|
+
}
|
|
7004
|
+
else if (encodeTypeName == "HIBC_DATA_MATRIX_PAS") {
|
|
7005
|
+
return 76;
|
|
7006
|
+
}
|
|
7007
|
+
else if (encodeTypeName == "HIBCQRPAS") {
|
|
7008
|
+
return 77;
|
|
7009
|
+
}
|
|
7010
|
+
else if (encodeTypeName == "GS_1_DOT_CODE") {
|
|
7011
|
+
return 78;
|
|
7012
|
+
}
|
|
7013
|
+
else if (encodeTypeName == "HAN_XIN") {
|
|
7014
|
+
return 79;
|
|
7015
|
+
}
|
|
7016
|
+
else if (encodeTypeName == "GS_1_HAN_XIN") {
|
|
7017
|
+
return 80;
|
|
7018
|
+
}
|
|
7019
|
+
else if (encodeTypeName == "MICRO_QR") {
|
|
7020
|
+
return 83;
|
|
7021
|
+
}
|
|
7022
|
+
else if (encodeTypeName == "RECT_MICRO_QR") {
|
|
7023
|
+
return 84;
|
|
7024
|
+
}
|
|
7025
|
+
else {
|
|
7026
|
+
return -1;
|
|
7027
|
+
}
|
|
7028
|
+
}
|
|
7029
|
+
}
|
|
6773
7030
|
|
|
6774
7031
|
/**
|
|
6775
7032
|
* <p>
|
|
@@ -7546,37 +7803,37 @@ DotCodeEncodeMode =
|
|
|
7546
7803
|
* Pdf417 barcode encode mode
|
|
7547
7804
|
*/
|
|
7548
7805
|
Pdf417EncodeMode =
|
|
7549
|
-
{
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7806
|
+
{
|
|
7807
|
+
/**
|
|
7808
|
+
*
|
|
7809
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
7810
|
+
* Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7811
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7812
|
+
*/
|
|
7813
|
+
AUTO: 0,
|
|
7557
7814
|
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7815
|
+
/**
|
|
7816
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
7817
|
+
* If a Unicode character is found, an exception is thrown.
|
|
7818
|
+
*/
|
|
7819
|
+
BINARY: 1,
|
|
7563
7820
|
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7821
|
+
/**
|
|
7822
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7823
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7824
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
7825
|
+
*/
|
|
7826
|
+
ECI: 2,
|
|
7570
7827
|
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
}
|
|
7828
|
+
/**
|
|
7829
|
+
* Extended mode which supports multi ECI modes.
|
|
7830
|
+
* It is better to use Pdf417ExtCodetextBuilder for extended codetext generation.
|
|
7831
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
7832
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7833
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
7834
|
+
*/
|
|
7835
|
+
EXTENDED: 3
|
|
7836
|
+
}
|
|
7580
7837
|
|
|
7581
7838
|
/**
|
|
7582
7839
|
* <p>
|
|
@@ -7600,7 +7857,7 @@ Pdf417EncodeMode =
|
|
|
7600
7857
|
* </pre></blockquote></hr></p>
|
|
7601
7858
|
*/
|
|
7602
7859
|
Code128EncodeMode =
|
|
7603
|
-
{
|
|
7860
|
+
{
|
|
7604
7861
|
/**
|
|
7605
7862
|
* <p>
|
|
7606
7863
|
* Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.
|
|
@@ -7658,1077 +7915,1077 @@ Code128EncodeMode =
|
|
|
7658
7915
|
* </p>
|
|
7659
7916
|
*/
|
|
7660
7917
|
HanXinVersion =
|
|
7661
|
-
{
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
}
|
|
8174
|
-
|
|
8175
|
-
/**
|
|
8176
|
-
* <p>
|
|
8177
|
-
* Level of Reed-Solomon error correction. From low to high: L1, L2, L3, L4.
|
|
8178
|
-
* </p>
|
|
8179
|
-
*/
|
|
8180
|
-
HanXinErrorLevel =
|
|
8181
|
-
{
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
}
|
|
8207
|
-
|
|
8208
|
-
/**
|
|
8209
|
-
* <p>
|
|
8210
|
-
* Han Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.
|
|
8211
|
-
* </p><p><hr><blockquote><pre>
|
|
8212
|
-
* <pre>
|
|
8213
|
-
* @example
|
|
8214
|
-
* // Auto mode
|
|
8215
|
-
* let codetext = "1234567890ABCDEFGabcdefg,Han Xin Code";
|
|
8216
|
-
* let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8217
|
-
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8218
|
-
*
|
|
8219
|
-
* @example
|
|
8220
|
-
* // Bytes mode
|
|
8221
|
-
* let encodedArr = [0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9];
|
|
8222
|
-
*
|
|
8223
|
-
* //encode array to string
|
|
8224
|
-
* let codetext = "";
|
|
8225
|
-
* for (int i = 0; i <encodedArr.length; i++)
|
|
8226
|
-
* {
|
|
8227
|
-
* let bval = String.fromCharCode(encodedArr[i]);
|
|
8228
|
-
* codetext += bval;
|
|
8229
|
-
* }
|
|
8230
|
-
*
|
|
8231
|
-
* let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8232
|
-
* generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.BYTES);
|
|
8233
|
-
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8234
|
-
*
|
|
8235
|
-
* @example
|
|
8236
|
-
* // ECI mode
|
|
8237
|
-
* let codetext = "ΑΒΓΔΕ";
|
|
8238
|
-
* let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8239
|
-
* generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.ECI);
|
|
8240
|
-
* generator.getParameters().getBarcode().getHanXin().setHanXinECIEncoding(ECIEncodings.ISO_8859_7);
|
|
8241
|
-
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8242
|
-
*
|
|
8243
|
-
* @example
|
|
8244
|
-
* // URI mode
|
|
8245
|
-
* let codetext = "https://www.test.com/%BC%DE%%%ab/search=test";
|
|
8246
|
-
* generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8247
|
-
* generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.URI);
|
|
8248
|
-
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8249
|
-
*
|
|
8250
|
-
* // Extended mode - TBD
|
|
8251
|
-
* </pre>
|
|
8252
|
-
* </pre></blockquote></hr></p>
|
|
8253
|
-
*/
|
|
8254
|
-
HanXinEncodeMode =
|
|
8255
|
-
{
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
}
|
|
8295
|
-
|
|
8296
|
-
/**
|
|
8297
|
-
* <p>
|
|
8298
|
-
* Specify the type of the ECC to encode.
|
|
8299
|
-
* </p>
|
|
8300
|
-
*/
|
|
8301
|
-
DataMatrixVersion =
|
|
8302
|
-
{
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
}
|
|
7918
|
+
{
|
|
7919
|
+
/**
|
|
7920
|
+
* <p>
|
|
7921
|
+
* Specifies to automatically pick up the best version.
|
|
7922
|
+
* This is default value.
|
|
7923
|
+
* </p>
|
|
7924
|
+
*/
|
|
7925
|
+
AUTO: 0,
|
|
7926
|
+
/**
|
|
7927
|
+
* <p>
|
|
7928
|
+
* Specifies version 1 with 23 x 23 modules.
|
|
7929
|
+
* </p>
|
|
7930
|
+
*/
|
|
7931
|
+
VERSION_01: 1,
|
|
7932
|
+
/**
|
|
7933
|
+
* <p>
|
|
7934
|
+
* Specifies version 2 with 25 x 25 modules.
|
|
7935
|
+
* </p>
|
|
7936
|
+
*/
|
|
7937
|
+
VERSION_02: 2,
|
|
7938
|
+
/**
|
|
7939
|
+
* <p>
|
|
7940
|
+
* Specifies version 3 with 27 x 27 modules.
|
|
7941
|
+
* </p>
|
|
7942
|
+
*/
|
|
7943
|
+
VERSION_03: 3,
|
|
7944
|
+
/**
|
|
7945
|
+
* <p>
|
|
7946
|
+
* Specifies version 4 with 29 x 29 modules.
|
|
7947
|
+
* </p>
|
|
7948
|
+
*/
|
|
7949
|
+
VERSION_04: 4,
|
|
7950
|
+
/**
|
|
7951
|
+
* <p>
|
|
7952
|
+
* Specifies version 5 with 31 x 31 modules.
|
|
7953
|
+
* </p>
|
|
7954
|
+
*/
|
|
7955
|
+
VERSION_05: 5,
|
|
7956
|
+
/**
|
|
7957
|
+
* <p>
|
|
7958
|
+
* Specifies version 6 with 33 x 33 modules.
|
|
7959
|
+
* </p>
|
|
7960
|
+
*/
|
|
7961
|
+
VERSION_06: 6,
|
|
7962
|
+
/**
|
|
7963
|
+
* <p>
|
|
7964
|
+
* Specifies version 7 with 35 x 35 modules.
|
|
7965
|
+
* </p>
|
|
7966
|
+
*/
|
|
7967
|
+
VERSION_07: 7,
|
|
7968
|
+
/**
|
|
7969
|
+
* <p>
|
|
7970
|
+
* Specifies version 8 with 37 x 37 modules.
|
|
7971
|
+
* </p>
|
|
7972
|
+
*/
|
|
7973
|
+
VERSION_08: 8,
|
|
7974
|
+
/**
|
|
7975
|
+
* <p>
|
|
7976
|
+
* Specifies version 9 with 39 x 39 modules.
|
|
7977
|
+
* </p>
|
|
7978
|
+
*/
|
|
7979
|
+
VERSION_09: 9,
|
|
7980
|
+
/**
|
|
7981
|
+
* <p>
|
|
7982
|
+
* Specifies version 10 with 41 x 41 modules.
|
|
7983
|
+
* </p>
|
|
7984
|
+
*/
|
|
7985
|
+
VERSION_10: 10,
|
|
7986
|
+
/**
|
|
7987
|
+
* <p>
|
|
7988
|
+
* Specifies version 11 with 43 x 43 modules.
|
|
7989
|
+
* </p>
|
|
7990
|
+
*/
|
|
7991
|
+
VERSION_11: 11,
|
|
7992
|
+
/**
|
|
7993
|
+
* <p>
|
|
7994
|
+
* Specifies version 12 with 45 x 45 modules.
|
|
7995
|
+
* </p>
|
|
7996
|
+
*/
|
|
7997
|
+
VERSION_12: 12,
|
|
7998
|
+
/**
|
|
7999
|
+
* <p>
|
|
8000
|
+
* Specifies version 13 with 47 x 47 modules.
|
|
8001
|
+
* </p>
|
|
8002
|
+
*/
|
|
8003
|
+
VERSION_13: 13,
|
|
8004
|
+
/**
|
|
8005
|
+
* <p>
|
|
8006
|
+
* Specifies version 14 with 49 x 49 modules.
|
|
8007
|
+
* </p>
|
|
8008
|
+
*/
|
|
8009
|
+
VERSION_14: 14,
|
|
8010
|
+
/**
|
|
8011
|
+
* <p>
|
|
8012
|
+
* Specifies version 15 with 51 x 51 modules.
|
|
8013
|
+
* </p>
|
|
8014
|
+
*/
|
|
8015
|
+
VERSION_15: 15,
|
|
8016
|
+
/**
|
|
8017
|
+
* <p>
|
|
8018
|
+
* Specifies version 16 with 53 x 53 modules.
|
|
8019
|
+
* </p>
|
|
8020
|
+
*/
|
|
8021
|
+
VERSION_16: 16,
|
|
8022
|
+
/**
|
|
8023
|
+
* <p>
|
|
8024
|
+
* Specifies version 17 with 55 x 55 modules.
|
|
8025
|
+
* </p>
|
|
8026
|
+
*/
|
|
8027
|
+
VERSION_17: 17,
|
|
8028
|
+
/**
|
|
8029
|
+
* <p>
|
|
8030
|
+
* Specifies version 18 with 57 x 57 modules.
|
|
8031
|
+
* </p>
|
|
8032
|
+
*/
|
|
8033
|
+
VERSION_18: 18,
|
|
8034
|
+
/**
|
|
8035
|
+
* <p>
|
|
8036
|
+
* Specifies version 19 with 59 x 59 modules.
|
|
8037
|
+
* </p>
|
|
8038
|
+
*/
|
|
8039
|
+
VERSION_19: 19,
|
|
8040
|
+
/**
|
|
8041
|
+
* <p>
|
|
8042
|
+
* Specifies version 20 with 61 x 61 modules.
|
|
8043
|
+
* </p>
|
|
8044
|
+
*/
|
|
8045
|
+
VERSION_20: 20,
|
|
8046
|
+
/**
|
|
8047
|
+
* <p>
|
|
8048
|
+
* Specifies version 21 with 63 x 63 modules.
|
|
8049
|
+
* </p>
|
|
8050
|
+
*/
|
|
8051
|
+
VERSION_21: 21,
|
|
8052
|
+
/**
|
|
8053
|
+
* <p>
|
|
8054
|
+
* Specifies version 22 with 65 x 65 modules.
|
|
8055
|
+
* </p>
|
|
8056
|
+
*/
|
|
8057
|
+
VERSION_22: 22,
|
|
8058
|
+
/**
|
|
8059
|
+
* <p>
|
|
8060
|
+
* Specifies version 23 with 67 x 67 modules.
|
|
8061
|
+
* </p>
|
|
8062
|
+
*/
|
|
8063
|
+
VERSION_23: 23,
|
|
8064
|
+
/**
|
|
8065
|
+
* <p>
|
|
8066
|
+
* Specifies version 24 with 69 x 69 modules.
|
|
8067
|
+
* </p>
|
|
8068
|
+
*/
|
|
8069
|
+
VERSION_24: 24,
|
|
8070
|
+
/**
|
|
8071
|
+
* <p>
|
|
8072
|
+
* Specifies version 25 with 71 x 71 modules.
|
|
8073
|
+
* </p>
|
|
8074
|
+
*/
|
|
8075
|
+
VERSION_25: 25,
|
|
8076
|
+
/**
|
|
8077
|
+
* <p>
|
|
8078
|
+
* Specifies version 26 with 73 x 73 modules.
|
|
8079
|
+
* </p>
|
|
8080
|
+
*/
|
|
8081
|
+
VERSION_26: 26,
|
|
8082
|
+
/**
|
|
8083
|
+
* <p>
|
|
8084
|
+
* Specifies version 27 with 75 x 75 modules.
|
|
8085
|
+
* </p>
|
|
8086
|
+
*/
|
|
8087
|
+
VERSION_27: 27,
|
|
8088
|
+
/**
|
|
8089
|
+
* <p>
|
|
8090
|
+
* Specifies version 28 with 77 x 77 modules.
|
|
8091
|
+
* </p>
|
|
8092
|
+
*/
|
|
8093
|
+
VERSION_28: 28,
|
|
8094
|
+
/**
|
|
8095
|
+
* <p>
|
|
8096
|
+
* Specifies version 29 with 79 x 79 modules.
|
|
8097
|
+
* </p>
|
|
8098
|
+
*/
|
|
8099
|
+
VERSION_29: 29,
|
|
8100
|
+
/**
|
|
8101
|
+
* <p>
|
|
8102
|
+
* Specifies version 30 with 81 x 81 modules.
|
|
8103
|
+
* </p>
|
|
8104
|
+
*/
|
|
8105
|
+
VERSION_30: 30,
|
|
8106
|
+
/**
|
|
8107
|
+
* <p>
|
|
8108
|
+
* Specifies version 31 with 83 x 83 modules.
|
|
8109
|
+
* </p>
|
|
8110
|
+
*/
|
|
8111
|
+
VERSION_31: 31,
|
|
8112
|
+
/**
|
|
8113
|
+
* <p>
|
|
8114
|
+
* Specifies version 32 with 85 x 85 modules.
|
|
8115
|
+
* </p>
|
|
8116
|
+
*/
|
|
8117
|
+
VERSION_32: 32,
|
|
8118
|
+
/**
|
|
8119
|
+
* <p>
|
|
8120
|
+
* Specifies version 33 with 87 x 87 modules.
|
|
8121
|
+
* </p>
|
|
8122
|
+
*/
|
|
8123
|
+
VERSION_33: 33,
|
|
8124
|
+
/**
|
|
8125
|
+
* <p>
|
|
8126
|
+
* Specifies version 34 with 89 x 89 modules.
|
|
8127
|
+
* </p>
|
|
8128
|
+
*/
|
|
8129
|
+
VERSION_34: 34,
|
|
8130
|
+
/**
|
|
8131
|
+
* <p>
|
|
8132
|
+
* Specifies version 35 with 91 x 91 modules.
|
|
8133
|
+
* </p>
|
|
8134
|
+
*/
|
|
8135
|
+
VERSION_35: 35,
|
|
8136
|
+
/**
|
|
8137
|
+
* <p>
|
|
8138
|
+
* Specifies version 36 with 93 x 93 modules.
|
|
8139
|
+
* </p>
|
|
8140
|
+
*/
|
|
8141
|
+
VERSION_36: 36,
|
|
8142
|
+
/**
|
|
8143
|
+
* <p>
|
|
8144
|
+
* Specifies version 37 with 95 x 95 modules.
|
|
8145
|
+
* </p>
|
|
8146
|
+
*/
|
|
8147
|
+
VERSION_37: 37,
|
|
8148
|
+
/**
|
|
8149
|
+
* <p>
|
|
8150
|
+
* Specifies version 38 with 97 x 97 modules.
|
|
8151
|
+
* </p>
|
|
8152
|
+
*/
|
|
8153
|
+
VERSION_38: 38,
|
|
8154
|
+
/**
|
|
8155
|
+
* <p>
|
|
8156
|
+
* Specifies version 39 with 99 x 99 modules.
|
|
8157
|
+
* </p>
|
|
8158
|
+
*/
|
|
8159
|
+
VERSION_39: 39,
|
|
8160
|
+
/**
|
|
8161
|
+
* <p>
|
|
8162
|
+
* Specifies version 40 with 101 x 101 modules.
|
|
8163
|
+
* </p>
|
|
8164
|
+
*/
|
|
8165
|
+
VERSION_40: 40,
|
|
8166
|
+
/**
|
|
8167
|
+
* <p>
|
|
8168
|
+
* Specifies version 41 with 103 x 103 modules.
|
|
8169
|
+
* </p>
|
|
8170
|
+
*/
|
|
8171
|
+
VERSION_41: 41,
|
|
8172
|
+
/**
|
|
8173
|
+
* <p>
|
|
8174
|
+
* Specifies version 42 with 105 x 105 modules.
|
|
8175
|
+
* </p>
|
|
8176
|
+
*/
|
|
8177
|
+
VERSION_42: 42,
|
|
8178
|
+
/**
|
|
8179
|
+
* <p>
|
|
8180
|
+
* Specifies version 43 with 107 x 107 modules.
|
|
8181
|
+
* </p>
|
|
8182
|
+
*/
|
|
8183
|
+
VERSION_43: 43,
|
|
8184
|
+
/**
|
|
8185
|
+
* <p>
|
|
8186
|
+
* Specifies version 44 with 109 x 109 modules.
|
|
8187
|
+
* </p>
|
|
8188
|
+
*/
|
|
8189
|
+
VERSION_44: 44,
|
|
8190
|
+
/**
|
|
8191
|
+
* <p>
|
|
8192
|
+
* Specifies version 45 with 111 x 111 modules.
|
|
8193
|
+
* </p>
|
|
8194
|
+
*/
|
|
8195
|
+
VERSION_45: 45,
|
|
8196
|
+
/**
|
|
8197
|
+
* <p>
|
|
8198
|
+
* Specifies version 46 with 113 x 113 modules.
|
|
8199
|
+
* </p>
|
|
8200
|
+
*/
|
|
8201
|
+
VERSION_46: 46,
|
|
8202
|
+
/**
|
|
8203
|
+
* <p>
|
|
8204
|
+
* Specifies version 47 with 115 x 115 modules.
|
|
8205
|
+
* </p>
|
|
8206
|
+
*/
|
|
8207
|
+
VERSION_47: 47,
|
|
8208
|
+
/**
|
|
8209
|
+
* <p>
|
|
8210
|
+
* Specifies version 48 with 117 x 117 modules.
|
|
8211
|
+
* </p>
|
|
8212
|
+
*/
|
|
8213
|
+
VERSION_48: 48,
|
|
8214
|
+
/**
|
|
8215
|
+
* <p>
|
|
8216
|
+
* Specifies version 49 with 119 x 119 modules.
|
|
8217
|
+
* </p>
|
|
8218
|
+
*/
|
|
8219
|
+
VERSION_49: 49,
|
|
8220
|
+
/**
|
|
8221
|
+
* <p>
|
|
8222
|
+
* Specifies version 50 with 121 x 121 modules.
|
|
8223
|
+
* </p>
|
|
8224
|
+
*/
|
|
8225
|
+
VERSION_50: 50,
|
|
8226
|
+
/**
|
|
8227
|
+
* <p>
|
|
8228
|
+
* Specifies version 51 with 123 x 123 modules.
|
|
8229
|
+
* </p>
|
|
8230
|
+
*/
|
|
8231
|
+
VERSION_51: 51,
|
|
8232
|
+
/**
|
|
8233
|
+
* <p>
|
|
8234
|
+
* Specifies version 52 with 125 x 125 modules.
|
|
8235
|
+
* </p>
|
|
8236
|
+
*/
|
|
8237
|
+
VERSION_52: 52,
|
|
8238
|
+
/**
|
|
8239
|
+
* <p>
|
|
8240
|
+
* Specifies version 53 with 127 x 127 modules.
|
|
8241
|
+
* </p>
|
|
8242
|
+
*/
|
|
8243
|
+
VERSION_53: 53,
|
|
8244
|
+
/**
|
|
8245
|
+
* <p>
|
|
8246
|
+
* Specifies version 54 with 129 x 129 modules.
|
|
8247
|
+
* </p>
|
|
8248
|
+
*/
|
|
8249
|
+
VERSION_54: 54,
|
|
8250
|
+
/**
|
|
8251
|
+
* <p>
|
|
8252
|
+
* Specifies version 55 with 131 x 131 modules.
|
|
8253
|
+
* </p>
|
|
8254
|
+
*/
|
|
8255
|
+
VERSION_55: 55,
|
|
8256
|
+
/**
|
|
8257
|
+
* <p>
|
|
8258
|
+
* Specifies version 56 with 133 x 133 modules.
|
|
8259
|
+
* </p>
|
|
8260
|
+
*/
|
|
8261
|
+
VERSION_56: 56,
|
|
8262
|
+
/**
|
|
8263
|
+
* <p>
|
|
8264
|
+
* Specifies version 57 with 135 x 135 modules.
|
|
8265
|
+
* </p>
|
|
8266
|
+
*/
|
|
8267
|
+
VERSION_57: 57,
|
|
8268
|
+
/**
|
|
8269
|
+
* <p>
|
|
8270
|
+
* Specifies version 58 with 137 x 137 modules.
|
|
8271
|
+
* </p>
|
|
8272
|
+
*/
|
|
8273
|
+
VERSION_58: 58,
|
|
8274
|
+
/**
|
|
8275
|
+
* <p>
|
|
8276
|
+
* Specifies version 59 with 139 x 139 modules.
|
|
8277
|
+
* </p>
|
|
8278
|
+
*/
|
|
8279
|
+
VERSION_59: 59,
|
|
8280
|
+
/**
|
|
8281
|
+
* <p>
|
|
8282
|
+
* Specifies version 60 with 141 x 141 modules.
|
|
8283
|
+
* </p>
|
|
8284
|
+
*/
|
|
8285
|
+
VERSION_60: 60,
|
|
8286
|
+
/**
|
|
8287
|
+
* <p>
|
|
8288
|
+
* Specifies version 61 with 143 x 143 modules.
|
|
8289
|
+
* </p>
|
|
8290
|
+
*/
|
|
8291
|
+
VERSION_61: 61,
|
|
8292
|
+
/**
|
|
8293
|
+
* <p>
|
|
8294
|
+
* Specifies version 62 with 145 x 145 modules.
|
|
8295
|
+
* </p>
|
|
8296
|
+
*/
|
|
8297
|
+
VERSION_62: 62,
|
|
8298
|
+
/**
|
|
8299
|
+
* <p>
|
|
8300
|
+
* Specifies version 63 with 147 x 147 modules.
|
|
8301
|
+
* </p>
|
|
8302
|
+
*/
|
|
8303
|
+
VERSION_63: 63,
|
|
8304
|
+
/**
|
|
8305
|
+
* <p>
|
|
8306
|
+
* Specifies version 64 with 149 x 149 modules.
|
|
8307
|
+
* </p>
|
|
8308
|
+
*/
|
|
8309
|
+
VERSION_64: 64,
|
|
8310
|
+
/**
|
|
8311
|
+
* <p>
|
|
8312
|
+
* Specifies version 65 with 151 x 151 modules.
|
|
8313
|
+
* </p>
|
|
8314
|
+
*/
|
|
8315
|
+
VERSION_65: 65,
|
|
8316
|
+
/**
|
|
8317
|
+
* <p>
|
|
8318
|
+
* Specifies version 66 with 153 x 153 modules.
|
|
8319
|
+
* </p>
|
|
8320
|
+
*/
|
|
8321
|
+
VERSION_66: 66,
|
|
8322
|
+
/**
|
|
8323
|
+
* <p>
|
|
8324
|
+
* Specifies version 67 with 155 x 155 modules.
|
|
8325
|
+
* </p>
|
|
8326
|
+
*/
|
|
8327
|
+
VERSION_67: 67,
|
|
8328
|
+
/**
|
|
8329
|
+
* <p>
|
|
8330
|
+
* Specifies version 68 with 157 x 157 modules.
|
|
8331
|
+
* </p>
|
|
8332
|
+
*/
|
|
8333
|
+
VERSION_68: 68,
|
|
8334
|
+
/**
|
|
8335
|
+
* <p>
|
|
8336
|
+
* Specifies version 69 with 159 x 159 modules.
|
|
8337
|
+
* </p>
|
|
8338
|
+
*/
|
|
8339
|
+
VERSION_69: 69,
|
|
8340
|
+
/**
|
|
8341
|
+
* <p>
|
|
8342
|
+
* Specifies version 70 with 161 x 161 modules.
|
|
8343
|
+
* </p>
|
|
8344
|
+
*/
|
|
8345
|
+
VERSION_70: 70,
|
|
8346
|
+
/**
|
|
8347
|
+
* <p>
|
|
8348
|
+
* Specifies version 71 with 163 x 163 modules.
|
|
8349
|
+
* </p>
|
|
8350
|
+
*/
|
|
8351
|
+
VERSION_71: 71,
|
|
8352
|
+
/**
|
|
8353
|
+
* <p>
|
|
8354
|
+
* Specifies version 72 with 165 x 165 modules.
|
|
8355
|
+
* </p>
|
|
8356
|
+
*/
|
|
8357
|
+
VERSION_72: 72,
|
|
8358
|
+
/**
|
|
8359
|
+
* <p>
|
|
8360
|
+
* Specifies version 73 with 167 x 167 modules.
|
|
8361
|
+
* </p>
|
|
8362
|
+
*/
|
|
8363
|
+
VERSION_73: 73,
|
|
8364
|
+
/**
|
|
8365
|
+
* <p>
|
|
8366
|
+
* Specifies version 74 with 169 x 169 modules.
|
|
8367
|
+
* </p>
|
|
8368
|
+
*/
|
|
8369
|
+
VERSION_74: 74,
|
|
8370
|
+
/**
|
|
8371
|
+
* <p>
|
|
8372
|
+
* Specifies version 75 with 171 x 171 modules.
|
|
8373
|
+
* </p>
|
|
8374
|
+
*/
|
|
8375
|
+
VERSION_75: 75,
|
|
8376
|
+
/**
|
|
8377
|
+
* <p>
|
|
8378
|
+
* Specifies version 76 with 173 x 173 modules.
|
|
8379
|
+
* </p>
|
|
8380
|
+
*/
|
|
8381
|
+
VERSION_76: 76,
|
|
8382
|
+
/**
|
|
8383
|
+
* <p>
|
|
8384
|
+
* Specifies version 77 with 175 x 175 modules.
|
|
8385
|
+
* </p>
|
|
8386
|
+
*/
|
|
8387
|
+
VERSION_77: 77,
|
|
8388
|
+
/**
|
|
8389
|
+
* <p>
|
|
8390
|
+
* Specifies version 78 with 177 x 177 modules.
|
|
8391
|
+
* </p>
|
|
8392
|
+
*/
|
|
8393
|
+
VERSION_78: 78,
|
|
8394
|
+
/**
|
|
8395
|
+
* <p>
|
|
8396
|
+
* Specifies version 79 with 179 x 179 modules.
|
|
8397
|
+
* </p>
|
|
8398
|
+
*/
|
|
8399
|
+
VERSION_79: 79,
|
|
8400
|
+
/**
|
|
8401
|
+
* <p>
|
|
8402
|
+
* Specifies version 80 with 181 x 181 modules.
|
|
8403
|
+
* </p>
|
|
8404
|
+
*/
|
|
8405
|
+
VERSION_80: 80,
|
|
8406
|
+
/**
|
|
8407
|
+
* <p>
|
|
8408
|
+
* Specifies version 81 with 183 x 183 modules.
|
|
8409
|
+
* </p>
|
|
8410
|
+
*/
|
|
8411
|
+
VERSION_81: 81,
|
|
8412
|
+
/**
|
|
8413
|
+
* <p>
|
|
8414
|
+
* Specifies version 82 with 185 x 185 modules.
|
|
8415
|
+
* </p>
|
|
8416
|
+
*/
|
|
8417
|
+
VERSION_82: 82,
|
|
8418
|
+
/**
|
|
8419
|
+
* <p>
|
|
8420
|
+
* Specifies version 83 with 187 x 187 modules.
|
|
8421
|
+
* </p>
|
|
8422
|
+
*/
|
|
8423
|
+
VERSION_83: 83,
|
|
8424
|
+
/**
|
|
8425
|
+
* <p>
|
|
8426
|
+
* Specifies version 84 with 189 x 189 modules.
|
|
8427
|
+
* </p>
|
|
8428
|
+
*/
|
|
8429
|
+
VERSION_84: 84,
|
|
8430
|
+
}
|
|
8431
|
+
|
|
8432
|
+
/**
|
|
8433
|
+
* <p>
|
|
8434
|
+
* Level of Reed-Solomon error correction. From low to high: L1, L2, L3, L4.
|
|
8435
|
+
* </p>
|
|
8436
|
+
*/
|
|
8437
|
+
HanXinErrorLevel =
|
|
8438
|
+
{
|
|
8439
|
+
/**
|
|
8440
|
+
* <p>
|
|
8441
|
+
* Allows recovery of 8% of the code text
|
|
8442
|
+
* </p>
|
|
8443
|
+
*/
|
|
8444
|
+
L1: 0,
|
|
8445
|
+
/**
|
|
8446
|
+
* <p>
|
|
8447
|
+
* Allows recovery of 15% of the code text
|
|
8448
|
+
* </p>
|
|
8449
|
+
*/
|
|
8450
|
+
L2: 1,
|
|
8451
|
+
/**
|
|
8452
|
+
* <p>
|
|
8453
|
+
* Allows recovery of 23% of the code text
|
|
8454
|
+
* </p>
|
|
8455
|
+
*/
|
|
8456
|
+
L3: 2,
|
|
8457
|
+
/**
|
|
8458
|
+
* <p>
|
|
8459
|
+
* Allows recovery of 30% of the code text
|
|
8460
|
+
* </p>
|
|
8461
|
+
*/
|
|
8462
|
+
L4: 3
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8465
|
+
/**
|
|
8466
|
+
* <p>
|
|
8467
|
+
* Han Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.
|
|
8468
|
+
* </p><p><hr><blockquote><pre>
|
|
8469
|
+
* <pre>
|
|
8470
|
+
* @example
|
|
8471
|
+
* // Auto mode
|
|
8472
|
+
* let codetext = "1234567890ABCDEFGabcdefg,Han Xin Code";
|
|
8473
|
+
* let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8474
|
+
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8475
|
+
*
|
|
8476
|
+
* @example
|
|
8477
|
+
* // Bytes mode
|
|
8478
|
+
* let encodedArr = [0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9];
|
|
8479
|
+
*
|
|
8480
|
+
* //encode array to string
|
|
8481
|
+
* let codetext = "";
|
|
8482
|
+
* for (int i = 0; i <encodedArr.length; i++)
|
|
8483
|
+
* {
|
|
8484
|
+
* let bval = String.fromCharCode(encodedArr[i]);
|
|
8485
|
+
* codetext += bval;
|
|
8486
|
+
* }
|
|
8487
|
+
*
|
|
8488
|
+
* let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8489
|
+
* generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.BYTES);
|
|
8490
|
+
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8491
|
+
*
|
|
8492
|
+
* @example
|
|
8493
|
+
* // ECI mode
|
|
8494
|
+
* let codetext = "ΑΒΓΔΕ";
|
|
8495
|
+
* let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8496
|
+
* generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.ECI);
|
|
8497
|
+
* generator.getParameters().getBarcode().getHanXin().setHanXinECIEncoding(ECIEncodings.ISO_8859_7);
|
|
8498
|
+
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8499
|
+
*
|
|
8500
|
+
* @example
|
|
8501
|
+
* // URI mode
|
|
8502
|
+
* let codetext = "https://www.test.com/%BC%DE%%%ab/search=test";
|
|
8503
|
+
* generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
|
|
8504
|
+
* generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.URI);
|
|
8505
|
+
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
8506
|
+
*
|
|
8507
|
+
* // Extended mode - TBD
|
|
8508
|
+
* </pre>
|
|
8509
|
+
* </pre></blockquote></hr></p>
|
|
8510
|
+
*/
|
|
8511
|
+
HanXinEncodeMode =
|
|
8512
|
+
{
|
|
8513
|
+
/**
|
|
8514
|
+
* <p>
|
|
8515
|
+
* Sequence of Numeric, Text, ECI, Binary Bytes and 4 GB18030 modes changing automatically.
|
|
8516
|
+
* </p>
|
|
8517
|
+
*/
|
|
8518
|
+
AUTO: 0,
|
|
8519
|
+
/**
|
|
8520
|
+
* <p>
|
|
8521
|
+
* Binary byte mode encodes binary data in any form and encodes them in their binary byte. Every byte in
|
|
8522
|
+
* Binary Byte mode is represented by 8 bits.
|
|
8523
|
+
* </p>
|
|
8524
|
+
*/
|
|
8525
|
+
BINARY: 1,
|
|
8526
|
+
/**
|
|
8527
|
+
* <p>
|
|
8528
|
+
* Extended Channel Interpretation (ECI) mode
|
|
8529
|
+
* </p>
|
|
8530
|
+
*/
|
|
8531
|
+
ECI: 2,
|
|
8532
|
+
/**
|
|
8533
|
+
* <p>
|
|
8534
|
+
* Unicode mode designs a way to represent any text data reference to UTF8 encoding/charset in Han Xin Code.
|
|
8535
|
+
* </p>
|
|
8536
|
+
*/
|
|
8537
|
+
UNICODE: 3,
|
|
8538
|
+
/**
|
|
8539
|
+
* <p>
|
|
8540
|
+
* URI mode indicates the data represented in Han Xin Code is Uniform Resource Identifier (URI)
|
|
8541
|
+
* reference to RFC 3986.
|
|
8542
|
+
* </p>
|
|
8543
|
+
*/
|
|
8544
|
+
URI: 4,
|
|
8545
|
+
/**
|
|
8546
|
+
* <p>
|
|
8547
|
+
* Extended mode will allow more flexible combinations of other modes, this mode is currently not implemented.
|
|
8548
|
+
* </p>
|
|
8549
|
+
*/
|
|
8550
|
+
EXTENDED: 5
|
|
8551
|
+
}
|
|
8552
|
+
|
|
8553
|
+
/**
|
|
8554
|
+
* <p>
|
|
8555
|
+
* Specify the type of the ECC to encode.
|
|
8556
|
+
* </p>
|
|
8557
|
+
*/
|
|
8558
|
+
DataMatrixVersion =
|
|
8559
|
+
{
|
|
8560
|
+
/**
|
|
8561
|
+
* <p>
|
|
8562
|
+
* Specifies to automatically pick up the smallest size for DataMatrix.
|
|
8563
|
+
* This is default value.
|
|
8564
|
+
* </p>
|
|
8565
|
+
*/
|
|
8566
|
+
AUTO: 0,
|
|
8567
|
+
/**
|
|
8568
|
+
* <p>
|
|
8569
|
+
* Instructs to get symbol sizes from Rows And Columns parameters. Note that DataMatrix does not support
|
|
8570
|
+
* custom rows and columns numbers. This option is not recommended to use.
|
|
8571
|
+
* </p>
|
|
8572
|
+
*/
|
|
8573
|
+
ROWS_COLUMNS: 1,
|
|
8574
|
+
/**
|
|
8575
|
+
* <p>
|
|
8576
|
+
* Specifies size of 9 x 9 modules for ECC000 type.
|
|
8577
|
+
* </p>
|
|
8578
|
+
*/
|
|
8579
|
+
ECC000_9x9: 2,
|
|
8580
|
+
/**
|
|
8581
|
+
* <p>
|
|
8582
|
+
* Specifies size of 11 x 11 modules for ECC000-ECC050 types.
|
|
8583
|
+
* </p>
|
|
8584
|
+
*/
|
|
8585
|
+
ECC000_050_11x11: 3,
|
|
8586
|
+
/**
|
|
8587
|
+
* <p>
|
|
8588
|
+
* Specifies size of 13 x 13 modules for ECC000-ECC100 types.
|
|
8589
|
+
* </p>
|
|
8590
|
+
*/
|
|
8591
|
+
ECC000_100_13x13: 4,
|
|
8592
|
+
/**
|
|
8593
|
+
* <p>
|
|
8594
|
+
* Specifies size of 15 x 15 modules for ECC000-ECC100 types.
|
|
8595
|
+
* </p>
|
|
8596
|
+
*/
|
|
8597
|
+
ECC000_100_15x15: 5,
|
|
8598
|
+
/**
|
|
8599
|
+
* <p>
|
|
8600
|
+
* Specifies size of 17 x 17 modules for ECC000-ECC140 types.
|
|
8601
|
+
* </p>
|
|
8602
|
+
*/
|
|
8603
|
+
ECC000_140_17x17: 6,
|
|
8604
|
+
/**
|
|
8605
|
+
* <p>
|
|
8606
|
+
* Specifies size of 19 x 19 modules for ECC000-ECC140 types.
|
|
8607
|
+
* </p>
|
|
8608
|
+
*/
|
|
8609
|
+
ECC000_140_19x19: 7,
|
|
8610
|
+
/**
|
|
8611
|
+
* <p>
|
|
8612
|
+
* Specifies size of 21 x 21 modules for ECC000-ECC140 types.
|
|
8613
|
+
* </p>
|
|
8614
|
+
*/
|
|
8615
|
+
ECC000_140_21x21: 8,
|
|
8616
|
+
/**
|
|
8617
|
+
* <p>
|
|
8618
|
+
* Specifies size of 23 x 23 modules for ECC000-ECC140 types.
|
|
8619
|
+
* </p>
|
|
8620
|
+
*/
|
|
8621
|
+
ECC000_140_23x23: 9,
|
|
8622
|
+
/**
|
|
8623
|
+
* <p>
|
|
8624
|
+
* Specifies size of 25 x 25 modules for ECC000-ECC140 types.
|
|
8625
|
+
* </p>
|
|
8626
|
+
*/
|
|
8627
|
+
ECC000_140_25x25: 10,
|
|
8628
|
+
/**
|
|
8629
|
+
* <p>
|
|
8630
|
+
* Specifies size of 27 x 27 modules for ECC000-ECC140 types.
|
|
8631
|
+
* </p>
|
|
8632
|
+
*/
|
|
8633
|
+
ECC000_140_27x27: 11,
|
|
8634
|
+
/**
|
|
8635
|
+
* <p>
|
|
8636
|
+
* Specifies size of 29 x 29 modules for ECC000-ECC140 types.
|
|
8637
|
+
* </p>
|
|
8638
|
+
*/
|
|
8639
|
+
ECC000_140_29x29: 12,
|
|
8640
|
+
/**
|
|
8641
|
+
* <p>
|
|
8642
|
+
* Specifies size of 31 x 31 modules for ECC000-ECC140 types.
|
|
8643
|
+
* </p>
|
|
8644
|
+
*/
|
|
8645
|
+
ECC000_140_31x31: 13,
|
|
8646
|
+
/**
|
|
8647
|
+
* <p>
|
|
8648
|
+
* Specifies size of 33 x 33 modules for ECC000-ECC140 types.
|
|
8649
|
+
* </p>
|
|
8650
|
+
*/
|
|
8651
|
+
ECC000_140_33x33: 14,
|
|
8652
|
+
/**
|
|
8653
|
+
* <p>
|
|
8654
|
+
* Specifies size of 35 x 35 modules for ECC000-ECC140 types.
|
|
8655
|
+
* </p>
|
|
8656
|
+
*/
|
|
8657
|
+
ECC000_140_35x35: 15,
|
|
8658
|
+
/**
|
|
8659
|
+
* <p>
|
|
8660
|
+
* Specifies size of 37 x 37 modules for ECC000-ECC140 types.
|
|
8661
|
+
* </p>
|
|
8662
|
+
*/
|
|
8663
|
+
ECC000_140_37x37: 16,
|
|
8664
|
+
/**
|
|
8665
|
+
* <p>
|
|
8666
|
+
* Specifies size of 39 x 39 modules for ECC000-ECC140 types.
|
|
8667
|
+
* </p>
|
|
8668
|
+
*/
|
|
8669
|
+
ECC000_140_39x39: 17,
|
|
8670
|
+
/**
|
|
8671
|
+
* <p>
|
|
8672
|
+
* Specifies size of 41 x 41 modules for ECC000-ECC140 types.
|
|
8673
|
+
* </p>
|
|
8674
|
+
*/
|
|
8675
|
+
ECC000_140_41x41: 18,
|
|
8676
|
+
/**
|
|
8677
|
+
* <p>
|
|
8678
|
+
* Specifies size of 43 x 43 modules for ECC000-ECC140 types.
|
|
8679
|
+
* </p>
|
|
8680
|
+
*/
|
|
8681
|
+
ECC000_140_43x43: 19,
|
|
8682
|
+
/**
|
|
8683
|
+
* <p>
|
|
8684
|
+
* Specifies size of 45 x 45 modules for ECC000-ECC140 types.
|
|
8685
|
+
* </p>
|
|
8686
|
+
*/
|
|
8687
|
+
ECC000_140_45x45: 20,
|
|
8688
|
+
/**
|
|
8689
|
+
* <p>
|
|
8690
|
+
* Specifies size of 47 x 47 modules for ECC000-ECC140 types.
|
|
8691
|
+
* </p>
|
|
8692
|
+
*/
|
|
8693
|
+
ECC000_140_47x47: 21,
|
|
8694
|
+
/**
|
|
8695
|
+
* <p>
|
|
8696
|
+
* Specifies size of 49 x 49 modules for ECC000-ECC140 types.
|
|
8697
|
+
* </p>
|
|
8698
|
+
*/
|
|
8699
|
+
ECC000_140_49x49: 22,
|
|
8700
|
+
/**
|
|
8701
|
+
* <p>
|
|
8702
|
+
* Specifies size of 10 x 10 modules for ECC200 type.
|
|
8703
|
+
* </p>
|
|
8704
|
+
*/
|
|
8705
|
+
ECC200_10x10: 23,
|
|
8706
|
+
/**
|
|
8707
|
+
* <p>
|
|
8708
|
+
* Specifies size of 12 x 12 modules for ECC200 type.
|
|
8709
|
+
* </p>
|
|
8710
|
+
*/
|
|
8711
|
+
ECC200_12x12: 24,
|
|
8712
|
+
/**
|
|
8713
|
+
* <p>
|
|
8714
|
+
* Specifies size of 14 x 14 modules for ECC200 type.
|
|
8715
|
+
* </p>
|
|
8716
|
+
*/
|
|
8717
|
+
ECC200_14x14: 25,
|
|
8718
|
+
/**
|
|
8719
|
+
* <p>
|
|
8720
|
+
* Specifies size of 16 x 16 modules for ECC200 type.
|
|
8721
|
+
* </p>
|
|
8722
|
+
*/
|
|
8723
|
+
ECC200_16x16: 26,
|
|
8724
|
+
/**
|
|
8725
|
+
* <p>
|
|
8726
|
+
* Specifies size of 18 x 18 modules for ECC200 type.
|
|
8727
|
+
* </p>
|
|
8728
|
+
*/
|
|
8729
|
+
ECC200_18x18: 27,
|
|
8730
|
+
/**
|
|
8731
|
+
* <p>
|
|
8732
|
+
* Specifies size of 20 x 20 modules for ECC200 type.
|
|
8733
|
+
* </p>
|
|
8734
|
+
*/
|
|
8735
|
+
ECC200_20x20: 28,
|
|
8736
|
+
/**
|
|
8737
|
+
* <p>
|
|
8738
|
+
* Specifies size of 22 x 22 modules for ECC200 type.
|
|
8739
|
+
* </p>
|
|
8740
|
+
*/
|
|
8741
|
+
ECC200_22x22: 29,
|
|
8742
|
+
/**
|
|
8743
|
+
* <p>
|
|
8744
|
+
* Specifies size of 24 x 24 modules for ECC200 type.
|
|
8745
|
+
* </p>
|
|
8746
|
+
*/
|
|
8747
|
+
ECC200_24x24: 30,
|
|
8748
|
+
/**
|
|
8749
|
+
* <p>
|
|
8750
|
+
* Specifies size of 26 x 26 modules for ECC200 type.
|
|
8751
|
+
* </p>
|
|
8752
|
+
*/
|
|
8753
|
+
ECC200_26x26: 31,
|
|
8754
|
+
/**
|
|
8755
|
+
* <p>
|
|
8756
|
+
* Specifies size of 32 x 32 modules for ECC200 type.
|
|
8757
|
+
* </p>
|
|
8758
|
+
*/
|
|
8759
|
+
ECC200_32x32: 32,
|
|
8760
|
+
/**
|
|
8761
|
+
* <p>
|
|
8762
|
+
* Specifies size of 36 x 36 modules for ECC200 type.
|
|
8763
|
+
* </p>
|
|
8764
|
+
*/
|
|
8765
|
+
ECC200_36x36: 33,
|
|
8766
|
+
/**
|
|
8767
|
+
* <p>
|
|
8768
|
+
* Specifies size of 40 x 40 modules for ECC200 type.
|
|
8769
|
+
* </p>
|
|
8770
|
+
*/
|
|
8771
|
+
ECC200_40x40: 34,
|
|
8772
|
+
/**
|
|
8773
|
+
* <p>
|
|
8774
|
+
* Specifies size of 44 x 44 modules for ECC200 type.
|
|
8775
|
+
* </p>
|
|
8776
|
+
*/
|
|
8777
|
+
ECC200_44x44: 35,
|
|
8778
|
+
/**
|
|
8779
|
+
* <p>
|
|
8780
|
+
* Specifies size of 48 x 48 modules for ECC200 type.
|
|
8781
|
+
* </p>
|
|
8782
|
+
*/
|
|
8783
|
+
ECC200_48x48: 36,
|
|
8784
|
+
/**
|
|
8785
|
+
* <p>
|
|
8786
|
+
* Specifies size of 52 x 52 modules for ECC200 type.
|
|
8787
|
+
* </p>
|
|
8788
|
+
*/
|
|
8789
|
+
ECC200_52x52: 37,
|
|
8790
|
+
/**
|
|
8791
|
+
* <p>
|
|
8792
|
+
* Specifies size of 64 x 64 modules for ECC200 type.
|
|
8793
|
+
* </p>
|
|
8794
|
+
*/
|
|
8795
|
+
ECC200_64x64: 38,
|
|
8796
|
+
/**
|
|
8797
|
+
* <p>
|
|
8798
|
+
* Specifies size of 72 x 72 modules for ECC200 type.
|
|
8799
|
+
* </p>
|
|
8800
|
+
*/
|
|
8801
|
+
ECC200_72x72: 39,
|
|
8802
|
+
/**
|
|
8803
|
+
* <p>
|
|
8804
|
+
* Specifies size of 80 x 80 modules for ECC200 type.
|
|
8805
|
+
* </p>
|
|
8806
|
+
*/
|
|
8807
|
+
ECC200_80x80: 40,
|
|
8808
|
+
/**
|
|
8809
|
+
* <p>
|
|
8810
|
+
* Specifies size of 88 x 88 modules for ECC200 type.
|
|
8811
|
+
* </p>
|
|
8812
|
+
*/
|
|
8813
|
+
ECC200_88x88: 41,
|
|
8814
|
+
/**
|
|
8815
|
+
* <p>
|
|
8816
|
+
* Specifies size of 96 x 96 modules for ECC200 type.
|
|
8817
|
+
* </p>
|
|
8818
|
+
*/
|
|
8819
|
+
ECC200_96x96: 42,
|
|
8820
|
+
/**
|
|
8821
|
+
* <p>
|
|
8822
|
+
* Specifies size of 104 x 104 modules for ECC200 type.
|
|
8823
|
+
* </p>
|
|
8824
|
+
*/
|
|
8825
|
+
ECC200_104x104: 43,
|
|
8826
|
+
/**
|
|
8827
|
+
* <p>
|
|
8828
|
+
* Specifies size of 120 x 120 modules for ECC200 type.
|
|
8829
|
+
* </p>
|
|
8830
|
+
*/
|
|
8831
|
+
ECC200_120x120: 44,
|
|
8832
|
+
/**
|
|
8833
|
+
* <p>
|
|
8834
|
+
* Specifies size of 132 x 132 modules for ECC200 type.
|
|
8835
|
+
* </p>
|
|
8836
|
+
*/
|
|
8837
|
+
ECC200_132x132: 45,
|
|
8838
|
+
/**
|
|
8839
|
+
* <p>
|
|
8840
|
+
* Specifies size of 144 x 144 modules for ECC200 type.
|
|
8841
|
+
* </p>
|
|
8842
|
+
*/
|
|
8843
|
+
ECC200_144x144: 46,
|
|
8844
|
+
/**
|
|
8845
|
+
* <p>
|
|
8846
|
+
* Specifies size of 8 x 18 modules for ECC200 type.
|
|
8847
|
+
* </p>
|
|
8848
|
+
*/
|
|
8849
|
+
ECC200_8x18: 47,
|
|
8850
|
+
/**
|
|
8851
|
+
* <p>
|
|
8852
|
+
* Specifies size of 8 x 32 modules for ECC200 type.
|
|
8853
|
+
* </p>
|
|
8854
|
+
*/
|
|
8855
|
+
ECC200_8x32: 48,
|
|
8856
|
+
/**
|
|
8857
|
+
* <p>
|
|
8858
|
+
* Specifies size of 12 x 26 modules for ECC200 type.
|
|
8859
|
+
* </p>
|
|
8860
|
+
*/
|
|
8861
|
+
ECC200_12x26: 49,
|
|
8862
|
+
/**
|
|
8863
|
+
* <p>
|
|
8864
|
+
* Specifies size of 12 x 36 modules for ECC200 type.
|
|
8865
|
+
* </p>
|
|
8866
|
+
*/
|
|
8867
|
+
ECC200_12x36: 50,
|
|
8868
|
+
/**
|
|
8869
|
+
* <p>
|
|
8870
|
+
* Specifies size of 16 x 36 modules for ECC200 type.
|
|
8871
|
+
* </p>
|
|
8872
|
+
*/
|
|
8873
|
+
ECC200_16x36: 51,
|
|
8874
|
+
/**
|
|
8875
|
+
* <p>
|
|
8876
|
+
* Specifies size of 16 x 48 modules for ECC200 type.
|
|
8877
|
+
* </p>
|
|
8878
|
+
*/
|
|
8879
|
+
ECC200_16x48: 52,
|
|
8880
|
+
/**
|
|
8881
|
+
* <p>
|
|
8882
|
+
* Specifies size of 8 x 48 modules for DMRE barcodes.
|
|
8883
|
+
* </p>
|
|
8884
|
+
*/
|
|
8885
|
+
DMRE_8x48: 53,
|
|
8886
|
+
/**
|
|
8887
|
+
* <p>
|
|
8888
|
+
* Specifies size of 8 x 64 modules for DMRE barcodes.
|
|
8889
|
+
* </p>
|
|
8890
|
+
*/
|
|
8891
|
+
DMRE_8x64: 54,
|
|
8892
|
+
/**
|
|
8893
|
+
* <p>
|
|
8894
|
+
* Specifies size of 8 x 80 modules for DMRE barcodes.
|
|
8895
|
+
* </p>
|
|
8896
|
+
*/
|
|
8897
|
+
DMRE_8x80: 55,
|
|
8898
|
+
/**
|
|
8899
|
+
* <p>
|
|
8900
|
+
* Specifies size of 8 x 96 modules for DMRE barcodes.
|
|
8901
|
+
* </p>
|
|
8902
|
+
*/
|
|
8903
|
+
DMRE_8x96: 56,
|
|
8904
|
+
/**
|
|
8905
|
+
* <p>
|
|
8906
|
+
* Specifies size of 8 x 120 modules for DMRE barcodes.
|
|
8907
|
+
* </p>
|
|
8908
|
+
*/
|
|
8909
|
+
DMRE_8x120: 57,
|
|
8910
|
+
/**
|
|
8911
|
+
* <p>
|
|
8912
|
+
* Specifies size of 8 x 144 modules for DMRE barcodes.
|
|
8913
|
+
* </p>
|
|
8914
|
+
*/
|
|
8915
|
+
DMRE_8x144: 58,
|
|
8916
|
+
/**
|
|
8917
|
+
* <p>
|
|
8918
|
+
* Specifies size of 12 x 64 modules for DMRE barcodes.
|
|
8919
|
+
* </p>
|
|
8920
|
+
*/
|
|
8921
|
+
DMRE_12x64: 59,
|
|
8922
|
+
/**
|
|
8923
|
+
* <p>
|
|
8924
|
+
* Specifies size of 12 x 88 modules for DMRE barcodes.
|
|
8925
|
+
* </p>
|
|
8926
|
+
*/
|
|
8927
|
+
DMRE_12x88: 60,
|
|
8928
|
+
/**
|
|
8929
|
+
* <p>
|
|
8930
|
+
* Specifies size of 16 x 64 modules for DMRE barcodes.
|
|
8931
|
+
* </p>
|
|
8932
|
+
*/
|
|
8933
|
+
DMRE_16x64: 61,
|
|
8934
|
+
/**
|
|
8935
|
+
* <p>
|
|
8936
|
+
* Specifies size of 20 x 36 modules for DMRE barcodes.
|
|
8937
|
+
* </p>
|
|
8938
|
+
*/
|
|
8939
|
+
DMRE_20x36: 62,
|
|
8940
|
+
/**
|
|
8941
|
+
* <p>
|
|
8942
|
+
* Specifies size of 20 x 44 modules for DMRE barcodes.
|
|
8943
|
+
* </p>
|
|
8944
|
+
*/
|
|
8945
|
+
DMRE_20x44: 63,
|
|
8946
|
+
/**
|
|
8947
|
+
* <p>
|
|
8948
|
+
* Specifies size of 20 x 64 modules for DMRE barcodes.
|
|
8949
|
+
* </p>
|
|
8950
|
+
*/
|
|
8951
|
+
DMRE_20x64: 64,
|
|
8952
|
+
/**
|
|
8953
|
+
* <p>
|
|
8954
|
+
* Specifies size of 22 x 48 modules for DMRE barcodes.
|
|
8955
|
+
* </p>
|
|
8956
|
+
*/
|
|
8957
|
+
DMRE_22x48: 65,
|
|
8958
|
+
/**
|
|
8959
|
+
* <p>
|
|
8960
|
+
* Specifies size of 24 x 48 modules for DMRE barcodes.
|
|
8961
|
+
* </p>
|
|
8962
|
+
*/
|
|
8963
|
+
DMRE_24x48: 66,
|
|
8964
|
+
/**
|
|
8965
|
+
* <p>
|
|
8966
|
+
* Specifies size of 24 x 64 modules for DMRE barcodes.
|
|
8967
|
+
* </p>
|
|
8968
|
+
*/
|
|
8969
|
+
DMRE_24x64: 67,
|
|
8970
|
+
/**
|
|
8971
|
+
* <p>
|
|
8972
|
+
* Specifies size of 26 x 40 modules for DMRE barcodes.
|
|
8973
|
+
* </p>
|
|
8974
|
+
*/
|
|
8975
|
+
DMRE_26x40: 68,
|
|
8976
|
+
/**
|
|
8977
|
+
* <p>
|
|
8978
|
+
* Specifies size of 26 x 48 modules for DMRE barcodes.
|
|
8979
|
+
* </p>
|
|
8980
|
+
*/
|
|
8981
|
+
DMRE_26x48: 69,
|
|
8982
|
+
/**
|
|
8983
|
+
* <p>
|
|
8984
|
+
* Specifies size of 26 x 64 modules for DMRE barcodes.
|
|
8985
|
+
* </p>
|
|
8986
|
+
*/
|
|
8987
|
+
DMRE_26x64: 70
|
|
8988
|
+
}
|
|
8732
8989
|
|
|
8733
8990
|
/**
|
|
8734
8991
|
* <p>
|
|
@@ -8778,51 +9035,51 @@ DataMatrixVersion =
|
|
|
8778
9035
|
* </pre></blockquote></hr></p>
|
|
8779
9036
|
*/
|
|
8780
9037
|
AztecEncodeMode =
|
|
8781
|
-
{
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
9038
|
+
{
|
|
9039
|
+
/**
|
|
9040
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
9041
|
+
* Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
9042
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
9043
|
+
*/
|
|
9044
|
+
AUTO: 0,
|
|
8788
9045
|
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
9046
|
+
/**
|
|
9047
|
+
* Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
|
|
9048
|
+
* @deprecated
|
|
9049
|
+
*/
|
|
9050
|
+
BYTES: 1,
|
|
8794
9051
|
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
9052
|
+
/**
|
|
9053
|
+
* Extended mode which supports multi ECI modes.
|
|
9054
|
+
* It is better to use AztecExtCodetextBuilder for extended codetext generation.
|
|
9055
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
9056
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
9057
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
9058
|
+
* @deprecated
|
|
9059
|
+
*/
|
|
9060
|
+
EXTENDED_CODETEXT: 2,
|
|
9061
|
+
/**
|
|
9062
|
+
* Extended mode which supports multi ECI modes.
|
|
9063
|
+
* It is better to use AztecExtCodetextBuilder for extended codetext generation.
|
|
9064
|
+
* Use Display2DText property to set visible text to removing managing characters.
|
|
9065
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
9066
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
9067
|
+
*/
|
|
9068
|
+
EXTENDED: 3,
|
|
8812
9069
|
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
9070
|
+
/**
|
|
9071
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
9072
|
+
* If a Unicode character is found, an exception is thrown.
|
|
9073
|
+
*/
|
|
9074
|
+
BINARY: 4,
|
|
8818
9075
|
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
}
|
|
9076
|
+
/**
|
|
9077
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
9078
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
9079
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
9080
|
+
*/
|
|
9081
|
+
ECI: 5
|
|
9082
|
+
}
|
|
8826
9083
|
|
|
8827
9084
|
/**
|
|
8828
9085
|
* Version of MicroQR Code.
|
|
@@ -8830,41 +9087,41 @@ AztecEncodeMode =
|
|
|
8830
9087
|
* @enum
|
|
8831
9088
|
*/
|
|
8832
9089
|
MicroQRVersion =
|
|
8833
|
-
{
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
9090
|
+
{
|
|
9091
|
+
/**
|
|
9092
|
+
* Specifies to automatically pick up the best version for MicroQR.
|
|
9093
|
+
* This is default value.
|
|
9094
|
+
*/
|
|
9095
|
+
AUTO: 0,
|
|
8839
9096
|
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
9097
|
+
/**
|
|
9098
|
+
* <p>
|
|
9099
|
+
* Specifies version M1 for Micro QR with 11 x 11 modules.
|
|
9100
|
+
* </p>
|
|
9101
|
+
*/
|
|
9102
|
+
M1: 1,
|
|
8846
9103
|
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
9104
|
+
/**
|
|
9105
|
+
* <p>
|
|
9106
|
+
* Specifies version M2 for Micro QR with 13 x 13 modules.
|
|
9107
|
+
* </p>
|
|
9108
|
+
*/
|
|
9109
|
+
M2: 2,
|
|
8853
9110
|
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
9111
|
+
/**
|
|
9112
|
+
* <p>
|
|
9113
|
+
* Specifies version M3 for Micro QR with 15 x 15 modules.
|
|
9114
|
+
* </p>
|
|
9115
|
+
*/
|
|
9116
|
+
M3: 3,
|
|
8860
9117
|
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
}
|
|
9118
|
+
/**
|
|
9119
|
+
* <p>
|
|
9120
|
+
* Specifies version M4 for Micro QR with 17 x 17 modules.
|
|
9121
|
+
* </p>
|
|
9122
|
+
*/
|
|
9123
|
+
M4: 4
|
|
9124
|
+
}
|
|
8868
9125
|
|
|
8869
9126
|
/**
|
|
8870
9127
|
* <p>
|
|
@@ -8874,239 +9131,274 @@ MicroQRVersion =
|
|
|
8874
9131
|
* @enum
|
|
8875
9132
|
*/
|
|
8876
9133
|
RectMicroQRVersion =
|
|
8877
|
-
{
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
9134
|
+
{
|
|
9135
|
+
/**
|
|
9136
|
+
* <p>
|
|
9137
|
+
* Specifies to automatically pick up the best version for RectMicroQR.
|
|
9138
|
+
* This is default value.
|
|
9139
|
+
* </p>
|
|
9140
|
+
*/
|
|
9141
|
+
AUTO: 0,
|
|
8885
9142
|
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
9143
|
+
/**
|
|
9144
|
+
* <p>
|
|
9145
|
+
* Specifies version with 7 x 43 modules.
|
|
9146
|
+
* </p>
|
|
9147
|
+
*/
|
|
9148
|
+
R7x43: 1,
|
|
8892
9149
|
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
9150
|
+
/**
|
|
9151
|
+
* <p>
|
|
9152
|
+
* Specifies version with 7 x 59 modules.
|
|
9153
|
+
* </p>
|
|
9154
|
+
*/
|
|
9155
|
+
R7x59: 2,
|
|
8899
9156
|
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
9157
|
+
/**
|
|
9158
|
+
* <p>
|
|
9159
|
+
* Specifies version with 7 x 77 modules.
|
|
9160
|
+
* </p>
|
|
9161
|
+
*/
|
|
9162
|
+
R7x77: 3,
|
|
9163
|
+
|
|
9164
|
+
/**
|
|
9165
|
+
* <p>
|
|
9166
|
+
* Specifies version with 7 x 99 modules.
|
|
9167
|
+
* </p>
|
|
9168
|
+
*/
|
|
9169
|
+
R7x99: 4,
|
|
8906
9170
|
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
9171
|
+
/**
|
|
9172
|
+
* <p>
|
|
9173
|
+
* Specifies version with 7 x 139 modules.
|
|
9174
|
+
* </p>
|
|
9175
|
+
*/
|
|
9176
|
+
R7x139: 5,
|
|
8913
9177
|
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
9178
|
+
/**
|
|
9179
|
+
* <p>
|
|
9180
|
+
* Specifies version with 9 x 43 modules.
|
|
9181
|
+
* </p>
|
|
9182
|
+
*/
|
|
9183
|
+
R9x43: 6,
|
|
8920
9184
|
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
9185
|
+
/**
|
|
9186
|
+
* <p>
|
|
9187
|
+
* Specifies version with 9 x 59 modules.
|
|
9188
|
+
* </p>
|
|
9189
|
+
*/
|
|
9190
|
+
R9x59: 7,
|
|
8927
9191
|
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
9192
|
+
/**
|
|
9193
|
+
* <p>
|
|
9194
|
+
* Specifies version with 9 x 77 modules.
|
|
9195
|
+
* </p>
|
|
9196
|
+
*/
|
|
9197
|
+
R9x77: 8,
|
|
8934
9198
|
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
9199
|
+
/**
|
|
9200
|
+
* <p>
|
|
9201
|
+
* Specifies version with 9 x 99 modules.
|
|
9202
|
+
* </p>
|
|
9203
|
+
*/
|
|
9204
|
+
R9x99: 9,
|
|
8941
9205
|
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
9206
|
+
/**
|
|
9207
|
+
* <p>
|
|
9208
|
+
* Specifies version with 9 x 139 modules.
|
|
9209
|
+
* </p>
|
|
9210
|
+
*/
|
|
9211
|
+
R9x139: 10,
|
|
8948
9212
|
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
9213
|
+
/**
|
|
9214
|
+
* <p>
|
|
9215
|
+
* Specifies version with 11 x 27 modules.
|
|
9216
|
+
* </p>
|
|
9217
|
+
*/
|
|
9218
|
+
R11x27: 11,
|
|
8955
9219
|
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
9220
|
+
/**
|
|
9221
|
+
* <p>
|
|
9222
|
+
* Specifies version with 11 x 43 modules.
|
|
9223
|
+
* </p>
|
|
9224
|
+
*/
|
|
9225
|
+
R11x43: 12,
|
|
8962
9226
|
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
9227
|
+
/**
|
|
9228
|
+
* <p>
|
|
9229
|
+
* Specifies version with 11 x 59 modules.
|
|
9230
|
+
* </p>
|
|
9231
|
+
*/
|
|
9232
|
+
R11x59: 13,
|
|
8969
9233
|
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
9234
|
+
/**
|
|
9235
|
+
* <p>
|
|
9236
|
+
* Specifies version with 11 x 77 modules.
|
|
9237
|
+
* </p>
|
|
9238
|
+
*/
|
|
9239
|
+
R11x77: 14,
|
|
8976
9240
|
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
9241
|
+
/**
|
|
9242
|
+
* <p>
|
|
9243
|
+
* Specifies version with 11 x 99 modules.
|
|
9244
|
+
* </p>
|
|
9245
|
+
*/
|
|
9246
|
+
R11x99: 15,
|
|
8983
9247
|
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
9248
|
+
/**
|
|
9249
|
+
* <p>
|
|
9250
|
+
* Specifies version with 11 x 139 modules.
|
|
9251
|
+
* </p>
|
|
9252
|
+
*/
|
|
9253
|
+
R11x139: 16,
|
|
8990
9254
|
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
9255
|
+
/**
|
|
9256
|
+
* <p>
|
|
9257
|
+
* Specifies version with 13 x 27 modules.
|
|
9258
|
+
* </p>
|
|
9259
|
+
*/
|
|
9260
|
+
R13x27: 17,
|
|
8997
9261
|
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9262
|
+
/**
|
|
9263
|
+
* <p>
|
|
9264
|
+
* Specifies version with 13 x 43 modules.
|
|
9265
|
+
* </p>
|
|
9266
|
+
*/
|
|
9267
|
+
R13x43: 18,
|
|
9004
9268
|
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9269
|
+
/**
|
|
9270
|
+
* <p>
|
|
9271
|
+
* Specifies version with 13 x 59 modules.
|
|
9272
|
+
* </p>
|
|
9273
|
+
*/
|
|
9274
|
+
R13x59: 19,
|
|
9011
9275
|
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9276
|
+
/**
|
|
9277
|
+
* <p>
|
|
9278
|
+
* Specifies version with 13 x 77 modules.
|
|
9279
|
+
* </p>
|
|
9280
|
+
*/
|
|
9281
|
+
R13x77: 20,
|
|
9018
9282
|
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9283
|
+
/**
|
|
9284
|
+
* <p>
|
|
9285
|
+
* Specifies version with 13 x 99 modules.
|
|
9286
|
+
* </p>
|
|
9287
|
+
*/
|
|
9288
|
+
R13x99: 21,
|
|
9025
9289
|
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9290
|
+
/**
|
|
9291
|
+
* <p>
|
|
9292
|
+
* Specifies version with 13 x 139 modules.
|
|
9293
|
+
* </p>
|
|
9294
|
+
*/
|
|
9295
|
+
R13x139: 22,
|
|
9032
9296
|
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9297
|
+
/**
|
|
9298
|
+
* <p>
|
|
9299
|
+
* Specifies version with 15 x 43 modules.
|
|
9300
|
+
* </p>
|
|
9301
|
+
*/
|
|
9302
|
+
R15x43: 23,
|
|
9039
9303
|
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9304
|
+
/**
|
|
9305
|
+
* <p>
|
|
9306
|
+
* Specifies version with 15 x 59 modules.
|
|
9307
|
+
* </p>
|
|
9308
|
+
*/
|
|
9309
|
+
R15x59: 24,
|
|
9046
9310
|
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9311
|
+
/**
|
|
9312
|
+
* <p>
|
|
9313
|
+
* Specifies version with 15 x 77 modules.
|
|
9314
|
+
* </p>
|
|
9315
|
+
*/
|
|
9316
|
+
R15x77: 25,
|
|
9053
9317
|
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9318
|
+
/**
|
|
9319
|
+
* <p>
|
|
9320
|
+
* Specifies version with 15 x 99 modules.
|
|
9321
|
+
* </p>
|
|
9322
|
+
*/
|
|
9323
|
+
R15x99: 26,
|
|
9060
9324
|
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9325
|
+
/**
|
|
9326
|
+
* <p>
|
|
9327
|
+
* Specifies version with 15 x 139 modules.
|
|
9328
|
+
* </p>
|
|
9329
|
+
*/
|
|
9330
|
+
R15x139: 27,
|
|
9067
9331
|
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9332
|
+
/**
|
|
9333
|
+
* <p>
|
|
9334
|
+
* Specifies version with 17 x 43 modules.
|
|
9335
|
+
* </p>
|
|
9336
|
+
*/
|
|
9337
|
+
R17x43: 28,
|
|
9074
9338
|
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9339
|
+
/**
|
|
9340
|
+
* <p>
|
|
9341
|
+
* Specifies version with 17 x 59 modules.
|
|
9342
|
+
* </p>
|
|
9343
|
+
*/
|
|
9344
|
+
R17x59: 29,
|
|
9081
9345
|
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9346
|
+
/**
|
|
9347
|
+
* <p>
|
|
9348
|
+
* Specifies version with 17 x 77 modules.
|
|
9349
|
+
* </p>
|
|
9350
|
+
*/
|
|
9351
|
+
R17x77: 30,
|
|
9088
9352
|
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9353
|
+
/**
|
|
9354
|
+
* <p>
|
|
9355
|
+
* Specifies version with 17 x 99 modules.
|
|
9356
|
+
* </p>
|
|
9357
|
+
*/
|
|
9358
|
+
R17x99: 31,
|
|
9095
9359
|
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9360
|
+
/**
|
|
9361
|
+
* <p>
|
|
9362
|
+
* Specifies version with 17 x 139 modules.
|
|
9363
|
+
* </p>
|
|
9364
|
+
*/
|
|
9365
|
+
R17x139: 32
|
|
9366
|
+
}
|
|
9102
9367
|
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9368
|
+
/**
|
|
9369
|
+
* <p>
|
|
9370
|
+
* Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1.
|
|
9371
|
+
* RGBA, HSL, HSLA is allowed in SVG 2.0 standard.
|
|
9372
|
+
* Even in RGB opacity will be set through "fill-opacity" parameter
|
|
9373
|
+
* </p>
|
|
9374
|
+
*/
|
|
9375
|
+
SvgColorMode =
|
|
9376
|
+
{
|
|
9377
|
+
/**
|
|
9378
|
+
* <p>
|
|
9379
|
+
* RGB mode, example: fill="#ff5511" fill-opacity="0.73". Default mode.
|
|
9380
|
+
* </p>
|
|
9381
|
+
*/
|
|
9382
|
+
RGB: 0,
|
|
9383
|
+
/**
|
|
9384
|
+
* <p>
|
|
9385
|
+
* RGBA mode, example: fill="rgba(255, 85, 17, 0.73)"
|
|
9386
|
+
* </p>
|
|
9387
|
+
*/
|
|
9388
|
+
RGBA: 1,
|
|
9389
|
+
/**
|
|
9390
|
+
* <p>
|
|
9391
|
+
* HSL mode, example: fill="hsl(17, 100%, 53%)" fill-opacity="0.73"
|
|
9392
|
+
* </p>
|
|
9393
|
+
*/
|
|
9394
|
+
HSL: 2,
|
|
9395
|
+
/**
|
|
9396
|
+
* <p>
|
|
9397
|
+
* HSLA mode, example: fill="hsla(30, 50%, 70%, 0.8)"
|
|
9398
|
+
* </p>
|
|
9399
|
+
*/
|
|
9400
|
+
HSLA: 3
|
|
9401
|
+
}
|
|
9110
9402
|
|
|
9111
9403
|
module.exports = {
|
|
9112
9404
|
BarcodeGenerator,
|
|
@@ -9183,5 +9475,7 @@ module.exports = {
|
|
|
9183
9475
|
MicroQRVersion,
|
|
9184
9476
|
RectMicroQRVersion,
|
|
9185
9477
|
ImageParameters,
|
|
9186
|
-
SvgParameters
|
|
9478
|
+
SvgParameters,
|
|
9479
|
+
HslaColor,
|
|
9480
|
+
SvgColorMode
|
|
9187
9481
|
};
|