aspose.barcode 22.4.0 → 22.8.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,14 +4,19 @@ 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-22.8.jar";
|
|
8
|
+
const jar_path_ = __dirname + jar_name_;
|
|
9
|
+
const fs = require("fs");
|
|
7
10
|
|
|
8
11
|
function pushJar()
|
|
9
12
|
{
|
|
10
|
-
java.classpath.push(__dirname + "/aspose-barcode-nodejs-22.
|
|
13
|
+
java.classpath.push(__dirname + "/aspose-barcode-nodejs-22.8.jar");
|
|
11
14
|
}
|
|
12
15
|
pushJar();
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
module.exports = { jar_name_, jar_path_,
|
|
19
|
+
complexbarcode_, recognition_, generation_,joint_,
|
|
15
20
|
BarcodeGenerator : generation_.BarcodeGenerator,
|
|
16
21
|
BarcodeParameters: generation_.BarcodeParameters,
|
|
17
22
|
BaseGenerationParameters : generation_.BaseGenerationParameters,
|
package/lib/ComplexBarcode.js
CHANGED
|
@@ -45,7 +45,7 @@ class IComplexCodetext extends joint.BaseJavaClass
|
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.
|
|
48
|
-
*
|
|
48
|
+
* @example
|
|
49
49
|
* This sample shows how to create and save a SwissQR image.
|
|
50
50
|
* let swissQRCodetext = new SwissQRCodetext(null);
|
|
51
51
|
* swissQRCodetext.getBill().setAccount("Account");
|
|
@@ -448,8 +448,6 @@ class AlternativeScheme extends joint.BaseJavaClass {
|
|
|
448
448
|
*
|
|
449
449
|
* The instruction consists of a two letter abbreviation for the scheme, a separator characters
|
|
450
450
|
* and a sequence of parameters(separated by the character at index 2).
|
|
451
|
-
*
|
|
452
|
-
* Value: The payment instruction.
|
|
453
451
|
*/
|
|
454
452
|
getInstruction() {
|
|
455
453
|
return this.getJavaClass().getInstructionSync();
|
|
@@ -459,7 +457,6 @@ class AlternativeScheme extends joint.BaseJavaClass {
|
|
|
459
457
|
* Gets the payment instruction for a given bill.
|
|
460
458
|
* The instruction consists of a two letter abbreviation for the scheme, a separator characters
|
|
461
459
|
* and a sequence of parameters(separated by the character at index 2).
|
|
462
|
-
* Value: The payment instruction.
|
|
463
460
|
*/
|
|
464
461
|
setInstruction(value) {
|
|
465
462
|
this.getJavaClass().setInstructionSync(value);
|
|
@@ -489,7 +486,7 @@ class AlternativeScheme extends joint.BaseJavaClass {
|
|
|
489
486
|
|
|
490
487
|
/**
|
|
491
488
|
* ComplexCodetextReader decodes codetext to specified complex barcode type.
|
|
492
|
-
*
|
|
489
|
+
* @example
|
|
493
490
|
* This sample shows how to recognize and decode SwissQR image.
|
|
494
491
|
*
|
|
495
492
|
* let cr = new BarCodeReader("SwissQRCodetext.png", DecodeType.QR);
|
|
@@ -582,7 +579,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
582
579
|
|
|
583
580
|
/**
|
|
584
581
|
* Gets the version of the SwissQR bill standard.
|
|
585
|
-
*
|
|
582
|
+
* @return The SwissQR bill standard version.
|
|
586
583
|
*/
|
|
587
584
|
getVersion() {
|
|
588
585
|
return this.getJavaClass().getVersionSync();
|
|
@@ -601,7 +598,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
601
598
|
*
|
|
602
599
|
* Valid values are between 0.01 and 999,999,999.99.
|
|
603
600
|
*
|
|
604
|
-
*
|
|
601
|
+
* @return The payment amount.
|
|
605
602
|
*/
|
|
606
603
|
getAmount() {
|
|
607
604
|
return this.getJavaClass().getAmountSync();
|
|
@@ -623,7 +620,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
623
620
|
*
|
|
624
621
|
* Valid values are "CHF" and "EUR".
|
|
625
622
|
*
|
|
626
|
-
*
|
|
623
|
+
* @return The payment currency.
|
|
627
624
|
*/
|
|
628
625
|
getCurrency() {
|
|
629
626
|
return this.getJavaClass().getCurrencySync();
|
|
@@ -646,7 +643,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
646
643
|
* Account numbers must be valid IBANs of a bank of Switzerland or
|
|
647
644
|
* Liechtenstein. Spaces are allowed in the account number.
|
|
648
645
|
*
|
|
649
|
-
*
|
|
646
|
+
* @return The creditor account number.
|
|
650
647
|
*/
|
|
651
648
|
getAccount() {
|
|
652
649
|
return this.getJavaClass().getAccountSync();
|
|
@@ -666,7 +663,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
666
663
|
|
|
667
664
|
/**
|
|
668
665
|
* Gets the creditor address.
|
|
669
|
-
*
|
|
666
|
+
* @return The creditor address.
|
|
670
667
|
*/
|
|
671
668
|
getCreditor() {
|
|
672
669
|
return this.creditor;
|
|
@@ -691,7 +688,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
691
688
|
* (corresponding to ISR reference form) or a valid creditor reference
|
|
692
689
|
* according to ISO 11649 ("RFxxxx"). Both may contain spaces for formatting.
|
|
693
690
|
*
|
|
694
|
-
*
|
|
691
|
+
* @return The creditor payment reference.
|
|
695
692
|
*/
|
|
696
693
|
getReference() {
|
|
697
694
|
return this.getJavaClass().getReferenceSync();
|
|
@@ -707,7 +704,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
707
704
|
* (corresponding to ISR reference form) or a valid creditor reference
|
|
708
705
|
* according to ISO 11649 ("RFxxxx"). Both may contain spaces for formatting.
|
|
709
706
|
*
|
|
710
|
-
*
|
|
707
|
+
* @return The creditor payment reference.
|
|
711
708
|
*/
|
|
712
709
|
setReference(value) {
|
|
713
710
|
this.getJavaClass().setReferenceSync(value);
|
|
@@ -732,7 +729,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
732
729
|
* The debtor is optional. If it is omitted, both setting this field to
|
|
733
730
|
* null or setting an address with all null or empty values is ok.
|
|
734
731
|
*
|
|
735
|
-
*
|
|
732
|
+
* @return The debtor address.
|
|
736
733
|
*/
|
|
737
734
|
getDebtor() {
|
|
738
735
|
return this.debtor;
|
|
@@ -753,7 +750,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
753
750
|
|
|
754
751
|
/**
|
|
755
752
|
* Gets the additional unstructured message.
|
|
756
|
-
*
|
|
753
|
+
* @return The unstructured message.
|
|
757
754
|
*/
|
|
758
755
|
getUnstructuredMessage() {
|
|
759
756
|
return this.getJavaClass().getUnstructuredMessageSync();
|
|
@@ -769,7 +766,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
769
766
|
|
|
770
767
|
/**
|
|
771
768
|
* Gets the additional structured bill information.
|
|
772
|
-
*
|
|
769
|
+
* @return The structured bill information.
|
|
773
770
|
*/
|
|
774
771
|
getBillInformation() {
|
|
775
772
|
return this.getJavaClass().getBillInformationSync();
|
|
@@ -788,7 +785,7 @@ class SwissQRBill extends joint.BaseJavaClass {
|
|
|
788
785
|
*
|
|
789
786
|
* A maximum of two schemes with parameters are allowed.
|
|
790
787
|
*
|
|
791
|
-
*
|
|
788
|
+
* @return The alternative payment schemes.
|
|
792
789
|
*/
|
|
793
790
|
getAlternativeSchemes() {
|
|
794
791
|
return SwissQRBill.convertAlternativeSchemes(this.getJavaClass().getAlternativeSchemesSync());
|
package/lib/Generation.js
CHANGED
|
@@ -47,7 +47,7 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
47
47
|
|
|
48
48
|
static construct(javaClass)
|
|
49
49
|
{
|
|
50
|
-
let barcodeGenerator = new BarcodeGenerator(
|
|
50
|
+
let barcodeGenerator = new BarcodeGenerator(null, null);
|
|
51
51
|
barcodeGenerator.setJavaClass(javaClass);
|
|
52
52
|
return barcodeGenerator;
|
|
53
53
|
}
|
|
@@ -152,8 +152,7 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
152
152
|
fs.writeFileSync(filePath, xmlData);
|
|
153
153
|
}
|
|
154
154
|
return isSaved;
|
|
155
|
-
}
|
|
156
|
-
catch (ex)
|
|
155
|
+
} catch (ex)
|
|
157
156
|
{
|
|
158
157
|
throw new BarcodeException(ex.getMessage());
|
|
159
158
|
}
|
|
@@ -174,8 +173,7 @@ class BarcodeGenerator extends joint.BaseJavaClass
|
|
|
174
173
|
let offset = 6;
|
|
175
174
|
xmlData = xmlData.substr(offset);
|
|
176
175
|
return BarcodeGenerator.construct(java(BarcodeGenerator.javaClassName).importFromXmlSync(xmlData));
|
|
177
|
-
}
|
|
178
|
-
catch (ex)
|
|
176
|
+
} catch (ex)
|
|
179
177
|
{
|
|
180
178
|
throw new BarcodeException(ex.getMessage());
|
|
181
179
|
}
|
|
@@ -196,6 +194,7 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
196
194
|
australianPost;
|
|
197
195
|
codablock;
|
|
198
196
|
dataBar;
|
|
197
|
+
gs1CompositeBar;
|
|
199
198
|
dataMatrix;
|
|
200
199
|
code16K;
|
|
201
200
|
itf;
|
|
@@ -229,6 +228,7 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
229
228
|
this.australianPost = new AustralianPostParameters(this.getJavaClass().getAustralianPostSync());
|
|
230
229
|
this.codablock = new CodablockParameters(this.getJavaClass().getCodablockSync());
|
|
231
230
|
this.dataBar = new DataBarParameters(this.getJavaClass().getDataBarSync());
|
|
231
|
+
this.gs1CompositeBar = new GS1CompositeBarParameters(this.getJavaClass().getGS1CompositeBarSync());
|
|
232
232
|
this.dataMatrix = new DataMatrixParameters(this.getJavaClass().getDataMatrixSync());
|
|
233
233
|
this.code16K = new Code16KParameters(this.getJavaClass().getCode16KSync());
|
|
234
234
|
this.itf = new ITFParameters(this.getJavaClass().getITFSync());
|
|
@@ -374,7 +374,7 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
374
374
|
/**
|
|
375
375
|
* Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only
|
|
376
376
|
* If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
|
|
377
|
-
*Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \\CR stands for CR.
|
|
377
|
+
* Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \\CR stands for CR.
|
|
378
378
|
*/
|
|
379
379
|
getEnableEscape()
|
|
380
380
|
{
|
|
@@ -496,6 +496,65 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
496
496
|
return this.dataBar;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
+
/**
|
|
500
|
+
* GS1 Composite Bar parameters.
|
|
501
|
+
*
|
|
502
|
+
* This sample shows how to create and save a GS1 Composite Bar image.
|
|
503
|
+
* Note that 1D codetext and 2D codetext are separated by symbol '/'
|
|
504
|
+
*
|
|
505
|
+
* let codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
|
|
506
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_COMPOSITE_BAR, codetext);
|
|
507
|
+
*
|
|
508
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setLinearComponentType(EncodeTypes.GS_1_CODE_128);
|
|
509
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setTwoDComponentType(TwoDComponentType.CC_A);
|
|
510
|
+
*
|
|
511
|
+
* // Aspect ratio of 2D component
|
|
512
|
+
* generator.getParameters().getBarcode().getPdf417().setAspectRatio(3);
|
|
513
|
+
*
|
|
514
|
+
* // X-Dimension of 1D and 2D components
|
|
515
|
+
* generator.getParameters().getBarcode().getXDimension().setPixels(3);
|
|
516
|
+
* ///
|
|
517
|
+
* // Height of 1D component
|
|
518
|
+
* generator.getParameters().getBarcode().getBarHeight().setPixels(100);
|
|
519
|
+
* ///
|
|
520
|
+
* generator.save("test.png", BarcodeImageFormat.PNG);
|
|
521
|
+
*
|
|
522
|
+
* @return GS1CompositeBarParameters GS1 Composite Bar parameters.
|
|
523
|
+
*/
|
|
524
|
+
getGS1CompositeBar()
|
|
525
|
+
{
|
|
526
|
+
return this.gs1CompositeBar;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* GS1 Composite Bar parameters.
|
|
531
|
+
*
|
|
532
|
+
* This sample shows how to create and save a GS1 Composite Bar image.
|
|
533
|
+
* Note that 1D codetext and 2D codetext are separated by symbol '/'
|
|
534
|
+
*
|
|
535
|
+
* let codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
|
|
536
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_COMPOSITE_BAR, codetext);
|
|
537
|
+
*
|
|
538
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setLinearComponentType(EncodeTypes.GS_1_CODE_128);
|
|
539
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setTwoDComponentType(TwoDComponentType.CC_A);
|
|
540
|
+
*
|
|
541
|
+
* // Aspect ratio of 2D component
|
|
542
|
+
* generator.getParameters().getBarcode().getPdf417().setAspectRatio(3);
|
|
543
|
+
*
|
|
544
|
+
* // X-Dimension of 1D and 2D components
|
|
545
|
+
* generator.getParameters().getBarcode().getXDimension().setPixels(3);
|
|
546
|
+
* ///
|
|
547
|
+
* // Height of 1D component
|
|
548
|
+
* generator.getParameters().getBarcode().getBarHeight().setPixels(100);
|
|
549
|
+
* ///
|
|
550
|
+
* generator.save("test.png", BarcodeImageFormat.PNG);
|
|
551
|
+
*/
|
|
552
|
+
setGS1CompositeBar(value)
|
|
553
|
+
{
|
|
554
|
+
this.gs1CompositeBar = value;
|
|
555
|
+
this.getJavaClass().setGS1CompositeBarSync(value.getJavaClass());
|
|
556
|
+
}
|
|
557
|
+
|
|
499
558
|
/**
|
|
500
559
|
* Codablock parameters.
|
|
501
560
|
*/
|
|
@@ -2192,6 +2251,60 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2192
2251
|
}
|
|
2193
2252
|
}
|
|
2194
2253
|
|
|
2254
|
+
class GS1CompositeBarParameters extends joint.BaseJavaClass
|
|
2255
|
+
{
|
|
2256
|
+
constructor(javaClass)
|
|
2257
|
+
{
|
|
2258
|
+
super(javaClass);
|
|
2259
|
+
this.init();
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
init()
|
|
2263
|
+
{
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* Linear component type
|
|
2268
|
+
*/
|
|
2269
|
+
getLinearComponentType()
|
|
2270
|
+
{
|
|
2271
|
+
return this.getJavaClass().getLinearComponentTypeSync();
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* Linear component type
|
|
2276
|
+
*/
|
|
2277
|
+
setLinearComponentType(value)
|
|
2278
|
+
{
|
|
2279
|
+
this.getJavaClass().setLinearComponentTypeSync(value);
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* 2D component type
|
|
2284
|
+
*/
|
|
2285
|
+
getTwoDComponentType()
|
|
2286
|
+
{
|
|
2287
|
+
return this.getJavaClass().getTwoDComponentTypeSync();
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* 2D component type
|
|
2292
|
+
*/
|
|
2293
|
+
setTwoDComponentType(value)
|
|
2294
|
+
{
|
|
2295
|
+
this.getJavaClass().setTwoDComponentTypeSync(value);
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* Returns a human-readable string representation of this <see cref="DataBarParameters"/>.
|
|
2300
|
+
* @return A string that represents this <see cref="DataBarParameters"/>
|
|
2301
|
+
*/
|
|
2302
|
+
toString()
|
|
2303
|
+
{
|
|
2304
|
+
return this.getJavaClass().toStringSync();
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2195
2308
|
/**
|
|
2196
2309
|
* ITF parameters.
|
|
2197
2310
|
*/
|
|
@@ -3169,7 +3282,8 @@ class CouponParameters extends joint.BaseJavaClass
|
|
|
3169
3282
|
* Defines a particular format for text, including font face, size, and style attributes<br>
|
|
3170
3283
|
* where size in Unit value property.<br>
|
|
3171
3284
|
* @example
|
|
3172
|
-
*
|
|
3285
|
+
* This sample shows how to create and save a BarCode image.
|
|
3286
|
+
*
|
|
3173
3287
|
* let generator = new BarcodeGenerator(EncodeTypes.CODE_128);
|
|
3174
3288
|
* generator.getParameters().getCaptionAbove().setText("CAPTION ABOOVE");
|
|
3175
3289
|
* generator.getParameters().getCaptionAbove().setVisible(true);
|
|
@@ -3248,9 +3362,7 @@ class FontUnit extends joint.BaseJavaClass
|
|
|
3248
3362
|
}
|
|
3249
3363
|
|
|
3250
3364
|
/**
|
|
3251
|
-
* <p>
|
|
3252
3365
|
* Helper class for automatic codetext generation of the Extended Codetext Mode
|
|
3253
|
-
* </p>
|
|
3254
3366
|
*/
|
|
3255
3367
|
class ExtCodetextBuilder extends joint.BaseJavaClass
|
|
3256
3368
|
{
|
|
@@ -4709,11 +4821,19 @@ EncodeTypes =
|
|
|
4709
4821
|
/**
|
|
4710
4822
|
* Specifies that the data should be encoded with GS1 Codablock-F barcode specification. The codetext must contains parentheses for AI.
|
|
4711
4823
|
*/
|
|
4712
|
-
GS_1_CODABLOCK_F: 65
|
|
4824
|
+
GS_1_CODABLOCK_F: 65,
|
|
4825
|
+
|
|
4826
|
+
/**
|
|
4827
|
+
* Specifies that the data should be encoded with <b>GS1 Composite Bar</b> barcode specification. The codetext must contains parentheses for AI. 1D codetext and 2D codetext must be separated with symbol '/'
|
|
4828
|
+
*/
|
|
4829
|
+
GS_1_COMPOSITE_BAR: 71
|
|
4713
4830
|
};
|
|
4714
4831
|
|
|
4715
|
-
|
|
4716
|
-
|
|
4832
|
+
/**
|
|
4833
|
+
* Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
|
|
4834
|
+
* 05 Macro craracter is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
4835
|
+
* 06 Macro craracter is translated to "[)>\u001E06\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
4836
|
+
* @enum
|
|
4717
4837
|
*/
|
|
4718
4838
|
MacroCharacter =
|
|
4719
4839
|
{
|
|
@@ -4971,52 +5091,79 @@ Code128Emulation =
|
|
|
4971
5091
|
|
|
4972
5092
|
/**
|
|
4973
5093
|
* Specifies the file format of the image.
|
|
4974
|
-
*
|
|
5094
|
+
* @enum
|
|
4975
5095
|
*/
|
|
4976
5096
|
BarCodeImageFormat =
|
|
4977
5097
|
{
|
|
4978
5098
|
/**
|
|
4979
5099
|
* Specifies the bitmap (BMP) image format.
|
|
4980
5100
|
*/
|
|
4981
|
-
BMP:0,
|
|
5101
|
+
BMP: 0,
|
|
4982
5102
|
|
|
4983
5103
|
/**
|
|
4984
5104
|
* Specifies the Graphics Interchange Format (GIF) image format.
|
|
4985
5105
|
*/
|
|
4986
|
-
GIF:1,
|
|
5106
|
+
GIF: 1,
|
|
4987
5107
|
|
|
4988
5108
|
/**
|
|
4989
5109
|
* Specifies the Joint Photographic Experts Group (JPEG) image format.
|
|
4990
5110
|
*/
|
|
4991
|
-
JPEG:2,
|
|
5111
|
+
JPEG: 2,
|
|
4992
5112
|
|
|
4993
5113
|
/**
|
|
4994
5114
|
* Specifies the W3C Portable Network Graphics (PNG) image format.
|
|
4995
5115
|
*/
|
|
4996
|
-
PNG:3,
|
|
5116
|
+
PNG: 3,
|
|
4997
5117
|
|
|
4998
5118
|
/**
|
|
4999
5119
|
* Specifies the Tagged Image File Format (TIFF) image format.
|
|
5000
5120
|
*/
|
|
5001
|
-
TIFF:4,
|
|
5121
|
+
TIFF: 4,
|
|
5002
5122
|
|
|
5003
5123
|
|
|
5004
5124
|
/**
|
|
5005
5125
|
* Specifies the Tagged Image File Format (TIFF) image format in CMYK color model.
|
|
5006
5126
|
*/
|
|
5007
|
-
TIFF_IN_CMYK:5,
|
|
5127
|
+
TIFF_IN_CMYK: 5,
|
|
5008
5128
|
|
|
5009
5129
|
/**
|
|
5010
5130
|
* Specifies the Enhanced Metafile (EMF) image format.
|
|
5011
5131
|
*/
|
|
5012
|
-
EMF:6,
|
|
5132
|
+
EMF: 6,
|
|
5013
5133
|
|
|
5014
5134
|
/**
|
|
5015
5135
|
* Specifies the Scalable Vector Graphics (SVG) image format.
|
|
5016
5136
|
*/
|
|
5017
|
-
SVG:7
|
|
5137
|
+
SVG: 7
|
|
5018
5138
|
};
|
|
5019
5139
|
|
|
5140
|
+
/*
|
|
5141
|
+
Specifies the type of 2D component
|
|
5142
|
+
@enum
|
|
5143
|
+
*/
|
|
5144
|
+
TwoDComponentType =
|
|
5145
|
+
{
|
|
5146
|
+
/**
|
|
5147
|
+
* Auto select type of 2D component
|
|
5148
|
+
*/
|
|
5149
|
+
AUTO: 0,
|
|
5150
|
+
|
|
5151
|
+
/**
|
|
5152
|
+
* CC-A type of 2D component. It is a structural variant of MicroPDF417
|
|
5153
|
+
*/
|
|
5154
|
+
CC_A: 1,
|
|
5155
|
+
|
|
5156
|
+
/**
|
|
5157
|
+
* CC-B type of 2D component. It is a MicroPDF417 symbol.
|
|
5158
|
+
*/
|
|
5159
|
+
CC_B: 2,
|
|
5160
|
+
|
|
5161
|
+
/**
|
|
5162
|
+
* CC-C type of 2D component. It is a PDF417 symbol.
|
|
5163
|
+
*/
|
|
5164
|
+
CC_C: 3
|
|
5165
|
+
}
|
|
5166
|
+
|
|
5020
5167
|
module.exports = {
|
|
5021
5168
|
BarcodeGenerator,
|
|
5022
5169
|
EncodeTypes,
|
|
@@ -5073,5 +5220,6 @@ module.exports = {
|
|
|
5073
5220
|
GraphicsUnit,
|
|
5074
5221
|
MacroCharacter,
|
|
5075
5222
|
EnableChecksum,
|
|
5076
|
-
|
|
5223
|
+
TwoDComponentType,
|
|
5224
|
+
GS1CompositeBarParameters
|
|
5077
5225
|
};
|
package/lib/Joint.js
CHANGED
|
@@ -58,9 +58,6 @@ class BaseJavaClass
|
|
|
58
58
|
return this.javaClass;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
/**
|
|
62
|
-
* @return mixed
|
|
63
|
-
*/
|
|
64
61
|
setJavaClass(javaClass)
|
|
65
62
|
{
|
|
66
63
|
this.javaClass = javaClass;
|
|
@@ -105,13 +102,13 @@ class License extends BaseJavaClass
|
|
|
105
102
|
/**
|
|
106
103
|
* Licenses the component.
|
|
107
104
|
*
|
|
108
|
-
* @param
|
|
105
|
+
* @param licensePath path to license file
|
|
109
106
|
*/
|
|
110
|
-
setLicense(
|
|
107
|
+
setLicense(licensePath)
|
|
111
108
|
{
|
|
112
109
|
try
|
|
113
110
|
{
|
|
114
|
-
let file_data = License.openFile(
|
|
111
|
+
let file_data = License.openFile(licensePath);
|
|
115
112
|
this.getJavaClass().setLicenseSync(file_data);
|
|
116
113
|
} catch (ex)
|
|
117
114
|
{
|
|
@@ -216,7 +213,6 @@ class Rectangle extends BaseJavaClass
|
|
|
216
213
|
|
|
217
214
|
init()
|
|
218
215
|
{
|
|
219
|
-
// TODO: Implement init() method.
|
|
220
216
|
}
|
|
221
217
|
|
|
222
218
|
static get javaClassName()
|
|
@@ -309,7 +305,7 @@ class Rectangle extends BaseJavaClass
|
|
|
309
305
|
/**
|
|
310
306
|
* Intersect Shared Method
|
|
311
307
|
* Produces a new Rectangle by intersecting 2 existing
|
|
312
|
-
* Rectangles. Returns null if there is no
|
|
308
|
+
* Rectangles. Returns null if there is no intersection.
|
|
313
309
|
*/
|
|
314
310
|
static intersect(a, b)
|
|
315
311
|
{
|
|
@@ -375,7 +371,6 @@ class Point extends BaseJavaClass
|
|
|
375
371
|
|
|
376
372
|
init()
|
|
377
373
|
{
|
|
378
|
-
// TODO: Implement init() method.
|
|
379
374
|
}
|
|
380
375
|
|
|
381
376
|
getX()
|
package/lib/Recognition.js
CHANGED
|
@@ -32,7 +32,7 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
32
32
|
*/
|
|
33
33
|
constructor(image, rectangles, decodeTypes)
|
|
34
34
|
{
|
|
35
|
-
if(image != null)
|
|
35
|
+
if (image != null)
|
|
36
36
|
{
|
|
37
37
|
if (joint.isPath(image))
|
|
38
38
|
{
|
|
@@ -68,10 +68,14 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
68
68
|
{
|
|
69
69
|
let java_class_link = new java.import(BarCodeReader.javaClassName);
|
|
70
70
|
let java_class = null;
|
|
71
|
-
if(image == null && rectangles == null && image == null)
|
|
71
|
+
if (image == null && rectangles == null && image == null)
|
|
72
|
+
{
|
|
72
73
|
java_class = new java_class_link();
|
|
74
|
+
}
|
|
73
75
|
else
|
|
76
|
+
{
|
|
74
77
|
java_class = new java_class_link(image, rectangles, decodeTypes);
|
|
78
|
+
}
|
|
75
79
|
super(java_class);
|
|
76
80
|
this.init()
|
|
77
81
|
} catch (e)
|
|
@@ -176,8 +180,7 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
176
180
|
* Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, <br>
|
|
177
181
|
* Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN<br>
|
|
178
182
|
* Checksum always used: Rest symbologies<br>
|
|
179
|
-
*
|
|
180
|
-
* @example
|
|
183
|
+
* <pre><code>
|
|
181
184
|
* //This sample shows influence of ChecksumValidation on recognition quality and results
|
|
182
185
|
*
|
|
183
186
|
* let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
|
|
@@ -200,6 +203,7 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
200
203
|
* console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
|
|
201
204
|
* console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
|
|
202
205
|
* });
|
|
206
|
+
* </code></pre>
|
|
203
207
|
*
|
|
204
208
|
* The checksum validation flag.
|
|
205
209
|
*/
|
|
@@ -379,10 +383,9 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
379
383
|
this.recognizedResults[i] = new BarCodeResult(javaReadBarcodes[i]);
|
|
380
384
|
}
|
|
381
385
|
return this.recognizedResults;
|
|
382
|
-
}
|
|
383
|
-
catch (e)
|
|
386
|
+
} catch (e)
|
|
384
387
|
{
|
|
385
|
-
if((e.toString().includes("RecognitionAbortedException")))
|
|
388
|
+
if ((e.toString().includes("RecognitionAbortedException")))
|
|
386
389
|
{
|
|
387
390
|
throw new RecognitionAbortedException(e.toString(), null);
|
|
388
391
|
}
|
|
@@ -626,11 +629,12 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
626
629
|
{
|
|
627
630
|
let xmlData = this.getJavaClass().exportToXmlSync();
|
|
628
631
|
let isSaved = xmlData != null;
|
|
629
|
-
if(isSaved)
|
|
632
|
+
if (isSaved)
|
|
633
|
+
{
|
|
630
634
|
fs.writeFileSync(xmlFile, xmlData);
|
|
635
|
+
}
|
|
631
636
|
return isSaved;
|
|
632
|
-
}
|
|
633
|
-
catch (ex)
|
|
637
|
+
} catch (ex)
|
|
634
638
|
{
|
|
635
639
|
let barcode_exception = new joint.BarcodeException(ex);
|
|
636
640
|
throw barcode_exception;
|
|
@@ -649,8 +653,7 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
649
653
|
let xmlData = fs.readFileSync(xmlFile).toString();
|
|
650
654
|
let java_class_link = new java.import(BarCodeReader.javaClassName);
|
|
651
655
|
return BarCodeReader.construct(java_class_link.importFromXmlSync(xmlData.substring(3, xmlData.length)));
|
|
652
|
-
}
|
|
653
|
-
catch (ex)
|
|
656
|
+
} catch (ex)
|
|
654
657
|
{
|
|
655
658
|
let barcode_exception = new joint.BarcodeException(ex);
|
|
656
659
|
throw barcode_exception;
|
|
@@ -1097,7 +1100,6 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
|
|
|
1097
1100
|
|
|
1098
1101
|
/**
|
|
1099
1102
|
* Returns the hash code for this instance.
|
|
1100
|
-
*
|
|
1101
1103
|
* @return A 32-bit signed integer hash code.
|
|
1102
1104
|
*/
|
|
1103
1105
|
hashCode()
|
|
@@ -1141,7 +1143,6 @@ class OneDExtendedParameters extends joint.BaseJavaClass
|
|
|
1141
1143
|
|
|
1142
1144
|
init()
|
|
1143
1145
|
{
|
|
1144
|
-
// TODO: Implement init() method.
|
|
1145
1146
|
}
|
|
1146
1147
|
|
|
1147
1148
|
/**
|
|
@@ -1303,15 +1304,15 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
|
|
|
1303
1304
|
let javaClass = new java_class_link(BarcodeSvmDetectorSettings.NormalQuality);
|
|
1304
1305
|
switch (aType)
|
|
1305
1306
|
{
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1307
|
+
case BarcodeSvmDetectorSettings.HighPerformance:
|
|
1308
|
+
javaClass = new java_class_link(BarcodeSvmDetectorSettings.HighPerformance);
|
|
1309
|
+
break;
|
|
1310
|
+
case BarcodeSvmDetectorSettings.HighQuality:
|
|
1311
|
+
javaClass = new java_class_link(BarcodeSvmDetectorSettings.HighQuality);
|
|
1312
|
+
break;
|
|
1313
|
+
case BarcodeSvmDetectorSettings.MaxQuality:
|
|
1314
|
+
javaClass = new java_class_link(BarcodeSvmDetectorSettings.MaxQuality);
|
|
1315
|
+
break;
|
|
1315
1316
|
}
|
|
1316
1317
|
super(javaClass);
|
|
1317
1318
|
}
|
|
@@ -1405,7 +1406,7 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
|
|
|
1405
1406
|
this.scanWindowSizes = value;
|
|
1406
1407
|
var ArrayList = java.import('java.util.ArrayList');
|
|
1407
1408
|
var valueList = new ArrayList();
|
|
1408
|
-
value.forEach(function(item, i, value)
|
|
1409
|
+
value.forEach(function (item, i, value)
|
|
1409
1410
|
{
|
|
1410
1411
|
valueList.addSync(item);
|
|
1411
1412
|
});
|
|
@@ -1997,9 +1998,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
1997
1998
|
* @example
|
|
1998
1999
|
* let reader = new BarCodeReader("test.png");
|
|
1999
2000
|
* reader.setQualitySettings(QualitySettings.getHighPerformance());
|
|
2000
|
-
|
|
2001
|
-
* Value:
|
|
2002
|
-
* HighPerformance recognition quality preset.
|
|
2001
|
+
|
|
2003
2002
|
*/
|
|
2004
2003
|
static getHighPerformance()
|
|
2005
2004
|
{
|
|
@@ -2013,9 +2012,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2013
2012
|
* @example
|
|
2014
2013
|
* let reader = new BarCodeReader("test.png");
|
|
2015
2014
|
* reader.setQualitySettings(QualitySettings.getNormalQuality());
|
|
2016
|
-
|
|
2017
|
-
* Value:
|
|
2018
|
-
* NormalQuality recognition quality preset.
|
|
2015
|
+
|
|
2019
2016
|
*/
|
|
2020
2017
|
static getNormalQuality()
|
|
2021
2018
|
{
|
|
@@ -2029,9 +2026,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2029
2026
|
* @example
|
|
2030
2027
|
* let reader = new BarCodeReader("test.png");
|
|
2031
2028
|
* reader.setQualitySettings(QualitySettings.getHighQualityDetection()); *
|
|
2032
|
-
*
|
|
2033
|
-
* Value:
|
|
2034
|
-
* HighQualityDetection recognition quality preset.
|
|
2035
2029
|
*/
|
|
2036
2030
|
static getHighQualityDetection()
|
|
2037
2031
|
{
|
|
@@ -2046,9 +2040,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2046
2040
|
* @example
|
|
2047
2041
|
*let reader = new BarCodeReader("test.png");
|
|
2048
2042
|
* reader.setQualitySettings(QualitySettings.getMaxQualityDetection());
|
|
2049
|
-
*
|
|
2050
|
-
* Value:
|
|
2051
|
-
* MaxQualityDetection recognition quality preset.
|
|
2052
2043
|
*/
|
|
2053
2044
|
static getMaxQualityDetection()
|
|
2054
2045
|
{
|
|
@@ -2062,9 +2053,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2062
2053
|
* @example
|
|
2063
2054
|
*let reader = new BarCodeReader("test.png");
|
|
2064
2055
|
* reader.setQualitySettings(QualitySettings.getHighQuality());
|
|
2065
|
-
*
|
|
2066
|
-
* Value:
|
|
2067
|
-
* HighQuality recognition quality preset.
|
|
2068
2056
|
*/
|
|
2069
2057
|
static getHighQuality()
|
|
2070
2058
|
{
|
|
@@ -2078,9 +2066,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2078
2066
|
* @example
|
|
2079
2067
|
* let reader = new BarCodeReader("test.png");
|
|
2080
2068
|
* reader.setQualitySettings(QualitySettings.getMaxBarCodes());
|
|
2081
|
-
*
|
|
2082
|
-
* Value:
|
|
2083
|
-
* MaxBarCodes recognition quality preset.
|
|
2084
2069
|
*/
|
|
2085
2070
|
static getMaxBarCodes()
|
|
2086
2071
|
{
|
|
@@ -2091,8 +2076,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2091
2076
|
|
|
2092
2077
|
/**
|
|
2093
2078
|
* Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
|
|
2094
|
-
* Value:
|
|
2095
|
-
* Allows engine to recognize inverse color image.
|
|
2096
2079
|
*/
|
|
2097
2080
|
getAllowInvertImage()
|
|
2098
2081
|
{
|
|
@@ -2101,8 +2084,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2101
2084
|
|
|
2102
2085
|
/**
|
|
2103
2086
|
* Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
|
|
2104
|
-
* Value:
|
|
2105
|
-
* Allows engine to recognize inverse color image.
|
|
2106
2087
|
*/
|
|
2107
2088
|
setAllowInvertImage(value)
|
|
2108
2089
|
{
|
|
@@ -2112,8 +2093,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2112
2093
|
/**
|
|
2113
2094
|
* Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.
|
|
2114
2095
|
* Mode can be used to recognize damaged barcodes with incorrect text.
|
|
2115
|
-
* Value:
|
|
2116
|
-
* Allows engine to recognize incorrect barcodes.
|
|
2117
2096
|
*/
|
|
2118
2097
|
getAllowIncorrectBarcodes()
|
|
2119
2098
|
{
|
|
@@ -2123,8 +2102,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2123
2102
|
/**
|
|
2124
2103
|
* Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.
|
|
2125
2104
|
* Mode can be used to recognize damaged barcodes with incorrect text.
|
|
2126
|
-
* Value:
|
|
2127
|
-
* Allows engine to recognize incorrect barcodes.
|
|
2128
2105
|
*/
|
|
2129
2106
|
setAllowIncorrectBarcodes(value)
|
|
2130
2107
|
{
|
|
@@ -2169,8 +2146,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2169
2146
|
|
|
2170
2147
|
/**
|
|
2171
2148
|
* Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
|
|
2172
|
-
* Value:
|
|
2173
|
-
* Allows engine to recognize color barcodes on color background.
|
|
2174
2149
|
*/
|
|
2175
2150
|
getAllowComplexBackground()
|
|
2176
2151
|
{
|
|
@@ -2179,8 +2154,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2179
2154
|
|
|
2180
2155
|
/**
|
|
2181
2156
|
* Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
|
|
2182
|
-
* Value:v
|
|
2183
|
-
* Allows engine to recognize color barcodes on color background.
|
|
2184
2157
|
*/
|
|
2185
2158
|
setAllowComplexBackground(value)
|
|
2186
2159
|
{
|
|
@@ -2189,8 +2162,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2189
2162
|
|
|
2190
2163
|
/**
|
|
2191
2164
|
* Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
|
|
2192
|
-
* Value:
|
|
2193
|
-
* Allows engine to enable median smoothing.
|
|
2194
2165
|
*/
|
|
2195
2166
|
getAllowMedianSmoothing()
|
|
2196
2167
|
{
|
|
@@ -2199,8 +2170,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2199
2170
|
|
|
2200
2171
|
/**
|
|
2201
2172
|
* Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
|
|
2202
|
-
* Value:
|
|
2203
|
-
* Allows engine to enable median smoothing.
|
|
2204
2173
|
*/
|
|
2205
2174
|
setAllowMedianSmoothing(value)
|
|
2206
2175
|
{
|
|
@@ -2209,8 +2178,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2209
2178
|
|
|
2210
2179
|
/**
|
|
2211
2180
|
* Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set.
|
|
2212
|
-
* Value:
|
|
2213
|
-
* Window size for median smoothing.
|
|
2214
2181
|
*/
|
|
2215
2182
|
getMedianSmoothingWindowSize()
|
|
2216
2183
|
{
|
|
@@ -2219,8 +2186,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2219
2186
|
|
|
2220
2187
|
/**
|
|
2221
2188
|
* Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set.
|
|
2222
|
-
* Value:
|
|
2223
|
-
* Window size for median smoothing.
|
|
2224
2189
|
*/
|
|
2225
2190
|
setMedianSmoothingWindowSize(value)
|
|
2226
2191
|
{
|
|
@@ -2229,8 +2194,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2229
2194
|
|
|
2230
2195
|
/**
|
|
2231
2196
|
* Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is.
|
|
2232
|
-
* Value:
|
|
2233
|
-
* Allows to recognize regular image without any restorations.
|
|
2234
2197
|
*/
|
|
2235
2198
|
|
|
2236
2199
|
getAllowRegularImage()
|
|
@@ -2240,8 +2203,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2240
2203
|
|
|
2241
2204
|
/**
|
|
2242
2205
|
* Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is.
|
|
2243
|
-
* Value:
|
|
2244
|
-
* Allows to recognize regular image without any restorations.
|
|
2245
2206
|
*/
|
|
2246
2207
|
|
|
2247
2208
|
setAllowRegularImage(value)
|
|
@@ -2252,8 +2213,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2252
2213
|
/**
|
|
2253
2214
|
* Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.
|
|
2254
2215
|
* Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
|
|
2255
|
-
* Value:
|
|
2256
|
-
* Allows engine to recognize decreased image
|
|
2257
2216
|
*/
|
|
2258
2217
|
getAllowDecreasedImage()
|
|
2259
2218
|
{
|
|
@@ -2263,8 +2222,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2263
2222
|
/**
|
|
2264
2223
|
* Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.
|
|
2265
2224
|
* Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
|
|
2266
|
-
* Value:
|
|
2267
|
-
* Allows engine to recognize decreased image
|
|
2268
2225
|
*/
|
|
2269
2226
|
setAllowDecreasedImage(value)
|
|
2270
2227
|
{
|
|
@@ -2273,8 +2230,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2273
2230
|
|
|
2274
2231
|
/**
|
|
2275
2232
|
* Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering.
|
|
2276
|
-
* Value:
|
|
2277
|
-
* Allows engine to recognize image without small white spots.
|
|
2278
2233
|
*/
|
|
2279
2234
|
|
|
2280
2235
|
getAllowWhiteSpotsRemoving()
|
|
@@ -2284,8 +2239,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2284
2239
|
|
|
2285
2240
|
/**
|
|
2286
2241
|
* Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering.
|
|
2287
|
-
* Value:
|
|
2288
|
-
* Allows engine to recognize image without small white spots.
|
|
2289
2242
|
*/
|
|
2290
2243
|
setAllowWhiteSpotsRemoving(value)
|
|
2291
2244
|
{
|
|
@@ -2294,8 +2247,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2294
2247
|
|
|
2295
2248
|
/**
|
|
2296
2249
|
* Allows engine for 1D barcodes to recognize regular image with different params as additional scan. Mode helps to recongize low height 1D barcodes.
|
|
2297
|
-
* Value:
|
|
2298
|
-
* Allows engine for 1D barcodes to run additional scan.
|
|
2299
2250
|
*/
|
|
2300
2251
|
getAllowOneDAdditionalScan()
|
|
2301
2252
|
{
|
|
@@ -2304,8 +2255,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2304
2255
|
|
|
2305
2256
|
/**
|
|
2306
2257
|
* Allows engine for 1D barcodes to recognize regular image with different params as additional scan. Mode helps to recongize low height 1D barcodes.
|
|
2307
|
-
* Value:
|
|
2308
|
-
* Allows engine for 1D barcodes to run additional scan.
|
|
2309
2258
|
*/
|
|
2310
2259
|
setAllowOneDAdditionalScan(value)
|
|
2311
2260
|
{
|
|
@@ -2315,8 +2264,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2315
2264
|
/**
|
|
2316
2265
|
* Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
|
|
2317
2266
|
* Mode helps to quickly recognize generated barcodes from Internet.
|
|
2318
|
-
* Value:
|
|
2319
|
-
* Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
2320
2267
|
*/
|
|
2321
2268
|
getAllowOneDFastBarcodesDetector()
|
|
2322
2269
|
{
|
|
@@ -2326,8 +2273,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2326
2273
|
/**
|
|
2327
2274
|
* Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
|
|
2328
2275
|
* Mode helps to quickly recognize generated barcodes from Internet.
|
|
2329
|
-
* Value:
|
|
2330
|
-
* Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
2331
2276
|
*/
|
|
2332
2277
|
setAllowOneDFastBarcodesDetector(value)
|
|
2333
2278
|
{
|
|
@@ -2335,9 +2280,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2335
2280
|
}
|
|
2336
2281
|
|
|
2337
2282
|
/**
|
|
2338
|
-
* <p>
|
|
2339
|
-
* Switches to the old barcode detector.
|
|
2340
|
-
* </p>Value:
|
|
2341
2283
|
* Switches to the old barcode detector.
|
|
2342
2284
|
*/
|
|
2343
2285
|
getUseOldBarcodeDetector()
|
|
@@ -2345,27 +2287,21 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2345
2287
|
try
|
|
2346
2288
|
{
|
|
2347
2289
|
this.getJavaClass().getUseOldBarcodeDetectorSync();
|
|
2348
|
-
}
|
|
2349
|
-
catch (ex)
|
|
2290
|
+
} catch (ex)
|
|
2350
2291
|
{
|
|
2351
2292
|
throw new BarcodeException(ex.getMessage());
|
|
2352
2293
|
}
|
|
2353
2294
|
}
|
|
2354
2295
|
|
|
2355
2296
|
/**
|
|
2356
|
-
* <p>
|
|
2357
|
-
* Switches to the old barcode detector.
|
|
2358
|
-
* </p>Value:
|
|
2359
2297
|
* Switches to the old barcode detector.
|
|
2360
2298
|
*/
|
|
2361
|
-
//@XmlSerialization (type = XmlSerializationType.Element)
|
|
2362
2299
|
setUseOldBarcodeDetector(value)
|
|
2363
2300
|
{
|
|
2364
2301
|
try
|
|
2365
2302
|
{
|
|
2366
2303
|
this.getJavaClass().setUseOldBarcodeDetectorSync(value);
|
|
2367
|
-
}
|
|
2368
|
-
catch (ex)
|
|
2304
|
+
} catch (ex)
|
|
2369
2305
|
{
|
|
2370
2306
|
throw new BarcodeException(ex.getMessage());
|
|
2371
2307
|
}
|
|
@@ -2373,9 +2309,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2373
2309
|
|
|
2374
2310
|
/**
|
|
2375
2311
|
* Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize sligtly damaged Postal barcodes.
|
|
2376
|
-
|
|
2377
|
-
* Allows engine for Postal barcodes to recognize slightly noised images.
|
|
2378
|
-
*/
|
|
2312
|
+
*/
|
|
2379
2313
|
getAllowMicroWhiteSpotsRemoving()
|
|
2380
2314
|
{
|
|
2381
2315
|
return this.getJavaClass().getAllowMicroWhiteSpotsRemovingSync();
|
|
@@ -2383,8 +2317,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2383
2317
|
|
|
2384
2318
|
/**
|
|
2385
2319
|
* Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize sligtly damaged Postal barcodes.
|
|
2386
|
-
* Value:
|
|
2387
|
-
* Allows engine for Postal barcodes to recognize slightly noised images.
|
|
2388
2320
|
*/
|
|
2389
2321
|
setAllowMicroWhiteSpotsRemoving(value)
|
|
2390
2322
|
{
|
|
@@ -2411,8 +2343,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2411
2343
|
|
|
2412
2344
|
/**
|
|
2413
2345
|
* Allows engine to recognize barcodes with salt and paper noise type. Mode can remove small noise with white and black dots.
|
|
2414
|
-
* Value:
|
|
2415
|
-
* Allows engine to recognize barcodes with salt and paper noise type.
|
|
2416
2346
|
*/
|
|
2417
2347
|
getAllowSaltAndPaperFiltering()
|
|
2418
2348
|
{
|
|
@@ -2421,8 +2351,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2421
2351
|
|
|
2422
2352
|
/**
|
|
2423
2353
|
* Allows engine to recognize barcodes with salt and paper noise type. Mode can remove small noise with white and black dots.
|
|
2424
|
-
* Value:
|
|
2425
|
-
* Allows engine to recognize barcodes with salt and paper noise type.
|
|
2426
2354
|
*/
|
|
2427
2355
|
setAllowSaltAndPaperFiltering(value)
|
|
2428
2356
|
{
|
|
@@ -2431,8 +2359,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2431
2359
|
|
|
2432
2360
|
/**
|
|
2433
2361
|
* Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
|
|
2434
|
-
* Value:
|
|
2435
|
-
* Allows engine to use gap between scans to increase recognition speed.
|
|
2436
2362
|
*/
|
|
2437
2363
|
getAllowDetectScanGap()
|
|
2438
2364
|
{
|
|
@@ -2441,9 +2367,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2441
2367
|
|
|
2442
2368
|
/**
|
|
2443
2369
|
* Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
|
|
2444
|
-
|
|
2445
|
-
* Allows engine to use gap between scans to increase recognition speed.
|
|
2446
|
-
*/
|
|
2370
|
+
*/
|
|
2447
2371
|
setAllowDetectScanGap(value)
|
|
2448
2372
|
{
|
|
2449
2373
|
this.getJavaClass().setAllowDetectScanGapSync(value);
|
|
@@ -2452,8 +2376,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2452
2376
|
/**
|
|
2453
2377
|
* Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
|
|
2454
2378
|
* Slow mode which helps only for dashed barcodes which consist from spots.
|
|
2455
|
-
* Value:
|
|
2456
|
-
* Allows engine for Datamatrix to recognize dashed industrial barcodes.
|
|
2457
2379
|
*/
|
|
2458
2380
|
getAllowDatamatrixIndustrialBarcodes()
|
|
2459
2381
|
{
|
|
@@ -2463,8 +2385,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2463
2385
|
/**
|
|
2464
2386
|
* Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
|
|
2465
2387
|
* Slow mode which helps only for dashed barcodes which consist from spots.
|
|
2466
|
-
* Value:
|
|
2467
|
-
* Allows engine for Datamatrix to recognize dashed industrial barcodes.
|
|
2468
2388
|
*/
|
|
2469
2389
|
setAllowDatamatrixIndustrialBarcodes(value)
|
|
2470
2390
|
{
|
|
@@ -2473,17 +2393,13 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2473
2393
|
|
|
2474
2394
|
/**
|
|
2475
2395
|
* Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
2476
|
-
|
|
2477
|
-
* Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
2478
|
-
*/
|
|
2396
|
+
*/
|
|
2479
2397
|
getAllowQRMicroQrRestoration()
|
|
2480
2398
|
{
|
|
2481
2399
|
return this.getJavaClass().getAllowQRMicroQrRestorationSync();
|
|
2482
2400
|
}
|
|
2483
2401
|
|
|
2484
2402
|
/**
|
|
2485
|
-
* Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
2486
|
-
* Value:
|
|
2487
2403
|
* Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
2488
2404
|
*/
|
|
2489
2405
|
setAllowQRMicroQrRestoration(value)
|
|
@@ -2492,8 +2408,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2492
2408
|
}
|
|
2493
2409
|
|
|
2494
2410
|
/**
|
|
2495
|
-
* Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
|
|
2496
|
-
* Value:
|
|
2497
2411
|
* Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
|
|
2498
2412
|
*/
|
|
2499
2413
|
getAllowOneDWipedBarsRestoration()
|
|
@@ -2502,8 +2416,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2502
2416
|
}
|
|
2503
2417
|
|
|
2504
2418
|
/**
|
|
2505
|
-
* Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
|
|
2506
|
-
* Value:
|
|
2507
2419
|
* Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
|
|
2508
2420
|
*/
|
|
2509
2421
|
setAllowOneDWipedBarsRestoration(value)
|
|
@@ -2651,7 +2563,6 @@ class DataBarExtendedParameters extends joint.BaseJavaClass
|
|
|
2651
2563
|
|
|
2652
2564
|
init()
|
|
2653
2565
|
{
|
|
2654
|
-
// TODO: Implement init() method.
|
|
2655
2566
|
}
|
|
2656
2567
|
|
|
2657
2568
|
/**
|
|
@@ -2714,7 +2625,8 @@ class AustraliaPostSettings extends joint.BaseJavaClass
|
|
|
2714
2625
|
if (settings != null)
|
|
2715
2626
|
{
|
|
2716
2627
|
super(settings.getJavaClass());
|
|
2717
|
-
}
|
|
2628
|
+
}
|
|
2629
|
+
else
|
|
2718
2630
|
{
|
|
2719
2631
|
let java_link = java.import(AustraliaPostSettings.javaClassName);
|
|
2720
2632
|
let australiaPostSettings = new java_link();
|
|
@@ -2751,7 +2663,7 @@ class AustraliaPostSettings extends joint.BaseJavaClass
|
|
|
2751
2663
|
* The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.
|
|
2752
2664
|
* CTable encoding method does not have any gaps in encoding table and sequnce "333" of filling paterns is decoded as letter "z".
|
|
2753
2665
|
*
|
|
2754
|
-
*
|
|
2666
|
+
* @example
|
|
2755
2667
|
*
|
|
2756
2668
|
* let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678AB");
|
|
2757
2669
|
* generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
|
|
@@ -2797,7 +2709,8 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2797
2709
|
if (settings != null)
|
|
2798
2710
|
{
|
|
2799
2711
|
super(settings.getJavaClass());
|
|
2800
|
-
}
|
|
2712
|
+
}
|
|
2713
|
+
else
|
|
2801
2714
|
{
|
|
2802
2715
|
let java_link = java.import(BarcodeSettings.javaClassName);
|
|
2803
2716
|
let barcodeSettings = new java_link();
|
|
@@ -2828,7 +2741,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2828
2741
|
* Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
|
|
2829
2742
|
* Checksum always used: Rest symbologies
|
|
2830
2743
|
*
|
|
2831
|
-
*
|
|
2744
|
+
* @example
|
|
2832
2745
|
*
|
|
2833
2746
|
* let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
|
|
2834
2747
|
* generator.save("c:/test.png", BarcodeImageFormat.PNG);
|
|
@@ -2864,7 +2777,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2864
2777
|
* Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
|
|
2865
2778
|
* Checksum always used: Rest symbologies
|
|
2866
2779
|
*
|
|
2867
|
-
*
|
|
2780
|
+
* @example
|
|
2868
2781
|
*
|
|
2869
2782
|
* let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
|
|
2870
2783
|
* generator.save("c:/test.png", BarcodeImageFormat.PNG);
|
|
@@ -2896,7 +2809,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2896
2809
|
/**
|
|
2897
2810
|
* Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
|
|
2898
2811
|
*
|
|
2899
|
-
*
|
|
2812
|
+
* @example
|
|
2900
2813
|
*
|
|
2901
2814
|
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_CODE_128, "(02)04006664241007(37)1(400)7019590754");
|
|
2902
2815
|
* generator.save("c:/test.png", BarcodeImageFormat.PNG);
|
|
@@ -2928,7 +2841,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2928
2841
|
/**
|
|
2929
2842
|
* Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
|
|
2930
2843
|
*
|
|
2931
|
-
*
|
|
2844
|
+
* @example
|
|
2932
2845
|
*
|
|
2933
2846
|
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_CODE_128, "(02)04006664241007(37)1(400)7019590754");
|
|
2934
2847
|
* generator.save("c:/test.png", BarcodeImageFormat.PNG);
|
|
@@ -2960,7 +2873,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2960
2873
|
/**
|
|
2961
2874
|
* The flag which force engine to detect codetext encoding for Unicode codesets. Default value is true.
|
|
2962
2875
|
*
|
|
2963
|
-
*
|
|
2876
|
+
* @example
|
|
2964
2877
|
*
|
|
2965
2878
|
* let generator = new BarcodeGenerator(EncodeTypes.QR, "Слово"))
|
|
2966
2879
|
* $im = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
|
|
@@ -2976,7 +2889,7 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2976
2889
|
* let reader = new BarCodeReader(im, DecodeType.QR);
|
|
2977
2890
|
* reader.getBarcodeSettings().setDetectEncoding(false);
|
|
2978
2891
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2979
|
-
*
|
|
2892
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2980
2893
|
*
|
|
2981
2894
|
* @return The flag which force engine to detect codetext encoding for Unicode codesets
|
|
2982
2895
|
*/
|
|
@@ -3008,6 +2921,7 @@ class RecognitionAbortedException extends Error
|
|
|
3008
2921
|
{
|
|
3009
2922
|
return "com.aspose.mw.barcode.recognition.MwRecognitionAbortedException";
|
|
3010
2923
|
}
|
|
2924
|
+
|
|
3011
2925
|
/**
|
|
3012
2926
|
* Gets the execution time of current recognition session
|
|
3013
2927
|
* @return The execution time of current recognition session
|
|
@@ -3035,7 +2949,7 @@ class RecognitionAbortedException extends Error
|
|
|
3035
2949
|
{
|
|
3036
2950
|
super(message);
|
|
3037
2951
|
let java_class_link = new java.import(RecognitionAbortedException.javaClassName);
|
|
3038
|
-
if(message != null && executionTime != null)
|
|
2952
|
+
if (message != null && executionTime != null)
|
|
3039
2953
|
{
|
|
3040
2954
|
this.javaClass = new java_class_link(message, executionTime);
|
|
3041
2955
|
}
|
|
@@ -3044,7 +2958,9 @@ class RecognitionAbortedException extends Error
|
|
|
3044
2958
|
this.javaClass = new java_class_link(executionTime);
|
|
3045
2959
|
}
|
|
3046
2960
|
else
|
|
2961
|
+
{
|
|
3047
2962
|
this.javaClass = new java_class_link();
|
|
2963
|
+
}
|
|
3048
2964
|
}
|
|
3049
2965
|
|
|
3050
2966
|
static construct(javaClass)
|
|
@@ -3543,7 +3459,7 @@ Code128SubType =
|
|
|
3543
3459
|
* @enum
|
|
3544
3460
|
*/
|
|
3545
3461
|
CustomerInformationInterpretingType =
|
|
3546
|
-
{
|
|
3462
|
+
{
|
|
3547
3463
|
|
|
3548
3464
|
/**
|
|
3549
3465
|
* Use C_TABLE to interpret the customer information. Allows A..Z, a..z, 1..9, space and # sing.
|
|
Binary file
|