aspose.barcode 23.10.0 → 23.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/AsposeBarcode.js
CHANGED
|
@@ -4,7 +4,7 @@ const joint_ = require('./Joint');
|
|
|
4
4
|
const complexbarcode_ = require("./ComplexBarcode");
|
|
5
5
|
const generation_ = require("./Generation");
|
|
6
6
|
const recognition_ = require("./Recognition");
|
|
7
|
-
const jar_name_ = "/aspose-barcode-nodejs-23.
|
|
7
|
+
const jar_name_ = "/aspose-barcode-nodejs-23.12.jar";
|
|
8
8
|
const jar_path_ = __dirname + jar_name_;
|
|
9
9
|
const fs = require("fs");
|
|
10
10
|
|
package/lib/ComplexBarcode.js
CHANGED
|
@@ -393,7 +393,7 @@ class Address extends joint.BaseJavaClass {
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
init() {
|
|
396
|
-
|
|
396
|
+
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
@@ -479,7 +479,7 @@ class AlternativeScheme extends joint.BaseJavaClass {
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
init() {
|
|
482
|
-
|
|
482
|
+
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
|
package/lib/Generation.js
CHANGED
|
@@ -2815,7 +2815,34 @@ class QrParameters extends joint.BaseJavaClass
|
|
|
2815
2815
|
}
|
|
2816
2816
|
|
|
2817
2817
|
/**
|
|
2818
|
-
*
|
|
2818
|
+
* <p>
|
|
2819
|
+
* PDF417 parameters. Contains PDF417, MacroPDF417, MicroPDF417 and GS1MicroPdf417 parameters.
|
|
2820
|
+
* MacroPDF417 requires two fields: Pdf417MacroFileID and Pdf417MacroSegmentID. All other fields are optional.
|
|
2821
|
+
* MicroPDF417 in Structured Append mode (same as MacroPDF417 mode) requires two fields: Pdf417MacroFileID and Pdf417MacroSegmentID. All other fields are optional.
|
|
2822
|
+
* <pre>
|
|
2823
|
+
* These samples show how to encode UCC/EAN-128 non Linked modes in GS1MicroPdf417
|
|
2824
|
+
* <pre>
|
|
2825
|
+
*
|
|
2826
|
+
* @example
|
|
2827
|
+
* # Encodes GS1 UCC/EAN-128 non Linked mode 905 with AI 01 (GTIN)
|
|
2828
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(01)12345678901231");
|
|
2829
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
2830
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2831
|
+
* {
|
|
2832
|
+
* console.log( result.getCodeText());
|
|
2833
|
+
* });
|
|
2834
|
+
*
|
|
2835
|
+
* @example
|
|
2836
|
+
* # Encodes GS1 UCC/EAN-128 non Linked modes 903, 904 with any AI
|
|
2837
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(241)123456789012345(241)ABCD123456789012345");
|
|
2838
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
2839
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2840
|
+
* {
|
|
2841
|
+
* console.log( result.getCodeText());
|
|
2842
|
+
* });
|
|
2843
|
+
* </pre>
|
|
2844
|
+
* </pre>
|
|
2845
|
+
* </p>
|
|
2819
2846
|
*/
|
|
2820
2847
|
class Pdf417Parameters extends joint.BaseJavaClass
|
|
2821
2848
|
{
|
|
@@ -3175,15 +3202,373 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3175
3202
|
}
|
|
3176
3203
|
|
|
3177
3204
|
/**
|
|
3178
|
-
*
|
|
3205
|
+
* <p>
|
|
3206
|
+
* Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
|
|
3207
|
+
* Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes
|
|
3208
|
+
* Default value: MacroCharacters.None.
|
|
3209
|
+
* </p><p><hr><blockquote><pre>
|
|
3210
|
+
* These samples show how to encode Macro Characters in MicroPdf417
|
|
3211
|
+
* <pre>
|
|
3212
|
+
* @example
|
|
3213
|
+
* # Encodes MicroPdf417 with 05 Macro the string: "[)>\u001E05\u001Dabcde1234\u001E\u0004"
|
|
3214
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
|
|
3215
|
+
* generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_05);
|
|
3216
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3217
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3218
|
+
* {
|
|
3219
|
+
* console.log( result.getCodeText());
|
|
3220
|
+
* });
|
|
3221
|
+
*
|
|
3222
|
+
* @example
|
|
3223
|
+
* # Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"
|
|
3224
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
|
|
3225
|
+
* generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_06);
|
|
3226
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3227
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3228
|
+
* {
|
|
3229
|
+
* console.log(result.getCodeText());
|
|
3230
|
+
* });
|
|
3231
|
+
* </pre>
|
|
3232
|
+
* </pre></blockquote></hr></p>
|
|
3233
|
+
*/
|
|
3234
|
+
getMacroCharacters()
|
|
3235
|
+
{
|
|
3236
|
+
return this.getJavaClass().getMacroCharactersSync();
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
/**
|
|
3240
|
+
* <p>
|
|
3241
|
+
* Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
|
|
3242
|
+
* Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes
|
|
3243
|
+
* Default value: MacroCharacters.None.
|
|
3244
|
+
* </p><p><hr><blockquote><pre>
|
|
3245
|
+
* These samples show how to encode Macro Characters in MicroPdf417
|
|
3246
|
+
* <pre>
|
|
3247
|
+
*
|
|
3248
|
+
* @example
|
|
3249
|
+
* # Encodes MicroPdf417 with 05 Macro the string: "[)>\u001E05\u001Dabcde1234\u001E\u0004"
|
|
3250
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
|
|
3251
|
+
* generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_05);
|
|
3252
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3253
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3254
|
+
* {
|
|
3255
|
+
* console.log( result.getCodeText());
|
|
3256
|
+
* });
|
|
3257
|
+
*
|
|
3258
|
+
* @example
|
|
3259
|
+
* # Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"
|
|
3260
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
|
|
3261
|
+
* generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_06);
|
|
3262
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3263
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3264
|
+
* {
|
|
3265
|
+
* console.log( result.getCodeText());
|
|
3266
|
+
* });
|
|
3267
|
+
* </pre>
|
|
3268
|
+
* </pre></blockquote></hr></p>
|
|
3269
|
+
*/
|
|
3270
|
+
setMacroCharacters(value)
|
|
3271
|
+
{
|
|
3272
|
+
this.getJavaClass().setMacroCharactersSync(value);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
/**
|
|
3276
|
+
* <p>
|
|
3277
|
+
* Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes
|
|
3278
|
+
* With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes
|
|
3279
|
+
* With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC
|
|
3280
|
+
* </p><p><hr><blockquote><pre>
|
|
3281
|
+
* These samples show how to encode "Linked" UCC/EAN-128 modes in GS1MicroPdf417 and Linkage Flag (918) in MicroPdf417 and Pdf417 barcodes
|
|
3282
|
+
* <pre>
|
|
3283
|
+
*
|
|
3284
|
+
* @example
|
|
3285
|
+
* # Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)
|
|
3286
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(11)991231(10)ABCD");
|
|
3287
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3288
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3289
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3290
|
+
* {
|
|
3291
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3292
|
+
* });
|
|
3293
|
+
*
|
|
3294
|
+
* @example
|
|
3295
|
+
* # Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
|
|
3296
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(13)991231(21)ABCD");
|
|
3297
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3298
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3299
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3300
|
+
* {
|
|
3301
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3302
|
+
* });
|
|
3303
|
+
*
|
|
3304
|
+
* @example
|
|
3305
|
+
* # Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)
|
|
3306
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(15)991231(10)ABCD");
|
|
3307
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3308
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3309
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3310
|
+
* {
|
|
3311
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3312
|
+
* });
|
|
3313
|
+
*
|
|
3314
|
+
* @example
|
|
3315
|
+
* # Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
|
|
3316
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(17)991231(21)ABCD");
|
|
3317
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3318
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3319
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3320
|
+
* {
|
|
3321
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3322
|
+
* });
|
|
3323
|
+
*
|
|
3324
|
+
* @example
|
|
3325
|
+
* # Encodes GS1 Linked mode 914 with AI 10 (Lot number)
|
|
3326
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(10)ABCD12345");
|
|
3327
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3328
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3329
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3330
|
+
* {
|
|
3331
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3332
|
+
* });
|
|
3333
|
+
*
|
|
3334
|
+
* @example
|
|
3335
|
+
* # Encodes GS1 Linked mode 915 with AI 21 (Serial number)
|
|
3336
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(21)ABCD12345");
|
|
3337
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3338
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3339
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3340
|
+
* {
|
|
3341
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3342
|
+
* });
|
|
3343
|
+
*
|
|
3344
|
+
* @example
|
|
3345
|
+
* # Encodes GS1 Linked modes 906, 907 with any AI
|
|
3346
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(240)123456789012345");
|
|
3347
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3348
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3349
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3350
|
+
* {
|
|
3351
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3352
|
+
* });
|
|
3353
|
+
*
|
|
3354
|
+
* @example
|
|
3355
|
+
* # Encodes MicroPdf417 NON EAN.UCC Linked mode 918
|
|
3356
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "ABCDE123456789012345678");
|
|
3357
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3358
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3359
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3360
|
+
* {
|
|
3361
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3362
|
+
* });
|
|
3363
|
+
*
|
|
3364
|
+
* @example
|
|
3365
|
+
* # Encodes Pdf417 NON EAN.UCC Linked mode 918
|
|
3366
|
+
* let generator = new BarcodeGenerator(EncodeTypes.PDF_417, "ABCDE123456789012345678");
|
|
3367
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3368
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.PDF_417);
|
|
3369
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3370
|
+
* {
|
|
3371
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3372
|
+
* });
|
|
3373
|
+
* </pre>
|
|
3374
|
+
* </pre></blockquote></hr></p>
|
|
3179
3375
|
*/
|
|
3180
|
-
|
|
3376
|
+
isLinked()
|
|
3181
3377
|
{
|
|
3182
|
-
return this.getJavaClass().
|
|
3378
|
+
return this.getJavaClass().isLinkedSync();
|
|
3183
3379
|
}
|
|
3184
3380
|
|
|
3185
3381
|
/**
|
|
3186
|
-
*
|
|
3382
|
+
* <p>
|
|
3383
|
+
* Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes
|
|
3384
|
+
* With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes
|
|
3385
|
+
* With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC
|
|
3386
|
+
* </p><p><hr><blockquote><pre>
|
|
3387
|
+
* These samples show how to encode "Linked" UCC/EAN-128 modes in GS1MicroPdf417 and Linkage Flag (918) in MicroPdf417 and Pdf417 barcodes
|
|
3388
|
+
* <pre>
|
|
3389
|
+
*
|
|
3390
|
+
*
|
|
3391
|
+
* @example
|
|
3392
|
+
* # Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)
|
|
3393
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(11)991231(10)ABCD");
|
|
3394
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3395
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3396
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3397
|
+
* {
|
|
3398
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3399
|
+
* });
|
|
3400
|
+
*
|
|
3401
|
+
* @example
|
|
3402
|
+
* # Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
|
|
3403
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(13)991231(21)ABCD");
|
|
3404
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3405
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3406
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3407
|
+
* {
|
|
3408
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3409
|
+
* });
|
|
3410
|
+
*
|
|
3411
|
+
* @example
|
|
3412
|
+
* # Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)
|
|
3413
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(15)991231(10)ABCD");
|
|
3414
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3415
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3416
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3417
|
+
* {
|
|
3418
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3419
|
+
* });
|
|
3420
|
+
*
|
|
3421
|
+
* @example
|
|
3422
|
+
* # Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
|
|
3423
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(17)991231(21)ABCD");
|
|
3424
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3425
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3426
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3427
|
+
* {
|
|
3428
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3429
|
+
* });
|
|
3430
|
+
*
|
|
3431
|
+
* @example
|
|
3432
|
+
* # Encodes GS1 Linked mode 914 with AI 10 (Lot number)
|
|
3433
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(10)ABCD12345");
|
|
3434
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3435
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3436
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3437
|
+
* {
|
|
3438
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3439
|
+
* });
|
|
3440
|
+
*
|
|
3441
|
+
* @example
|
|
3442
|
+
* # Encodes GS1 Linked mode 915 with AI 21 (Serial number)
|
|
3443
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(21)ABCD12345");
|
|
3444
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3445
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3446
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3447
|
+
* {
|
|
3448
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3449
|
+
* });
|
|
3450
|
+
*
|
|
3451
|
+
* @example
|
|
3452
|
+
* # Encodes GS1 Linked modes 906, 907 with any AI
|
|
3453
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(240)123456789012345");
|
|
3454
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3455
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
|
|
3456
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3457
|
+
* {
|
|
3458
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3459
|
+
* });
|
|
3460
|
+
*
|
|
3461
|
+
* @example
|
|
3462
|
+
* # Encodes MicroPdf417 NON EAN.UCC Linked mode 918
|
|
3463
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "ABCDE123456789012345678");
|
|
3464
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3465
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3466
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3467
|
+
* {
|
|
3468
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3469
|
+
* });
|
|
3470
|
+
*
|
|
3471
|
+
* @example
|
|
3472
|
+
* # Encodes Pdf417 NON EAN.UCC Linked mode 918
|
|
3473
|
+
* let generator = new BarcodeGenerator(EncodeTypes.PDF_417, "ABCDE123456789012345678");
|
|
3474
|
+
* generator.getParameters().getBarcode().getPdf417().setLinked(true);
|
|
3475
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.PDF_417);
|
|
3476
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3477
|
+
* {
|
|
3478
|
+
* console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
|
|
3479
|
+
* });
|
|
3480
|
+
* </pre>
|
|
3481
|
+
* </pre></blockquote></hr></p>
|
|
3482
|
+
*/
|
|
3483
|
+
setLinked(value)
|
|
3484
|
+
{
|
|
3485
|
+
this.getJavaClass().setLinkedSync(value);
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
/**
|
|
3489
|
+
* <p>
|
|
3490
|
+
* Can be used only with MicroPdf417 and encodes Code 128 emulation modes
|
|
3491
|
+
* Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128
|
|
3492
|
+
* </p><p><hr><blockquote><pre>
|
|
3493
|
+
* These samples show how to encode Code 128 emulation modes with FNC1 in second position and without. In this way MicroPdf417 can be decoded as Code 128 barcode
|
|
3494
|
+
* <pre>
|
|
3495
|
+
*
|
|
3496
|
+
* @example
|
|
3497
|
+
* # Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.
|
|
3498
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "a\u001d1222322323");
|
|
3499
|
+
* generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
|
|
3500
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3501
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3502
|
+
* {
|
|
3503
|
+
* console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
|
|
3504
|
+
* });
|
|
3505
|
+
*
|
|
3506
|
+
* @example
|
|
3507
|
+
* # Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "99", mode 909.
|
|
3508
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "99\u001d1222322323");
|
|
3509
|
+
* generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
|
|
3510
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3511
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3512
|
+
* {
|
|
3513
|
+
* console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
|
|
3514
|
+
* });
|
|
3515
|
+
*
|
|
3516
|
+
* @example
|
|
3517
|
+
* # Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
|
|
3518
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "123456789012345678");
|
|
3519
|
+
* generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
|
|
3520
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3521
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3522
|
+
* {
|
|
3523
|
+
* console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
|
|
3524
|
+
* });
|
|
3525
|
+
* </pre>
|
|
3526
|
+
* </pre></blockquote></hr></p>
|
|
3527
|
+
*/
|
|
3528
|
+
isCode128Emulation()
|
|
3529
|
+
{
|
|
3530
|
+
return this.getJavaClass().isCode128EmulationSync();
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
/**
|
|
3534
|
+
* <p>
|
|
3535
|
+
* Can be used only with MicroPdf417 and encodes Code 128 emulation modes
|
|
3536
|
+
* Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128
|
|
3537
|
+
* </p><p><hr><blockquote><pre>
|
|
3538
|
+
* These samples show how to encode Code 128 emulation modes with FNC1 in second position and without. In this way MicroPdf417 can be decoded as Code 128 barcode
|
|
3539
|
+
* <pre>
|
|
3540
|
+
*
|
|
3541
|
+
* @example
|
|
3542
|
+
* # Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.
|
|
3543
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "a\u001d1222322323");
|
|
3544
|
+
* generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
|
|
3545
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3546
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3547
|
+
* {
|
|
3548
|
+
* console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
|
|
3549
|
+
* });
|
|
3550
|
+
*
|
|
3551
|
+
* @example
|
|
3552
|
+
* # Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "99", mode 909.
|
|
3553
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "99\u001d1222322323");
|
|
3554
|
+
* generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
|
|
3555
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3556
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3557
|
+
* {
|
|
3558
|
+
* console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
|
|
3559
|
+
* });
|
|
3560
|
+
*
|
|
3561
|
+
* @example
|
|
3562
|
+
* # Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
|
|
3563
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "123456789012345678");
|
|
3564
|
+
* generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
|
|
3565
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
3566
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3567
|
+
* {
|
|
3568
|
+
* console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
|
|
3569
|
+
* });
|
|
3570
|
+
* </pre>
|
|
3571
|
+
* </pre></blockquote></hr></p>
|
|
3187
3572
|
*/
|
|
3188
3573
|
setCode128Emulation(value)
|
|
3189
3574
|
{
|
|
@@ -4035,7 +4420,7 @@ class QrStructuredAppendParameters extends joint.BaseJavaClass
|
|
|
4035
4420
|
{
|
|
4036
4421
|
init()
|
|
4037
4422
|
{
|
|
4038
|
-
|
|
4423
|
+
|
|
4039
4424
|
}
|
|
4040
4425
|
|
|
4041
4426
|
constructor(javaClass)
|
|
@@ -4245,7 +4630,7 @@ class Code128Parameters extends joint.BaseJavaClass
|
|
|
4245
4630
|
{
|
|
4246
4631
|
init()
|
|
4247
4632
|
{
|
|
4248
|
-
|
|
4633
|
+
|
|
4249
4634
|
}
|
|
4250
4635
|
|
|
4251
4636
|
constructor(javaClass)
|
|
@@ -5840,6 +6225,11 @@ EncodeTypes =
|
|
|
5840
6225
|
*/
|
|
5841
6226
|
MICRO_PDF_417: 55,
|
|
5842
6227
|
|
|
6228
|
+
/**
|
|
6229
|
+
* Specifies that the data should be encoded with <b>GS1MicroPdf417</b> barcode specification
|
|
6230
|
+
*/
|
|
6231
|
+
GS_1_MICRO_PDF_417: 82,
|
|
6232
|
+
|
|
5843
6233
|
/**
|
|
5844
6234
|
* 2D barcode symbology QR with GS1 string format
|
|
5845
6235
|
*/
|
|
@@ -6295,19 +6685,44 @@ class AztecExtCodetextBuilder extends ExtCodetextBuilder
|
|
|
6295
6685
|
}
|
|
6296
6686
|
|
|
6297
6687
|
/**
|
|
6298
|
-
* Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes
|
|
6299
|
-
* 05 Macro craracter is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer
|
|
6688
|
+
* Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
|
|
6689
|
+
* 05 Macro craracter is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
6300
6690
|
* 06 Macro craracter is translated to "[)>\u001E06\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
6691
|
+
* <pre>
|
|
6692
|
+
* hese samples show how to encode Macro Characters in MicroPdf417 and DataMatrix
|
|
6693
|
+
* <pre>
|
|
6301
6694
|
*
|
|
6302
|
-
*
|
|
6303
|
-
*
|
|
6304
|
-
*
|
|
6695
|
+
* @example
|
|
6696
|
+
* # to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
6697
|
+
* let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, "10123ABC\u001D10123ABC");
|
|
6305
6698
|
* generator.getParameters().getBarcode().getDataMatrix().setMacroCharacters(MacroCharacter.MACRO_05);
|
|
6306
|
-
*
|
|
6307
|
-
*
|
|
6308
|
-
*
|
|
6309
|
-
*
|
|
6310
|
-
*
|
|
6699
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS1DataMatrix);
|
|
6700
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
6701
|
+
* {
|
|
6702
|
+
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
6703
|
+
* });
|
|
6704
|
+
*
|
|
6705
|
+
* @example
|
|
6706
|
+
* # Encodes MicroPdf417 with 05 Macro the string: "[)>\u001E05\u001Dabcde1234\u001E\u0004"
|
|
6707
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "abcde1234");
|
|
6708
|
+
* generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_05);
|
|
6709
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
6710
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
6711
|
+
* {
|
|
6712
|
+
* console.log( result.getCodeText());
|
|
6713
|
+
* });
|
|
6714
|
+
*
|
|
6715
|
+
* @example
|
|
6716
|
+
* # Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"
|
|
6717
|
+
* let generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "abcde1234");
|
|
6718
|
+
* generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_06);
|
|
6719
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
|
|
6720
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
6721
|
+
* {
|
|
6722
|
+
* console.log( result.getCodeText());
|
|
6723
|
+
* });
|
|
6724
|
+
* </pre>
|
|
6725
|
+
* </pre>
|
|
6311
6726
|
*/
|
|
6312
6727
|
MacroCharacter =
|
|
6313
6728
|
{
|
|
@@ -6538,33 +6953,6 @@ EnableChecksum =
|
|
|
6538
6953
|
NO: 2
|
|
6539
6954
|
};
|
|
6540
6955
|
|
|
6541
|
-
/**
|
|
6542
|
-
* Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.
|
|
6543
|
-
* @enum
|
|
6544
|
-
*/
|
|
6545
|
-
Code128Emulation =
|
|
6546
|
-
{
|
|
6547
|
-
/**
|
|
6548
|
-
* No Code 128 emulation
|
|
6549
|
-
*/
|
|
6550
|
-
NONE: 0,
|
|
6551
|
-
|
|
6552
|
-
/**
|
|
6553
|
-
* UCC/EAN-128 emulation. Text compactionmode implied.
|
|
6554
|
-
*/
|
|
6555
|
-
CODE_903: 903,
|
|
6556
|
-
|
|
6557
|
-
/**
|
|
6558
|
-
* UCC/EAN-128 emulation. Numeric compactionmode implied.
|
|
6559
|
-
*/
|
|
6560
|
-
CODE_904: 904,
|
|
6561
|
-
|
|
6562
|
-
/**
|
|
6563
|
-
* UCC/EAN-128 emulation. Implied “01” AI and 14-digit codetext.
|
|
6564
|
-
*/
|
|
6565
|
-
CODE_905: 905
|
|
6566
|
-
}
|
|
6567
|
-
|
|
6568
6956
|
/**
|
|
6569
6957
|
* Specifies the file format of the image.
|
|
6570
6958
|
* @enum
|
|
@@ -6618,7 +7006,8 @@ BarCodeImageFormat =
|
|
|
6618
7006
|
* Type of 2D component
|
|
6619
7007
|
* This sample shows how to create and save a GS1 Composite Bar image.
|
|
6620
7008
|
* Note that 1D codetext and 2D codetext are separated by symbol '/'
|
|
6621
|
-
*
|
|
7009
|
+
*
|
|
7010
|
+
* @example
|
|
6622
7011
|
* let codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
|
|
6623
7012
|
* let generator = new BarcodeGenerator(EncodeTypes.GS1_COMPOSITE_BAR, codetext))
|
|
6624
7013
|
*
|
package/lib/Recognition.js
CHANGED
|
@@ -713,7 +713,6 @@ class QRExtendedParameters extends joint.BaseJavaClass
|
|
|
713
713
|
|
|
714
714
|
init()
|
|
715
715
|
{
|
|
716
|
-
// TODO: Implement init() method.
|
|
717
716
|
}
|
|
718
717
|
|
|
719
718
|
/**
|
|
@@ -809,7 +808,6 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
|
|
|
809
808
|
|
|
810
809
|
init()
|
|
811
810
|
{
|
|
812
|
-
// TODO: Implement init() method.
|
|
813
811
|
}
|
|
814
812
|
|
|
815
813
|
/**
|
|
@@ -919,6 +917,15 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
|
|
|
919
917
|
return this.getJavaClass().isLinkedSync();
|
|
920
918
|
}
|
|
921
919
|
|
|
920
|
+
/**
|
|
921
|
+
* Flag that indicates that the MicroPdf417 barcode encoded with 908, 909, 910 or 911 Code 128 emulation codewords.
|
|
922
|
+
* @return Code 128 emulation flag
|
|
923
|
+
*/
|
|
924
|
+
isCode128Emulation()
|
|
925
|
+
{
|
|
926
|
+
return this.getJavaClass().isCode128EmulationSync();
|
|
927
|
+
}
|
|
928
|
+
|
|
922
929
|
/**
|
|
923
930
|
* Returns a value indicating whether this instance is equal to a specified Pdf417ExtendedParameters value.
|
|
924
931
|
*
|
|
@@ -1201,7 +1208,6 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
|
|
|
1201
1208
|
init()
|
|
1202
1209
|
{
|
|
1203
1210
|
this.scanWindowSizes = BarcodeSvmDetectorSettings.convertScanWindowSizes(this.getJavaClass().getScanWindowSizesSync());
|
|
1204
|
-
// TODO: Implement init() method.
|
|
1205
1211
|
}
|
|
1206
1212
|
|
|
1207
1213
|
static convertScanWindowSizes(javaScanWindowSizes)
|
|
@@ -1559,7 +1565,6 @@ class BarCodeRegionParameters extends joint.BaseJavaClass
|
|
|
1559
1565
|
this.quad = Quadrangle.construct(this.getJavaClass().getQuadrangleSync());
|
|
1560
1566
|
this.rect = joint.Rectangle.construct(this.getJavaClass().getRectangleSync());
|
|
1561
1567
|
this.points = BarCodeRegionParameters.convertJavaPoints(this.getJavaClass().getPointsSync());
|
|
1562
|
-
// TODO: Implement init() method.
|
|
1563
1568
|
}
|
|
1564
1569
|
|
|
1565
1570
|
static convertJavaPoints(javaPoints)
|
|
@@ -1712,7 +1717,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1712
1717
|
* <p>Gets a DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode</p>Value: A DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode
|
|
1713
1718
|
*/
|
|
1714
1719
|
getDataMatrix()
|
|
1715
|
-
{
|
|
1720
|
+
{
|
|
1716
1721
|
return this._dataMatrixExtendedParameters;
|
|
1717
1722
|
}
|
|
1718
1723
|
|
|
@@ -3130,7 +3135,6 @@ class DotCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
3130
3135
|
|
|
3131
3136
|
init()
|
|
3132
3137
|
{
|
|
3133
|
-
// TODO: Implement init() method.
|
|
3134
3138
|
}
|
|
3135
3139
|
}
|
|
3136
3140
|
|
|
@@ -3224,7 +3228,7 @@ class DataMatrixExtendedParameters extends joint.BaseJavaClass
|
|
|
3224
3228
|
{
|
|
3225
3229
|
return this.getJavaClass().hashCodeSync();
|
|
3226
3230
|
}
|
|
3227
|
-
|
|
3231
|
+
|
|
3228
3232
|
/**
|
|
3229
3233
|
* <p>
|
|
3230
3234
|
* Returns a human-readable string representation of this {@code DataMatrixExtendedParameters}.
|
|
@@ -3637,6 +3641,11 @@ DecodeType =
|
|
|
3637
3641
|
*/
|
|
3638
3642
|
MICRO_PDF_417: 36,
|
|
3639
3643
|
|
|
3644
|
+
/**
|
|
3645
|
+
* Specifies that the data should be decoded with <b>MicroPdf417</b> barcode specification
|
|
3646
|
+
*/
|
|
3647
|
+
GS_1_MICRO_PDF_417: 82,
|
|
3648
|
+
|
|
3640
3649
|
/**
|
|
3641
3650
|
* Specifies that the data should be decoded with {@code <b>CodablockF</b>} barcode specification
|
|
3642
3651
|
*/
|
|
Binary file
|