aspose.barcode 20.6.11

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.
@@ -0,0 +1,5077 @@
1
+ const fs = require("fs");
2
+ const java = require('java');
3
+ const joint = require("./Joint");
4
+
5
+
6
+ /**
7
+ * BarcodeGenerator for backend barcode images generation.
8
+ * supported symbologies:
9
+ * 1D:
10
+ * Codabar, Code11, Code128, Code39Standard, Code39Extended
11
+ * Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5,
12
+ * MSI, Standard2of5, UPCA, UPCE, ISBN, GS1Code128, Postnet, Planet
13
+ * EAN14, SCC14, SSCC18, ITF14, SingaporePost ...
14
+ * 2D:
15
+ * Aztec, DataMatrix, PDf417, QR code ...
16
+ *@example
17
+ * // This sample shows how to create and save a barcode image.
18
+ * let encode_type = EncodeTypes.CODE_128;
19
+ * let generator = new BarcodeGenerator(encode_type);
20
+ * generator.setCodeText("123ABC");
21
+ */
22
+ class BarcodeGenerator extends joint.BaseJavaClass
23
+ {
24
+ parameters;
25
+
26
+ static get javaClassName()
27
+ {
28
+ return "com.aspose.mw.barcode.generation.MwBarcodeGenerator";
29
+ }
30
+
31
+ /**
32
+ * BarcodeGenerator constructor.
33
+ * @param encodeType Barcode symbology type. Use EncodeTypes class to setup a symbology
34
+ * @param codeText Text to be encoded.
35
+ * @code
36
+ * let barcodeGenerator = new BarcodeGenerator(EncodeTypes.EAN_14, "332211");
37
+ * @encode
38
+ * @throws BarcodeException
39
+ */
40
+ constructor(encodeType, codeText)
41
+ {
42
+ let java_class_link = java.import(BarcodeGenerator.javaClassName);
43
+ let java_class = new java_class_link(encodeType, codeText);
44
+ super(java_class);
45
+ this.init();
46
+ }
47
+
48
+ static construct(javaClass)
49
+ {
50
+ let barcodeGenerator = new BarcodeGenerator( null, null);
51
+ barcodeGenerator.setJavaClass(javaClass);
52
+ return barcodeGenerator;
53
+ }
54
+
55
+ init()
56
+ {
57
+ this.parameters = new BaseGenerationParameters(this.getJavaClass().getParametersSync());
58
+ }
59
+
60
+ /**
61
+ * Generation parameters.
62
+ * @return BaseGenerationParameters
63
+ */
64
+ getParameters()
65
+ {
66
+ return this.parameters;
67
+ }
68
+
69
+
70
+ /**
71
+ * Barcode symbology type.
72
+ */
73
+ getBarcodeType()
74
+ {
75
+ return this.getJavaClass().getBarcodeTypeSync();
76
+ }
77
+
78
+ /**
79
+ * Barcode symbology type.
80
+ */
81
+ setBarcodeType(value)
82
+ {
83
+ this.getJavaClass().setBarcodeTypeSync(value);
84
+ }
85
+
86
+ /**
87
+ * Generate the barcode image under current settings.
88
+ * This sample shows how to create and save a barcode image.
89
+ * @param {BarCodeImageFormat} format BarCodeImageFormat value (PNG, BMP, JPEG, GIF)
90
+ * @example
91
+ * let generator = new BarCodeGenerator(EncodeTypes.CODE_128);
92
+ * let image = generator.generateBarCodeImage(BarCodeImageFormat.GIF);
93
+ * @return {String} base64 representation of image.
94
+ */
95
+ generateBarCodeImage(format)
96
+ {
97
+ try
98
+ {
99
+ let base64Image = this.getJavaClass().generateBarCodeImageSync(format);
100
+ return (base64Image);
101
+ } catch (e)
102
+ {
103
+ throw new joint.BarcodeException(e)
104
+ }
105
+ }
106
+
107
+ /**
108
+ * Save barcode image to specific file in specific format.
109
+ * @param {String} filePath Path to save to.
110
+ * @param {BarCodeImageFormat} format BarCodeImageFormat value (PNG, BMP, JPEG, GIF)
111
+ * @example
112
+ * let generator = new BarCodeGenerator(EncodeTypes.CODE_128);
113
+ * generator.save("file path", BarCodeImageFormat.GIF);
114
+ */
115
+ save(filePath, format)
116
+ {
117
+ let image64 = this.generateBarCodeImage(format);
118
+ let buff = Buffer.from(image64, 'base64');
119
+ fs.writeFileSync(filePath, buff);
120
+ }
121
+
122
+ /**
123
+ * Text to be encoded.
124
+ */
125
+ getCodeText()
126
+ {
127
+ return this.getJavaClass().getCodeTextSync();
128
+ }
129
+
130
+ /**
131
+ * Text to be encoded.
132
+ */
133
+ setCodeText(value)
134
+ {
135
+ this.getJavaClass().setCodeTextSync(value);
136
+ }
137
+
138
+ /**
139
+ * Exports BarCode properties to the xml file specified
140
+ * @param filePath The xml file
141
+ * @return Whether or not export completed successfully. Returns <b>True</b> in case of success; <b>False</b> Otherwise </para>
142
+ * @throws IOException
143
+ */
144
+ exportToXml(filePath)
145
+ {
146
+ try
147
+ {
148
+ let xmlData = this.getJavaClass().exportToXmlSync();
149
+ let isSaved = xmlData != null;
150
+ if (isSaved)
151
+ {
152
+ fs.writeFileSync(filePath, xmlData);
153
+ }
154
+ return isSaved;
155
+ }
156
+ catch (ex)
157
+ {
158
+ throw new BarcodeException(ex.getMessage());
159
+ }
160
+ }
161
+
162
+ /**
163
+ * <p>
164
+ * Imports BarCode properties from the xml-file specified and creates BarcodeGenerator instance.
165
+ * </p>
166
+ * @return BarcodeGenerator instance
167
+ * @param filePath The name of the file
168
+ */
169
+ importFromXml(filePath)
170
+ {
171
+ try
172
+ {
173
+ let xmlData = joint.convertResourceToBase64String(filePath);
174
+ let offset = 6;
175
+ xmlData = xmlData.substr(offset);
176
+ return BarcodeGenerator.construct(java(BarcodeGenerator.javaClassName).importFromXmlSync(xmlData));
177
+ }
178
+ catch (ex)
179
+ {
180
+ throw new BarcodeException(ex.getMessage());
181
+ }
182
+ }
183
+ }
184
+
185
+ /**
186
+ * Barcode generation parameters.
187
+ */
188
+ class BarcodeParameters extends joint.BaseJavaClass
189
+ {
190
+ xDimension;
191
+ barHeight;
192
+ barCodeWidth;
193
+ barCodeHeight;
194
+ codeTextParameters;
195
+ postal;
196
+ australianPost;
197
+ codablock;
198
+ dataBar;
199
+ dataMatrix;
200
+ code16K;
201
+ itf;
202
+ qr;
203
+ pdf417;
204
+ maxiCode;
205
+ aztec;
206
+ codabar;
207
+ coupon;
208
+ supplement;
209
+ dotCode;
210
+ padding;
211
+ patchCode;
212
+ barWidthReduction;
213
+
214
+ constructor(javaClass)
215
+ {
216
+ super(javaClass);
217
+ this.init();
218
+ }
219
+
220
+ init()
221
+ {
222
+ this.xDimension = new Unit(this.getJavaClass().getXDimensionSync());
223
+ this.barWidthReduction = new Unit(this.getJavaClass().getBarWidthReductionSync());
224
+ this.barHeight = new Unit(this.getJavaClass().getBarHeightSync());
225
+ this.barCodeWidth = new Unit(this.getJavaClass().getBarCodeWidthSync());
226
+ this.barCodeHeight = new Unit(this.getJavaClass().getBarCodeHeightSync());
227
+ this.codeTextParameters = new CodetextParameters(this.getJavaClass().getCodeTextParametersSync());
228
+ this.postal = new PostalParameters(this.getJavaClass().getPostalSync());
229
+ this.australianPost = new AustralianPostParameters(this.getJavaClass().getAustralianPostSync());
230
+ this.codablock = new CodablockParameters(this.getJavaClass().getCodablockSync());
231
+ this.dataBar = new DataBarParameters(this.getJavaClass().getDataBarSync());
232
+ this.dataMatrix = new DataMatrixParameters(this.getJavaClass().getDataMatrixSync());
233
+ this.code16K = new Code16KParameters(this.getJavaClass().getCode16KSync());
234
+ this.itf = new ITFParameters(this.getJavaClass().getITFSync());
235
+ this.qr = new QrParameters(this.getJavaClass().getQRSync());
236
+ this.pdf417 = new Pdf417Parameters(this.getJavaClass().getPdf417Sync());
237
+ this.maxiCode = new MaxiCodeParameters(this.getJavaClass().getMaxiCodeSync());
238
+ this.aztec = new AztecParameters(this.getJavaClass().getAztecSync());
239
+ this.codabar = new CodabarParameters(this.getJavaClass().getCodabarSync());
240
+ this.coupon = new CouponParameters(this.getJavaClass().getCouponSync());
241
+ this.supplement = new SupplementParameters(this.getJavaClass().getSupplementSync());
242
+ this.dotCode = new DotCodeParameters(this.getJavaClass().getDotCodeSync());
243
+ this.padding = new Padding(this.getJavaClass().getPaddingSync());
244
+ this.patchCode = new PatchCodeParameters(this.getJavaClass().getPatchCodeSync());
245
+ }
246
+
247
+ /**
248
+ * x-dimension is the smallest width of the unit of BarCode bars or spaces.
249
+ * Increase this will increase the whole barcode image width.
250
+ * Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
251
+ */
252
+ getXDimension()
253
+ {
254
+ return this.xDimension;
255
+ }
256
+
257
+ /**
258
+ * x-dimension is the smallest width of the unit of BarCode bars or spaces.
259
+ * Increase this will increase the whole barcode image width.
260
+ * Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
261
+ * @throws BarcodeException
262
+ */
263
+ setXDimension(value)
264
+ {
265
+ this.getJavaClass().setXDimensionSync(value.getJavaClass());
266
+ this.xDimension = value;
267
+ }
268
+
269
+ /**
270
+ * Height of 1D barcodes' bars in Unit value.
271
+ * Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
272
+ * @throws BarcodeException
273
+ */
274
+ getBarHeight()
275
+ {
276
+ return this.barHeight;
277
+ }
278
+
279
+ /**
280
+ * Height of 1D barcodes' bars in Unit value.
281
+ * Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
282
+ * @throws BarcodeException
283
+ */
284
+ setBarHeight(value)
285
+ {
286
+ this.getJavaClass().setBarHeightSync(value.getJavaClass());
287
+ this.barHeight = value;
288
+ }
289
+
290
+ /**
291
+ * Bars color.
292
+ * @return value of Bar color
293
+ * Default value: #000000
294
+ */
295
+ getBarColor()
296
+ {
297
+ let intColor = this.getJavaClass().getBarColorSync();
298
+ let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
299
+ while (hexColor.length < 6)
300
+ {
301
+ hexColor = "0" + hexColor;
302
+ }
303
+ hexColor = "#" + hexColor;
304
+ return hexColor;
305
+ }
306
+
307
+ /**
308
+ * Bars color.
309
+ * @param {String} value for Bar color
310
+ * Default value: #000000.
311
+ */
312
+ setBarColor(value)
313
+ {
314
+ this.getJavaClass().setBarColorSync((parseInt(value.substr(1), 16) << 8) / 256);
315
+ }
316
+
317
+ /**
318
+ * Barcode paddings.
319
+ * Default value: 5pt 5pt 5pt 5pt.
320
+ */
321
+ getPadding()
322
+ {
323
+ return this.padding;
324
+ }
325
+
326
+ /**
327
+ * Barcode paddings.
328
+ * Default value: 5pt 5pt 5pt 5pt.
329
+ */
330
+ setPadding(value)
331
+ {
332
+ this.getJavaClass().setPaddingSync(value.getJavaClass());
333
+ this.padding = value;
334
+ }
335
+
336
+ /**
337
+ * Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
338
+ */
339
+ getChecksumAlwaysShow()
340
+ {
341
+ return this.getJavaClass().getChecksumAlwaysShowSync();
342
+ }
343
+
344
+ /**
345
+ * Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
346
+ */
347
+ setChecksumAlwaysShow(value)
348
+ {
349
+ this.getJavaClass().setChecksumAlwaysShowSync(value);
350
+ }
351
+
352
+ /**
353
+ * Enable checksum during generation 1D barcodes.
354
+ * Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
355
+ * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
356
+ * Checksum always used: Rest symbology
357
+ */
358
+ isChecksumEnabled()
359
+ {
360
+ return this.getJavaClass().isChecksumEnabledSync();
361
+ }
362
+
363
+ /**
364
+ * Enable checksum during generation 1D barcodes.
365
+ * Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
366
+ * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
367
+ * Checksum always used: Rest symbology
368
+ */
369
+ setChecksumEnabled(value)
370
+ {
371
+ this.getJavaClass().setChecksumEnabledSync(value);
372
+ }
373
+
374
+ /**
375
+ * Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only
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.
378
+ */
379
+ getEnableEscape()
380
+ {
381
+ return this.getJavaClass().getEnableEscapeSync();
382
+ }
383
+
384
+ /**
385
+ * Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only<br>
386
+ * If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.<br>
387
+ *<hr>Aspose.BarCode supports the decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \\CR stands for CR.</hr>
388
+ */
389
+ setEnableEscape(value)
390
+ {
391
+ this.getJavaClass().setEnableEscapeSync(value);
392
+ }
393
+
394
+ /**
395
+ * Wide bars to Narrow bars ratio<br>.
396
+ * Default value: 3, that is, wide bars are 3 times as wide as narrow bars<br>.
397
+ * Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard<br>
398
+ *
399
+ * The WideNarrowRatio parameter value is less than or equal to 0.
400
+ */
401
+ getWideNarrowRatio()
402
+ {
403
+ return this.getJavaClass().getWideNarrowRatioSync();
404
+ }
405
+
406
+ /**
407
+ * Wide bars to Narrow bars ratio.<br>
408
+ * Default value: 3, that is, wide bars are 3 times as wide as narrow bars.<br>
409
+ * Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, <br>
410
+ * VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard<br>
411
+ *
412
+ * The WideNarrowRatio parameter value is less than or equal to 0.
413
+ */
414
+ setWideNarrowRatio(value)
415
+ {
416
+ this.getJavaClass().setWideNarrowRatioSync(value);
417
+ }
418
+
419
+ /**
420
+ * Codetext parameters.
421
+ */
422
+ getCodeTextParameters()
423
+ {
424
+ return this.codeTextParameters;
425
+ }
426
+
427
+ /**
428
+ * Gets a value indicating whether bars filled.<br>
429
+ * Only for 1D barcodes.<br>
430
+ * Default value: true.
431
+ */
432
+ getFilledBars()
433
+ {
434
+ return this.getJavaClass().getFilledBarsSync();
435
+ }
436
+
437
+ /**
438
+ * Sets a value indicating whether bars filled.<br>
439
+ * Only for 1D barcodes.<br>
440
+ * Default value: true.
441
+ */
442
+ setFilledBars(value)
443
+ {
444
+ this.getJavaClass().setFilledBarsSync(value);
445
+ }
446
+
447
+ /**
448
+ * Get bars reduction value that is used to compensate ink spread while printing.<br>
449
+ * @return Unit value of BarWidthReduction
450
+ */
451
+ getBarWidthReduction()
452
+ {
453
+ return this.barWidthReduction;
454
+ }
455
+
456
+ /**
457
+ * Sets bars reduction value that is used to compensate ink spread while printing.
458
+ */
459
+ setBarWidthReduction(value)
460
+ {
461
+ this.getJavaClass().setBarWidthReductionSync(value.getJavaClass());
462
+ this.barWidthReduction = value;
463
+ }
464
+
465
+
466
+ /**
467
+ * Postal parameters. Used for Postnet, Planet.
468
+ */
469
+ getPostal()
470
+ {
471
+ return this.postal;
472
+ }
473
+
474
+ /**
475
+ * PatchCode parameters.
476
+ */
477
+ getPatchCode()
478
+ {
479
+ return this.patchCode;
480
+ }
481
+
482
+
483
+ /**
484
+ * AustralianPost barcode parameters.
485
+ */
486
+ getAustralianPost()
487
+ {
488
+ return this.australianPost;
489
+ }
490
+
491
+ /**
492
+ * Databar parameters.
493
+ */
494
+ getDataBar()
495
+ {
496
+ return this.dataBar;
497
+ }
498
+
499
+ /**
500
+ * Codablock parameters.
501
+ */
502
+ getCodablock()
503
+ {
504
+ return this.codablock;
505
+ }
506
+
507
+ /**
508
+ * DataMatrix parameters.
509
+ */
510
+ getDataMatrix()
511
+ {
512
+ return this.dataMatrix;
513
+ }
514
+
515
+ /**
516
+ * Code16K parameters.
517
+ */
518
+ getCode16K()
519
+ {
520
+ return this.code16K;
521
+ }
522
+
523
+ /**
524
+ * DotCode parameters.
525
+ */
526
+ getDotCode()
527
+ {
528
+ return this.dotCode;
529
+ }
530
+
531
+ /**
532
+ * ITF parameters.
533
+ */
534
+ getITF()
535
+ {
536
+ return this.itf;
537
+ }
538
+
539
+ /**
540
+ * PDF417 parameters.
541
+ */
542
+ getPdf417()
543
+ {
544
+ return this.pdf417;
545
+ }
546
+
547
+ /**
548
+ * QR parameters.
549
+ */
550
+ getQR()
551
+ {
552
+ return this.qr;
553
+ }
554
+
555
+ /**
556
+ * Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
557
+ */
558
+ getSupplement()
559
+ {
560
+ return this.supplement;
561
+ }
562
+
563
+ /**
564
+ * MaxiCode parameters.
565
+ */
566
+ getMaxiCode()
567
+ {
568
+ return this.maxiCode;
569
+ }
570
+
571
+ /**
572
+ * Aztec parameters.
573
+ */
574
+ getAztec()
575
+ {
576
+ return this.aztec;
577
+ }
578
+
579
+ /**
580
+ * Codabar parameters.
581
+ */
582
+ getCodabar()
583
+ {
584
+ return this.codabar;
585
+ }
586
+
587
+ /**
588
+ * Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
589
+ */
590
+ getCoupon()
591
+ {
592
+ return this.coupon;
593
+ }
594
+ }
595
+
596
+ /**
597
+ * Barcode image generation parameters.
598
+ */
599
+ class BaseGenerationParameters extends joint.BaseJavaClass
600
+ {
601
+ captionAbove;
602
+ captionBelow;
603
+ barcodeParameters;
604
+ borderParameters;
605
+
606
+ imageWidth;
607
+ imageHeight;
608
+
609
+ constructor(javaClass)
610
+ {
611
+ super(javaClass);
612
+ this.init();
613
+ }
614
+
615
+ init()
616
+ {
617
+ this.captionAbove = new CaptionParameters(this.getJavaClass().getCaptionAboveSync());
618
+ this.captionBelow = new CaptionParameters(this.getJavaClass().getCaptionBelowSync());
619
+ this.barcodeParameters = new BarcodeParameters(this.getJavaClass().getBarcodeSync());
620
+ this.borderParameters = new BorderParameters(this.getJavaClass().getBorderSync());
621
+ this.imageWidth = new Unit(this.getJavaClass().getImageWidthSync());
622
+ this.imageHeight = new Unit(this.getJavaClass().getImageHeightSync());
623
+ }
624
+
625
+ /**
626
+ * Background color of the barcode image.<br>
627
+ * Default value: #FFFFFF<br>
628
+ */
629
+ getBackColor()
630
+ {
631
+ let intColor = this.getJavaClass().getBackColorSync();
632
+ let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
633
+ while (hexColor.length < 6)
634
+ {
635
+ hexColor = "0" + hexColor;
636
+ }
637
+ hexColor = "#" + hexColor;
638
+ return hexColor;
639
+ }
640
+
641
+ /**
642
+ * Background color of the barcode image.<br>
643
+ * Default value: #FFFFFF<br>
644
+ */
645
+ setBackColor(hexValue)
646
+ {
647
+ this.getJavaClass().setBackColorSync((parseInt(hexValue.substr(1), 16) << 8) / 256);
648
+ }
649
+
650
+ /**
651
+ * Gets the resolution of the BarCode image.<br>
652
+ * One value for both dimensions.<br>
653
+ * Default value: 96 dpi.<br>
654
+ *
655
+ * The Resolution parameter value is less than or equal to 0.
656
+ */
657
+ getResolution()
658
+ {
659
+ return this.getJavaClass().getResolutionSync();
660
+ }
661
+
662
+ /**
663
+ * Sets the resolution of the BarCode image.<br>
664
+ * One value for both dimensions.<br>
665
+ * Default value: 96 dpi.<br>
666
+ *
667
+ * The Resolution parameter value is less than or equal to 0.
668
+ */
669
+ setResolution(value)
670
+ {
671
+ this.getJavaClass().setResolutionSync(java.newFloat(value));
672
+ }
673
+
674
+ /**
675
+ * BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation.<br>
676
+ * If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image<br>.
677
+ * Default value: 0.<br>
678
+ * @example
679
+ * //This sample shows how to create and save a BarCode image.
680
+ * let generator = new BarcodeGenerator( EncodeTypes.DATA_MATRIX);
681
+ * generator.getParameters().setRotationAngle(7);
682
+ * generator.save("test.png");
683
+ */
684
+ getRotationAngle()
685
+ {
686
+ return this.getJavaClass().getRotationAngleSync();
687
+ }
688
+
689
+ /**
690
+ * BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation.<br>
691
+ * If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image.<br>
692
+ * Default value: 0.<br>
693
+ * @example
694
+ * //This sample shows how to create and save a BarCode image.
695
+ * let generator = new BarcodeGenerator( EncodeTypes.DATA_MATRIX);
696
+ * generator.getParameters().setRotationAngle(7);
697
+ * generator.save("test.png");
698
+ */
699
+ setRotationAngle(value)
700
+ {
701
+ this.getJavaClass().setRotationAngleSync(java.newFloat(value));
702
+ }
703
+
704
+ /**
705
+ * Caption Above the BarCode image. See CaptionParameters.
706
+ */
707
+ getCaptionAbove()
708
+ {
709
+ return this.captionAbove;
710
+ }
711
+
712
+ /**
713
+ * Caption Above the BarCode image. See CaptionParameters.
714
+ */
715
+ setCaptionAbove(value)
716
+ {
717
+ this.getJavaClass().setCaptionAboveSync(value.getJavaClass());
718
+ this.captionAbove.updateCaption(value);
719
+ }
720
+
721
+ /**
722
+ * Caption Below the BarCode image. See CaptionParameters.
723
+ */
724
+ getCaptionBelow()
725
+ {
726
+ return this.captionBelow;
727
+ }
728
+
729
+ /**
730
+ * Caption Below the BarCode image. See CaptionParameters.
731
+ */
732
+ setCaptionBelow(value)
733
+ {
734
+ this.getJavaClass().setCaptionBelowSync(value.getJavaClass());
735
+ this.captionBelow.updateCaption(value);
736
+ }
737
+
738
+ /**
739
+ * Specifies the different types of automatic sizing modes.<br>
740
+ * Default value: AutoSizeMode.NONE.
741
+ */
742
+ getAutoSizeMode()
743
+ {
744
+ return this.getJavaClass().getAutoSizeModeSync();
745
+ }
746
+
747
+ /**
748
+ * Specifies the different types of automatic sizing modes.<br>
749
+ * Default value: AutoSizeMode.NONE.
750
+ */
751
+ setAutoSizeMode(value)
752
+ {
753
+ this.getJavaClass().setAutoSizeModeSync(value + "");
754
+ }
755
+
756
+
757
+ /**
758
+ * BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
759
+ */
760
+ getImageHeight()
761
+ {
762
+ return this.imageHeight;
763
+ }
764
+
765
+ /**
766
+ * BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
767
+ */
768
+ setImageHeight(value)
769
+ {
770
+ this.getJavaClass().setImageHeight(value.getJavaClass());
771
+ this.imageHeight = value;
772
+ }
773
+
774
+
775
+ /**
776
+ * BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
777
+ */
778
+ getImageWidth()
779
+ {
780
+ return this.imageWidth;
781
+ }
782
+
783
+ /**
784
+ * BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
785
+ */
786
+ setImageWidth(value)
787
+ {
788
+ this.getJavaClass().setImageWidth(value.getJavaClass());
789
+ this.imageWidth = value;
790
+ }
791
+
792
+ /**
793
+ * Gets the BarcodeParameters that contains all barcode properties.
794
+ */
795
+ getBarcode()
796
+ {
797
+ return this.barcodeParameters;
798
+ }
799
+
800
+ /**
801
+ * Gets the BarcodeParameters that contains all barcode properties.
802
+ */
803
+ setBarcode(value)
804
+ {
805
+ this.getJavaClass().setBarcodeSync(value.getJavaClass());
806
+ this.barcodeParameters = value;
807
+ }
808
+
809
+ /**
810
+ * Gets the BorderParameters that contains all configuration properties for barcode border.
811
+ */
812
+ getBorder()
813
+ {
814
+ return this.borderParameters;
815
+ }
816
+ }
817
+
818
+
819
+ /**
820
+ * Barcode image border parameters
821
+ */
822
+ class BorderParameters extends joint.BaseJavaClass
823
+ {
824
+ width;
825
+
826
+ constructor(javaClass)
827
+ {
828
+ super(javaClass);
829
+ this.init();
830
+ }
831
+
832
+ init()
833
+ {
834
+ this.width = new Unit(this.getJavaClass().getWidthSync());
835
+ }
836
+
837
+ /**
838
+ * Border visibility. If false than parameter Width is always ignored (0).
839
+ * Default value: false.
840
+ */
841
+ getVisible()
842
+ {
843
+ return this.getJavaClass().getVisibleSync();
844
+ }
845
+
846
+ /**
847
+ * Border visibility. If false than parameter Width is always ignored (0).
848
+ * Default value: false.
849
+ */
850
+ setVisible(value)
851
+ {
852
+ this.getJavaClass().setVisibleSync(value);
853
+ }
854
+
855
+ /**
856
+ * Border width.<br>
857
+ * Default value: 0.<br>
858
+ * Ignored if Visible is set to false.
859
+ */
860
+ getWidth()
861
+ {
862
+ return this.width;
863
+ }
864
+
865
+ /**
866
+ * Border width.<br>
867
+ * Default value: 0.<br>
868
+ * Ignored if Visible is set to false.
869
+ */
870
+ setWidth(value)
871
+ {
872
+ this.getJavaClass().setWidthSync(value.getJavaClass());
873
+ this.width = value;
874
+ }
875
+
876
+ /**
877
+ * Returns a human-readable string representation of this BorderParameters.<br>
878
+ * @return A string that represents this BorderParameters.
879
+ */
880
+ toString()
881
+ {
882
+ return this.getJavaClass().toStringSync();
883
+ }
884
+
885
+ /**
886
+ * Border dash style.<br>
887
+ * Default value: BorderDashStyle.SOLID.
888
+ */
889
+ getDashStyle()
890
+ {
891
+ return this.getJavaClass().getDashStyleSync();
892
+ }
893
+
894
+ /**
895
+ * Border dash style.<br>
896
+ * Default value: BorderDashStyle.SOLID.
897
+ */
898
+ setDashStyle(value)
899
+ {
900
+ this.getJavaClass().setDashStyleSync(value);
901
+ }
902
+
903
+ /**
904
+ * Border color.<br>
905
+ * Default value: #000000
906
+ */
907
+ getColor()
908
+ {
909
+ let intColor = this.getJavaClass().getColorSync();
910
+ let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
911
+ while (hexColor.length < 6)
912
+ {
913
+ hexColor = "0" + hexColor;
914
+ }
915
+ hexColor = "#" + hexColor;
916
+ return hexColor;
917
+ }
918
+
919
+ /**
920
+ * Border color.<br>
921
+ * Default value: #000000
922
+ */
923
+ setColor(hexValue)
924
+ {
925
+ this.getJavaClass().setColorSync((parseInt(hexValue.substr(1), 16) << 8) / 256);
926
+ }
927
+ }
928
+
929
+ /**
930
+ * Enable checksum validation during recognition for 1D barcodes.
931
+ * Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.
932
+ * Checksum never used: Codabar
933
+ * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
934
+ * Checksum always used: Rest symbologies
935
+ * @example
936
+ * //This sample shows influence of ChecksumValidation on recognition quality and results
937
+ * let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
938
+ * generator.save("test.png");
939
+ * let reader = new BarCodeReader("test.png", DecodeType.EAN_13);
940
+ * //checksum disabled
941
+ * reader.setChecksumValidation(ChecksumValidation.OFF);
942
+ * reader.readBarCodes().forEach(function(result, i, results)
943
+ * {
944
+ * console.log("BarCode CodeText: " + result.getCodeText());
945
+ * console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
946
+ * console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
947
+ * });
948
+ * let reader = new BarCodeReader("test.png", DecodeType.EAN_13);
949
+ * //checksum enabled
950
+ * reader.setChecksumValidation(ChecksumValidation.ON);
951
+ * reader.readBarCodes().forEach(function(result, i, results)
952
+ * {
953
+ * console.log("BarCode CodeText: " + result.getCodeText());
954
+ * console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
955
+ * console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
956
+ * });
957
+ * @enum
958
+ */
959
+ ChecksumValidation =
960
+ {
961
+ /**
962
+ * If checksum is required by the specification - it will be validated.
963
+ */
964
+ DEFAULT: 0,
965
+
966
+ /**
967
+ * Always validate checksum if possible.
968
+ */
969
+ ON: 1,
970
+
971
+ /**
972
+ * Do not validate checksum.
973
+ */
974
+ OFF: 2
975
+ };
976
+
977
+ /**
978
+ * Caption parameters.
979
+ */
980
+ class CaptionParameters extends joint.BaseJavaClass
981
+ {
982
+
983
+ font;
984
+ padding;
985
+
986
+ constructor(javaClass)
987
+ {
988
+ super(javaClass);
989
+ this.init();
990
+ }
991
+
992
+ init()
993
+ {
994
+ this.padding = new Padding(this.getJavaClass().getPaddingSync());
995
+ this.font = new FontUnit(this.getJavaClass().getFontSync());
996
+ }
997
+
998
+ /**
999
+ * Caption text.<br>
1000
+ * Default value: empty string.
1001
+ */
1002
+ getText()
1003
+ {
1004
+ return this.getJavaClass().getTextSync();
1005
+ }
1006
+
1007
+ /**
1008
+ * Caption text.<br>
1009
+ * Default value: empty string.
1010
+ */
1011
+ setText(value)
1012
+ {
1013
+ this.getJavaClass().setTextSync(value);
1014
+ }
1015
+
1016
+ /**
1017
+ * Caption font.<br>
1018
+ * Default value: Arial 8pt regular.
1019
+ */
1020
+ getFont()
1021
+ {
1022
+ return this.font;
1023
+ }
1024
+
1025
+ /**
1026
+ * Caption text visibility.<br>
1027
+ * Default value: false.
1028
+ */
1029
+ getVisible()
1030
+ {
1031
+ return this.getJavaClass().getVisibleSync();
1032
+ }
1033
+
1034
+ /**
1035
+ * Caption text visibility.<br>
1036
+ * Default value: false.
1037
+ */
1038
+ setVisible(value)
1039
+ {
1040
+ this.getJavaClass().setVisibleSync(value);
1041
+ }
1042
+
1043
+ /**
1044
+ * Caption text color.<br>
1045
+ * Default value BLACK.
1046
+ */
1047
+ getTextColor()
1048
+ {
1049
+ let intColor = this.getJavaClass().getTextColorSync();
1050
+ let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
1051
+ while (hexColor.length < 6)
1052
+ {
1053
+ hexColor = "0" + hexColor;
1054
+ }
1055
+ hexColor = "#" + hexColor;
1056
+ return hexColor;
1057
+ }
1058
+
1059
+ /**
1060
+ * Caption text color.<br>
1061
+ * Default value BLACK.
1062
+ */
1063
+ setTextColor(hexValue)
1064
+ {
1065
+ this.getJavaClass().setTextColorSync((parseInt(hexValue.substr(1), 16) << 8) / 256);
1066
+ }
1067
+
1068
+ /**
1069
+ * Captions paddings.<br>
1070
+ * Default value for CaptionAbove: 5pt 5pt 0 5pt.<br>
1071
+ * Default value for CaptionBelow: 0 5pt 5pt 5pt.
1072
+ */
1073
+ getPadding()
1074
+ {
1075
+ return this.padding;
1076
+ }
1077
+
1078
+ /**
1079
+ * Captions paddings.<br>
1080
+ * Default value for CaptionAbove: 5pt 5pt 0 5pt.<br>
1081
+ * Default value for CaptionBelow: 0 5pt 5pt 5pt.
1082
+ */
1083
+ setPadding(value)
1084
+ {
1085
+ this.getJavaClass().setPaddingSync(value.getJavaClass());
1086
+ this.padding = value;
1087
+ }
1088
+
1089
+ /**
1090
+ * Caption test horizontal alignment.<br>
1091
+ * Default valueAlignment.Center.
1092
+ */
1093
+ getAlignment()
1094
+ {
1095
+ return this.getJavaClass().getAlignmentSync();
1096
+ }
1097
+
1098
+ /**
1099
+ * Caption test horizontal alignment.<br>
1100
+ * Default valueAlignment.Center.
1101
+ */
1102
+ setAlignment(value)
1103
+ {
1104
+ this.getJavaClass().setAlignmentSync(value);
1105
+ }
1106
+
1107
+ /**
1108
+ * Specify word wraps (line breaks) within text.<br>
1109
+ * Default value: false.
1110
+ */
1111
+ getNoWrap()
1112
+ {
1113
+ return this.getJavaClass().getNoWrapSync();
1114
+ }
1115
+
1116
+ /**
1117
+ * Specify word wraps (line breaks) within text.<br>
1118
+ * Default value: false.
1119
+ */
1120
+ setNoWrap(value)
1121
+ {
1122
+ this.getJavaClass().setNoWrapSync(value);
1123
+ }
1124
+ }
1125
+
1126
+ /**
1127
+ * Specifies the size value in different units (Pixel, Inches, etc.).
1128
+ * @example
1129
+ * //This sample shows how to create and save a BarCode image.
1130
+ * let generator = new BarcodeGenerator(EncodeTypes.CODE_128);
1131
+ * generator.getParameters().getBarcode().getBarHeight().setMillimeters(10);
1132
+ * generator.save("test.png");
1133
+ */
1134
+ class Unit extends joint.BaseJavaClass
1135
+ {
1136
+ constructor(source)
1137
+ {
1138
+ super(Unit.initUnit(source));
1139
+ this.init();
1140
+ }
1141
+
1142
+ static initUnit(source)
1143
+ {
1144
+ if (source instanceof Unit)
1145
+ {
1146
+ return source.getJavaClass();
1147
+ }
1148
+ return source;
1149
+ }
1150
+
1151
+ init()
1152
+ {
1153
+ }
1154
+
1155
+ /**
1156
+ * Gets size value in pixels.
1157
+ */
1158
+ getPixels()
1159
+ {
1160
+ return this.getJavaClass().getPixelsSync();
1161
+ }
1162
+
1163
+ /**
1164
+ * Sets size value in pixels.
1165
+ */
1166
+ setPixels(value)
1167
+ {
1168
+ this.getJavaClass().setPixelsSync(value);
1169
+ }
1170
+
1171
+ /**
1172
+ * Gets size value in inches.
1173
+ */
1174
+ getInches()
1175
+ {
1176
+ return this.getJavaClass().getInchesSync();
1177
+ }
1178
+
1179
+ /**
1180
+ * Sets size value in inches.
1181
+ */
1182
+ setInches(value)
1183
+ {
1184
+ this.getJavaClass().setInchesSync(value);
1185
+ }
1186
+
1187
+ /**
1188
+ * Gets size value in millimeters.
1189
+ */
1190
+ getMillimeters()
1191
+ {
1192
+ return this.getJavaClass().getMillimetersSync();
1193
+ }
1194
+
1195
+ /**
1196
+ * Sets size value in millimeters.
1197
+ */
1198
+ setMillimeters(value)
1199
+ {
1200
+ this.getJavaClass().setMillimetersSync(value);
1201
+ }
1202
+
1203
+ /**
1204
+ * Gets size value in point.
1205
+ */
1206
+ getPoint()
1207
+ {
1208
+ return this.getJavaClass().getPointSync();
1209
+ }
1210
+
1211
+ /**
1212
+ * Sets size value in point.
1213
+ */
1214
+ setPoint(value)
1215
+ {
1216
+ this.getJavaClass().setPointSync(value);
1217
+ }
1218
+
1219
+ /**
1220
+ * Gets size value in document units.
1221
+ */
1222
+ getDocument()
1223
+ {
1224
+ return this.getJavaClass().getDocumentSync();
1225
+ }
1226
+
1227
+ /**
1228
+ * Sets size value in document units.
1229
+ */
1230
+ setDocument(value)
1231
+ {
1232
+ this.getJavaClass().setDocumentSync(value);
1233
+ }
1234
+
1235
+ /**
1236
+ * Returns a human-readable string representation of this Unit.
1237
+ * @return A string that represents this Unit.
1238
+ */
1239
+ toString()
1240
+ {
1241
+ return this.getJavaClass().toStringSync();
1242
+ }
1243
+
1244
+ /**
1245
+ * Determines whether this instance and a specified object,<br>
1246
+ * which must also be a Unit object, have the same value.<br>
1247
+ * @param obj The Unit to compare to this instance.
1248
+ * @return true if obj is a Unit and its value is the same as this instance;
1249
+ * otherwise, false. If obj is null, the method returns false.
1250
+ */
1251
+ equals(obj)
1252
+ {
1253
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
1254
+ }
1255
+ }
1256
+
1257
+ /**
1258
+ * Paddings parameters.
1259
+ */
1260
+ class Padding extends joint.BaseJavaClass
1261
+ {
1262
+
1263
+ top;
1264
+ bottom;
1265
+ right;
1266
+ left;
1267
+
1268
+ constructor(javaClass)
1269
+ {
1270
+ super(javaClass);
1271
+ this.init();
1272
+ }
1273
+
1274
+ init()
1275
+ {
1276
+ this.top = new Unit(this.getJavaClass().getTopSync());
1277
+ this.bottom = new Unit(this.getJavaClass().getBottomSync());
1278
+ this.right = new Unit(this.getJavaClass().getRightSync());
1279
+ this.left = new Unit(this.getJavaClass().getLeftSync());
1280
+ }
1281
+
1282
+ /**
1283
+ * Top padding.
1284
+ */
1285
+ getTop()
1286
+ {
1287
+ return this.top;
1288
+ }
1289
+
1290
+ /**
1291
+ * Top padding.
1292
+ */
1293
+ setTop(value)
1294
+ {
1295
+ this.getJavaClass().setTopSync(value.getJavaClass());
1296
+ this.top = value;
1297
+ }
1298
+
1299
+ /**
1300
+ * Bottom padding.
1301
+ */
1302
+ getBottom()
1303
+ {
1304
+ return this.bottom;
1305
+ }
1306
+
1307
+ /**
1308
+ * Bottom padding.
1309
+ */
1310
+ setBottom(value)
1311
+ {
1312
+ this.getJavaClass().setBottomSync(value.getJavaClass());
1313
+ this.bottom = value;
1314
+ }
1315
+
1316
+ /**
1317
+ * Right padding.
1318
+ */
1319
+ getRight()
1320
+ {
1321
+ return this.right;
1322
+ }
1323
+
1324
+ /**
1325
+ * Right padding.
1326
+ */
1327
+ setRight(value)
1328
+ {
1329
+ this.getJavaClass().setRightSync(value.getJavaClass());
1330
+ this.right = value;
1331
+ }
1332
+
1333
+ /**
1334
+ * Left padding.
1335
+ */
1336
+ getLeft()
1337
+ {
1338
+ return this.left;
1339
+ }
1340
+
1341
+ /**
1342
+ * Left padding.
1343
+ */
1344
+ setLeft(value)
1345
+ {
1346
+ this.getJavaClass().setLeftSync(value.getJavaClass());
1347
+ this.left = value;
1348
+ }
1349
+
1350
+ /**
1351
+ * Returns a human-readable string representation of this Padding.
1352
+ * @return A string that represents this Padding.
1353
+ */
1354
+ toString()
1355
+ {
1356
+ return this.getJavaClass().toStringSync();
1357
+ }
1358
+ }
1359
+
1360
+ /**
1361
+ * Codetext parameters.
1362
+ */
1363
+ class CodetextParameters extends joint.BaseJavaClass
1364
+ {
1365
+
1366
+ font;
1367
+ space;
1368
+
1369
+ constructor(javaClass)
1370
+ {
1371
+ super(javaClass);
1372
+ this.init();
1373
+ }
1374
+
1375
+ init()
1376
+ {
1377
+ this.font = new FontUnit(this.getJavaClass().getFontSync());
1378
+ this.space = new Unit(this.getJavaClass().getSpaceSync());
1379
+ }
1380
+
1381
+ /**
1382
+ * Text that will be displayed instead of codetext in 2D barcodes.<br>
1383
+ * Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
1384
+ */
1385
+ getTwoDDisplayText()
1386
+ {
1387
+ return this.getJavaClass().getTwoDDisplayTextSync();
1388
+ }
1389
+
1390
+ /**
1391
+ * Text that will be displayed instead of codetext in 2D barcodes.<br>
1392
+ * Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
1393
+ */
1394
+ setTwoDDisplayText(value)
1395
+ {
1396
+ this.getJavaClass().setTwoDDisplayTextSync(value);
1397
+ }
1398
+
1399
+ /**
1400
+ * Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value.<br>
1401
+ * It is recommended to use FontMode.AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.<br>
1402
+ * Default value: FontMode.AUTO.
1403
+ */
1404
+ getFontMode()
1405
+ {
1406
+ return this.getJavaClass().getFontModeSync();
1407
+ }
1408
+
1409
+ /**
1410
+ * Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value.<br>
1411
+ * It is recommended to use FontMode.AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.<br>
1412
+ * Default value: FontMode.AUTO.
1413
+ */
1414
+ setFontMode(value)
1415
+ {
1416
+ this.getJavaClass().setFontModeSync(value);
1417
+ }
1418
+
1419
+ /**
1420
+ * Specify the displaying CodeText's font.<br>
1421
+ * Default value: Arial 5pt regular.<br>
1422
+ * Ignored if FontMode is set to FontMode.AUTO.
1423
+ */
1424
+ getFont()
1425
+ {
1426
+ return this.font;
1427
+ }
1428
+
1429
+ /**
1430
+ * Specify the displaying CodeText's font.<br>
1431
+ * Default value: Arial 5pt regular.<br>
1432
+ * Ignored if FontMode is set to FontMode.AUTO.
1433
+ */
1434
+ setFont(value)
1435
+ {
1436
+ this.getJavaClass().setFontSync(value.getJavaClass());
1437
+ this.font = value;
1438
+ }
1439
+
1440
+ /**
1441
+ * Space between the CodeText and the BarCode in Unit value.<br>
1442
+ * Default value: 2pt.<br>
1443
+ * Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
1444
+ */
1445
+ getSpace()
1446
+ {
1447
+ return this.space;
1448
+ }
1449
+
1450
+ /**
1451
+ * Space between the CodeText and the BarCode in Unit value.<br>
1452
+ * Default value: 2pt.<br>
1453
+ * Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
1454
+ */
1455
+ setSpace(value)
1456
+ {
1457
+ this.getJavaClass().setSpaceSync(value.getJavaClass());
1458
+ this.space = value;
1459
+ }
1460
+
1461
+ /**
1462
+ * Gets or sets the alignment of the code text.<br>
1463
+ * Default value: TextAlignment.CENTER.
1464
+ */
1465
+ getAlignment()
1466
+ {
1467
+ return this.getJavaClass().getAlignmentSync();
1468
+ }
1469
+
1470
+ /**
1471
+ * Gets or sets the alignment of the code text.<br>
1472
+ * Default value: TextAlignment.CENTER.
1473
+ */
1474
+ setAlignment(value)
1475
+ {
1476
+ this.getJavaClass().setAlignmentSync(value);
1477
+ }
1478
+
1479
+ /**
1480
+ * Specify the displaying CodeText's Color.<br>
1481
+ * Default value BLACK.
1482
+ */
1483
+ getColor()
1484
+ {
1485
+ let intColor = this.getJavaClass().getColorSync();
1486
+ let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
1487
+ while (hexColor.length < 6)
1488
+ {
1489
+ hexColor = "0" + hexColor;
1490
+ }
1491
+ hexColor = "#" + hexColor;
1492
+ return hexColor;
1493
+ }
1494
+
1495
+ /**
1496
+ * Specify the displaying CodeText's Color.<br>
1497
+ * Default value BLACK.
1498
+ */
1499
+ setColor(value)
1500
+ {
1501
+ this.getJavaClass().setColorSync((parseInt(value.substr(1), 16) << 8) / 256);
1502
+ }
1503
+
1504
+ /**
1505
+ * Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText.<br>
1506
+ * Default value: CodeLocation.BELOW.
1507
+ */
1508
+ getLocation()
1509
+ {
1510
+ return this.getJavaClass().getLocationSync();
1511
+ }
1512
+
1513
+ /**
1514
+ * Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText.<br>
1515
+ * Default value: CodeLocation.BELOW.
1516
+ */
1517
+ setLocation(value)
1518
+ {
1519
+ this.getJavaClass().setLocationSync(value);
1520
+ }
1521
+
1522
+ /**
1523
+ * Specify word wraps (line breaks) within text.<br>
1524
+ * Default value: false.
1525
+ */
1526
+ getNoWrap()
1527
+ {
1528
+ return this.getJavaClass().getNoWrapSync();
1529
+ }
1530
+
1531
+ /**
1532
+ * Specify word wraps (line breaks) within text.<br>
1533
+ * Default value: false.
1534
+ */
1535
+ setNoWrap(value)
1536
+ {
1537
+ this.getJavaClass().setNoWrapSync(value);
1538
+ }
1539
+
1540
+ /**
1541
+ * Returns a human-readable string representation of this CodetextParameters.<br>
1542
+ * @return A string that represents this CodetextParameters.
1543
+ */
1544
+ toString()
1545
+ {
1546
+ return this.getJavaClass().toStringSync();
1547
+ }
1548
+ }
1549
+
1550
+ /**
1551
+ * Postal parameters. Used for Postnet, Planet.
1552
+ */
1553
+ class PostalParameters extends joint.BaseJavaClass
1554
+ {
1555
+
1556
+ postalShortBarHeight;
1557
+
1558
+ constructor(javaClass)
1559
+ {
1560
+ super(javaClass);
1561
+ this.init();
1562
+ }
1563
+
1564
+ init()
1565
+ {
1566
+ this.postalShortBarHeight = new Unit(this.getJavaClass().getPostalShortBarHeightSync());
1567
+ }
1568
+
1569
+ /**
1570
+ * Short bar's height of Postal barcodes.
1571
+ */
1572
+ getPostalShortBarHeight()
1573
+ {
1574
+ return this.postalShortBarHeight;
1575
+ }
1576
+
1577
+ /**
1578
+ * Short bar's height of Postal barcodes.
1579
+ */
1580
+ setPostalShortBarHeight(value)
1581
+ {
1582
+ this.getJavaClass().setPostalShortBarHeightSync(value.getJavaClass());
1583
+ this.postalShortBarHeight = value;
1584
+ }
1585
+
1586
+ /**
1587
+ * Returns a human-readable string representation of this PostalParameters.<br>
1588
+ * @return A string that represents this PostalParameters.
1589
+ */
1590
+ toString()
1591
+ {
1592
+ return this.getJavaClass().toStringSync();
1593
+ }
1594
+ }
1595
+
1596
+ /**
1597
+ * AustralianPost barcode parameters.
1598
+ */
1599
+ class AustralianPostParameters extends joint.BaseJavaClass
1600
+ {
1601
+ australianPostShortBarHeight;
1602
+
1603
+ constructor(javaClass)
1604
+ {
1605
+ super(javaClass);
1606
+ this.init();
1607
+ }
1608
+
1609
+ init()
1610
+ {
1611
+ this.australianPostShortBarHeight = new Unit(this.getJavaClass().getAustralianPostShortBarHeightSync());
1612
+ }
1613
+
1614
+ /**
1615
+ * Short bar's height of AustralianPost barcode.
1616
+ */
1617
+ getAustralianPostShortBarHeight()
1618
+ {
1619
+ return this.australianPostShortBarHeight;
1620
+ }
1621
+
1622
+ /**
1623
+ * Short bar's height of AustralianPost barcode.
1624
+ */
1625
+ setAustralianPostShortBarHeight(value)
1626
+ {
1627
+ this.getJavaClass().setAustralianPostShortBarHeightSync(value.getJavaClass());
1628
+ this.australianPostShortBarHeight = value;
1629
+ }
1630
+
1631
+ /**
1632
+ * Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.Other"
1633
+ */
1634
+ getAustralianPostEncodingTable()
1635
+ {
1636
+ return this.getJavaClass().getAustralianPostEncodingTableSync();
1637
+ }
1638
+
1639
+ /**
1640
+ * Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.Other"
1641
+ */
1642
+ setAustralianPostEncodingTable(value)
1643
+ {
1644
+ this.getJavaClass().setAustralianPostEncodingTableSync(value);
1645
+ }
1646
+
1647
+ /**
1648
+ * Returns a human-readable string representation of this AustralianPostParameters.<br>
1649
+ * @return {string} Value that represents this AustralianPostParameters.
1650
+ */
1651
+ toString()
1652
+ {
1653
+ return this.getJavaClass().toStringSync();
1654
+ }
1655
+ }
1656
+
1657
+ /**
1658
+ * Codablock parameters.
1659
+ */
1660
+ class CodablockParameters extends joint.BaseJavaClass
1661
+ {
1662
+
1663
+ constructor(javaClass)
1664
+ {
1665
+ super(javaClass);
1666
+ this.init();
1667
+ }
1668
+
1669
+ init()
1670
+ {
1671
+ }
1672
+
1673
+ /**
1674
+ * Columns count.
1675
+ */
1676
+ getColumns()
1677
+ {
1678
+ return this.getJavaClass().getColumnsSync();
1679
+ }
1680
+
1681
+ /**
1682
+ * Columns count.
1683
+ */
1684
+ setColumns(value)
1685
+ {
1686
+ this.getJavaClass().setColumnsSync(value);
1687
+ }
1688
+
1689
+ /**
1690
+ * Rows count.
1691
+ */
1692
+ getRows()
1693
+ {
1694
+ return this.getJavaClass().getRowsSync();
1695
+ }
1696
+
1697
+ /**
1698
+ * Rows count.
1699
+ */
1700
+ setRows(value)
1701
+ {
1702
+ this.getJavaClass().setRowsSync(value);
1703
+ }
1704
+
1705
+ /**
1706
+ * Height/Width ratio of 2D BarCode module.
1707
+ */
1708
+ getAspectRatio()
1709
+ {
1710
+ return this.getJavaClass().getAspectRatioSync();
1711
+ }
1712
+
1713
+ /**
1714
+ * Height/Width ratio of 2D BarCode module.
1715
+ */
1716
+ setAspectRatio(value)
1717
+ {
1718
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
1719
+ }
1720
+
1721
+ /**
1722
+ * Returns a human-readable string representation of this CodablockParameters. <br>
1723
+ * @return {string} value that represents this CodablockParameters.
1724
+ */
1725
+ toString()
1726
+ {
1727
+ return this.getJavaClass().toStringSync();
1728
+ }
1729
+ }
1730
+
1731
+ /**
1732
+ * Databar parameters.
1733
+ */
1734
+ class DataBarParameters extends joint.BaseJavaClass
1735
+ {
1736
+
1737
+ constructor(javaClass)
1738
+ {
1739
+ super(javaClass);
1740
+ this.init();
1741
+ }
1742
+
1743
+ init()
1744
+ {
1745
+ }
1746
+
1747
+ /**
1748
+ * Enables flag of 2D composite component with DataBar barcode
1749
+ */
1750
+ is2DCompositeComponent()
1751
+ {
1752
+ return this.getJavaClass().is2DCompositeComponentSync();
1753
+ }
1754
+
1755
+ /**
1756
+ * Enables flag of 2D composite component with DataBar barcode
1757
+ */
1758
+ set2DCompositeComponent(value)
1759
+ {
1760
+ this.getJavaClass().set2DCompositeComponentSync(value);
1761
+ }
1762
+
1763
+ /**
1764
+ * If this flag is set, it allows only GS1 encoding standard for Databar barcode types
1765
+ */
1766
+ isAllowOnlyGS1Encoding()
1767
+ {
1768
+ return this.getJavaClass().isAllowOnlyGS1EncodingSync();
1769
+ }
1770
+
1771
+ /**
1772
+ * If this flag is set, it allows only GS1 encoding standard for Databar barcode types
1773
+ */
1774
+ setAllowOnlyGS1Encoding(value)
1775
+ {
1776
+ this.getJavaClass().setAllowOnlyGS1EncodingSync(value);
1777
+ }
1778
+
1779
+ /**
1780
+ * Columns count.
1781
+ */
1782
+ getColumns()
1783
+ {
1784
+ return this.getJavaClass().getColumnsSync();
1785
+ }
1786
+
1787
+ /**
1788
+ * Columns count.
1789
+ */
1790
+ setColumns(value)
1791
+ {
1792
+ this.getJavaClass().setColumnsSync(value);
1793
+ }
1794
+
1795
+ /**
1796
+ * Rows count.
1797
+ */
1798
+ getRows()
1799
+ {
1800
+ return this.getJavaClass().getRowsSync();
1801
+ }
1802
+
1803
+ /**
1804
+ * Rows count.
1805
+ */
1806
+ setRows(value)
1807
+ {
1808
+ this.getJavaClass().setRowsSync(value);
1809
+ }
1810
+
1811
+ /**
1812
+ * Height/Width ratio of 2D BarCode module.
1813
+ * Used for DataBar stacked.
1814
+ */
1815
+ getAspectRatio()
1816
+ {
1817
+ return this.getJavaClass().getAspectRatioSync();
1818
+ }
1819
+
1820
+ /**
1821
+ * Height/Width ratio of 2D BarCode module.<br>
1822
+ * Used for DataBar stacked.
1823
+ */
1824
+ setAspectRatio(value)
1825
+ {
1826
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
1827
+ }
1828
+
1829
+ /**
1830
+ * Returns a human-readable string representation of this DataBarParameters.<br>
1831
+ * @return A string that represents this DataBarParameters.
1832
+ */
1833
+ toString()
1834
+ {
1835
+ return this.getJavaClass().toStringSync();
1836
+ }
1837
+ }
1838
+
1839
+ /**
1840
+ * DataMatrix parameters.
1841
+ */
1842
+ class DataMatrixParameters extends joint.BaseJavaClass
1843
+ {
1844
+
1845
+ constructor(javaClass)
1846
+ {
1847
+ super(javaClass);
1848
+ this.init();
1849
+ }
1850
+
1851
+ init()
1852
+ {
1853
+ }
1854
+
1855
+ /**
1856
+ * Gets a Datamatrix ECC type.<br>
1857
+ * Default value: DataMatrixEccType.ECC_200.
1858
+ */
1859
+ getDataMatrixEcc()
1860
+ {
1861
+ return this.getJavaClass().getDataMatrixEccSync();
1862
+ }
1863
+
1864
+ /**
1865
+ * Sets a Datamatrix ECC type.<br>
1866
+ * Default value: DataMatrixEccType.ECC_200.
1867
+ */
1868
+ setDataMatrixEcc(value)
1869
+ {
1870
+ this.getJavaClass().setDataMatrixEccSync(value);
1871
+ }
1872
+
1873
+ /**
1874
+ * Encode mode of Datamatrix barcode.<br>
1875
+ * Default value: DataMatrixEncodeMode.AUTO.
1876
+ */
1877
+ getDataMatrixEncodeMode()
1878
+ {
1879
+ return this.getJavaClass().getDataMatrixEncodeModeSync();
1880
+ }
1881
+
1882
+ /**
1883
+ * Encode mode of Datamatrix barcode.<br>
1884
+ * Default value: DataMatrixEncodeMode.AUTO.
1885
+ */
1886
+ setDataMatrixEncodeMode(value)
1887
+ {
1888
+ this.getJavaClass().setDataMatrixEncodeModeSync(value);
1889
+ }
1890
+
1891
+ /**
1892
+ * ISO/IEC 16022<br>
1893
+ * 5.2.4.7 Macro characters<br>
1894
+ * 11.3 Protocol for Macro characters in the first position (ECC 200 only)<br>
1895
+ * Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.<br>
1896
+ * Can be used only with DataMatrixEccType.ECC_200 or DataMatrixEccType.ECC_AUTO.<br>
1897
+ * Cannot be used with EncodeTypes.GS_1_DATA_MATRIX<br>
1898
+ * Default value: MacroCharacter.NONE.
1899
+ */
1900
+ getMacroCharacters()
1901
+ {
1902
+ return this.getJavaClass().getMacroCharactersSync();
1903
+ }
1904
+
1905
+ /**
1906
+ * ISO/IEC 16022<br>
1907
+ * 5.2.4.7 Macro characters<br>
1908
+ * 11.3 Protocol for Macro characters in the first position (ECC 200 only)<br>
1909
+ * Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.<br>
1910
+ * Can be used only with DataMatrixEccType.ECC_200 or DataMatrixEccType.ECC_AUTO.<br>
1911
+ * Cannot be used with EncodeTypes.GS_1_DATA_MATRIX<br>
1912
+ * Default value: MacroCharacter.NONE.
1913
+ */
1914
+ setMacroCharacters(value)
1915
+ {
1916
+ this.getJavaClass().setMacroCharactersSync(value);
1917
+ }
1918
+
1919
+ /**
1920
+ * Columns count.
1921
+ */
1922
+ getColumns()
1923
+ {
1924
+ return this.getJavaClass().getColumnsSync();
1925
+ }
1926
+
1927
+ /**
1928
+ * Columns count.
1929
+ */
1930
+ setColumns(value)
1931
+ {
1932
+ this.getJavaClass().setColumnsSync(value);
1933
+ }
1934
+
1935
+ /**
1936
+ * Rows count.
1937
+ */
1938
+ getRows()
1939
+ {
1940
+ return this.getJavaClass().getRowsSync();
1941
+ }
1942
+
1943
+ /**
1944
+ * Rows count.
1945
+ */
1946
+ setRows(value)
1947
+ {
1948
+ this.getJavaClass().setRowsSync(value);
1949
+ }
1950
+
1951
+ /**
1952
+ * Height/Width ratio of 2D BarCode module.
1953
+ */
1954
+ getAspectRatio()
1955
+ {
1956
+ return this.getJavaClass().getAspectRatioSync();
1957
+ }
1958
+
1959
+ /**
1960
+ * Height/Width ratio of 2D BarCode module.
1961
+ */
1962
+ setAspectRatio(value)
1963
+ {
1964
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
1965
+ }
1966
+
1967
+ /**
1968
+ * Gets the encoding of codetext.<br>
1969
+ * Default value: UTF-16
1970
+ */
1971
+ getCodeTextEncoding()
1972
+ {
1973
+ return this.getJavaClass().getCodeTextEncodingSync();
1974
+ }
1975
+
1976
+ /**
1977
+ * Sets the encoding of codetext.<br>
1978
+ * Default value: UTF-16
1979
+ */
1980
+ setCodeTextEncoding(value)
1981
+ {
1982
+ this.getJavaClass().setCodeTextEncodingSync(value);
1983
+ }
1984
+
1985
+ /**
1986
+ * Returns a human-readable string representation of this DataMatrixParameters.<br>
1987
+ * @return presentation of this DataMatrixParameters.
1988
+ */
1989
+ toString()
1990
+ {
1991
+ return this.getJavaClass().toStringSync();
1992
+ }
1993
+ }
1994
+
1995
+ /**
1996
+ * PatchCode parameters.
1997
+ */
1998
+ class PatchCodeParameters extends joint.BaseJavaClass
1999
+ {
2000
+
2001
+ constructor(javaClass)
2002
+ {
2003
+ super(javaClass);
2004
+ this.init();
2005
+ }
2006
+
2007
+ init()
2008
+ {
2009
+ }
2010
+
2011
+ /**
2012
+ * Specifies codetext for an extra QR barcode, when PatchCode is generated in page mode.
2013
+ */
2014
+ getExtraBarcodeText()
2015
+ {
2016
+ return this.getJavaClass().getExtraBarcodeTextSync();
2017
+ }
2018
+
2019
+ /**
2020
+ * Specifies codetext for an extra QR barcode, when PatchCode is generated in page mode.
2021
+ */
2022
+ setExtraBarcodeText(value)
2023
+ {
2024
+ this.getJavaClass().setExtraBarcodeTextSync(value);
2025
+ }
2026
+
2027
+ /**
2028
+ * PatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes as borders.<br>
2029
+ * Default value: PatchFormat.PATCH_ONLY
2030
+ *
2031
+ * @return PatchFormat
2032
+ */
2033
+ getPatchFormat()
2034
+ {
2035
+ return this.getJavaClass().getPatchFormatSync();
2036
+ }
2037
+
2038
+ /**
2039
+ * PatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes as borders.<br>
2040
+ * Default value: PatchFormat.PATCH_ONLY
2041
+ */
2042
+ setPatchFormat(value)
2043
+ {
2044
+ this.getJavaClass().setPatchFormatSync(value);
2045
+ }
2046
+
2047
+ /**
2048
+ * Returns a human-readable string representation of this {PatchCodeParameters}<br>
2049
+ * @return string value that represents PatchCodeParameters
2050
+ */
2051
+ toString()
2052
+ {
2053
+ return this.getJavaClass().toStringSync();
2054
+ }
2055
+ }
2056
+
2057
+ /**
2058
+ * Code16K parameters.
2059
+ */
2060
+ class Code16KParameters extends joint.BaseJavaClass
2061
+ {
2062
+
2063
+ constructor(javaClass)
2064
+ {
2065
+ super(javaClass);
2066
+ this.init();
2067
+ }
2068
+
2069
+ init()
2070
+ {
2071
+ }
2072
+
2073
+ /**
2074
+ * Height/Width ratio of 2D BarCode module.
2075
+ */
2076
+ getAspectRatio()
2077
+ {
2078
+ return this.getJavaClass().getAspectRatioSync();
2079
+ }
2080
+
2081
+ /**
2082
+ * Height/Width ratio of 2D BarCode module.
2083
+ */
2084
+ setAspectRatio(value)
2085
+ {
2086
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
2087
+ }
2088
+
2089
+ /**
2090
+ * Size of the left quiet zone in xDimension.<br>
2091
+ * Default value: 10, meaning if xDimension = 2px than left quiet zone will be 20px.
2092
+ */
2093
+ getQuietZoneLeftCoef()
2094
+ {
2095
+ return this.getJavaClass().getQuietZoneLeftCoefSync();
2096
+ }
2097
+
2098
+ /**
2099
+ * Size of the left quiet zone in xDimension.<br>
2100
+ * Default value: 10, meaning if xDimension = 2px than left quiet zone will be 20px.
2101
+ */
2102
+ setQuietZoneLeftCoef(value)
2103
+ {
2104
+ this.getJavaClass().setQuietZoneLeftCoefSync(value);
2105
+ }
2106
+
2107
+ /**
2108
+ * Size of the right quiet zone in xDimension.<br>
2109
+ * Default value: 1, meaning if xDimension = 2px than right quiet zone will be 2px.
2110
+ */
2111
+ getQuietZoneRightCoef()
2112
+ {
2113
+ return this.getJavaClass().getQuietZoneRightCoefSync();
2114
+ }
2115
+
2116
+ /**
2117
+ * Size of the right quiet zone in xDimension.<br>
2118
+ * Default value: 1, meaning if xDimension = 2px than right quiet zone will be 2px.
2119
+ */
2120
+ setQuietZoneRightCoef(value)
2121
+ {
2122
+ this.getJavaClass().setQuietZoneRightCoefSync(value);
2123
+ }
2124
+
2125
+ /**
2126
+ * Returns a human-readable string representation of this Code16KParameters.<br>
2127
+ * @return A string that represents this Code16KParameters.
2128
+ */
2129
+ toString()
2130
+ {
2131
+ return this.getJavaClass().toStringSync();
2132
+ }
2133
+ }
2134
+
2135
+ /**
2136
+ * DotCode parameters.
2137
+ */
2138
+ class DotCodeParameters extends joint.BaseJavaClass
2139
+ {
2140
+
2141
+ constructor(javaClass)
2142
+ {
2143
+ super(javaClass);
2144
+ this.init();
2145
+ }
2146
+
2147
+ init()
2148
+ {
2149
+ }
2150
+
2151
+ /**
2152
+ * Mask of Dotcode barcode.<br>
2153
+ * Default value: -1.
2154
+ */
2155
+ getDotCodeMask()
2156
+ {
2157
+ return this.getJavaClass().getDotCodeMaskSync();
2158
+ }
2159
+
2160
+ /**
2161
+ * Mask of Dotcode barcode.<br>
2162
+ * Default value: -1.
2163
+ */
2164
+ setDotCodeMask(value)
2165
+ {
2166
+ this.getJavaClass().setDotCodeMaskSync(value);
2167
+ }
2168
+
2169
+ /**
2170
+ * Height/Width ratio of 2D BarCode module.
2171
+ */
2172
+ getAspectRatio()
2173
+ {
2174
+ return this.getJavaClass().getAspectRatioSync();
2175
+ }
2176
+
2177
+ /**
2178
+ * Height/Width ratio of 2D BarCode module.
2179
+ */
2180
+ setAspectRatio(value)
2181
+ {
2182
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
2183
+ }
2184
+
2185
+ /**
2186
+ * Returns a human-readable string representation of this DotCodeParameters.<br>
2187
+ * @return A string that represents this DotCodeParameters.
2188
+ */
2189
+ toString()
2190
+ {
2191
+ return this.getJavaClass().toStringSync();
2192
+ }
2193
+ }
2194
+
2195
+ /**
2196
+ * ITF parameters.
2197
+ */
2198
+ class ITFParameters extends joint.BaseJavaClass
2199
+ {
2200
+
2201
+ itfBorderThickness;
2202
+
2203
+ constructor(javaClass)
2204
+ {
2205
+ super(javaClass);
2206
+ this.init();
2207
+ }
2208
+
2209
+ init()
2210
+ {
2211
+ this.itfBorderThickness = new Unit(this.getJavaClass().getItfBorderThicknessSync());
2212
+ }
2213
+
2214
+ /**
2215
+ * Gets or sets an ITF border (bearer bar) thickness in Unit value.<br>
2216
+ * Default value: 12pt.
2217
+ */
2218
+ getItfBorderThickness()
2219
+ {
2220
+ return this.itfBorderThickness;
2221
+ }
2222
+
2223
+ /**
2224
+ * Gets or sets an ITF border (bearer bar) thickness in Unit value.<br>
2225
+ * Default value: 12pt.
2226
+ */
2227
+ setItfBorderThickness(value)
2228
+ {
2229
+ this.getJavaClass().setItfBorderThicknessSync(value.getJavaClass());
2230
+ this.itfBorderThickness = value;
2231
+ }
2232
+
2233
+ /**
2234
+ * Border type of ITF barcode.<br>
2235
+ * Default value: ITF14BorderType.BAR.
2236
+ */
2237
+ getItfBorderType()
2238
+ {
2239
+ return this.getJavaClass().getItfBorderTypeSync();
2240
+ }
2241
+
2242
+ /**
2243
+ * Border type of ITF barcode.<br>
2244
+ * Default value: ITF14BorderType.BAR.
2245
+ */
2246
+ setItfBorderType(value)
2247
+ {
2248
+ this.getJavaClass().setItfBorderTypeSync(value);
2249
+ }
2250
+
2251
+ /**
2252
+ * Size of the quiet zones in xDimension.<br>
2253
+ * Default value: 10, meaning if xDimension = 2px than quiet zones will be 20px.<br>
2254
+ * @exception IllegalArgumentException
2255
+ * The QuietZoneCoef parameter value is less than 10.
2256
+ */
2257
+ getQuietZoneCoef()
2258
+ {
2259
+ return this.getJavaClass().getQuietZoneCoefSync();
2260
+ }
2261
+
2262
+ /**
2263
+ * Size of the quiet zones in xDimension.<br>
2264
+ * Default value: 10, meaning if xDimension = 2px than quiet zones will be 20px.<br>
2265
+ * @exception IllegalArgumentException
2266
+ * The QuietZoneCoef parameter value is less than 10.
2267
+ */
2268
+ setQuietZoneCoef(value)
2269
+ {
2270
+ this.getJavaClass().setQuietZoneCoefSync(value);
2271
+ }
2272
+
2273
+ /**
2274
+ * Returns a human-readable string representation of this ITFParameters.<br>
2275
+ * @return A string that represents this ITFParameters.
2276
+ */
2277
+ toString()
2278
+ {
2279
+ return this.getJavaClass().toStringSync();
2280
+ }
2281
+ }
2282
+
2283
+ /**
2284
+ * QR parameters.
2285
+ */
2286
+ class QrParameters extends joint.BaseJavaClass
2287
+ {
2288
+ structuredAppend;
2289
+
2290
+ constructor(javaClass)
2291
+ {
2292
+ super(javaClass);
2293
+ this.init();
2294
+ }
2295
+
2296
+ init()
2297
+ {
2298
+ this.structuredAppend = new QrStructuredAppendParameters(this.getJavaClass().getStructuredAppendSync());
2299
+ }
2300
+
2301
+ /**
2302
+ * QR structured append parameters.
2303
+ */
2304
+ getStructuredAppend()
2305
+ {
2306
+ return this.structuredAppend;
2307
+ }
2308
+
2309
+ /**
2310
+ * QR structured append parameters.
2311
+ */
2312
+ setStructuredAppend(value)
2313
+ {
2314
+ this.structuredAppend = value;
2315
+ this.getJavaClass().setStructuredAppendSync(value.getJavaClass());
2316
+ }
2317
+
2318
+ /**
2319
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details<br>
2320
+ * about the used references for encoding the data in the symbol.<br>
2321
+ * Current implementation consists all well known charset encodings.
2322
+ */
2323
+ getQrECIEncoding()
2324
+ {
2325
+ return this.getJavaClass().getQrECIEncodingSync();
2326
+ }
2327
+
2328
+ /**
2329
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details<br>
2330
+ * about the used references for encoding the data in the symbol.<br>
2331
+ * Current implementation consists all well known charset encodings.
2332
+ */
2333
+ setQrECIEncoding(value)
2334
+ {
2335
+ this.getJavaClass().setQrECIEncodingSync(value);
2336
+ }
2337
+
2338
+ /**
2339
+ * QR symbology type of BarCode's encoding mode.<br>
2340
+ * Default value: QREncodeMode.AUTO.
2341
+ */
2342
+ getQrEncodeMode()
2343
+ {
2344
+ return this.getJavaClass().getQrEncodeModeSync();
2345
+ }
2346
+
2347
+ /**
2348
+ * QR symbology type of BarCode's encoding mode.<br>
2349
+ * Default value: QREncodeMode.AUTO.
2350
+ */
2351
+ setQrEncodeMode(value)
2352
+ {
2353
+ console.log("JS QrParameters.setQrEncodeMode(" + value + ")\n")
2354
+ this.getJavaClass().setQrEncodeModeSync(value);
2355
+ }
2356
+
2357
+ /**
2358
+ * QR / MicroQR selector mode. Select ForceQR for standard QR symbols, Auto for MicroQR.
2359
+ */
2360
+ getQrEncodeType()
2361
+ {
2362
+ let value = this.getJavaClass().getQrEncodeTypeSync();
2363
+ return value;
2364
+ }
2365
+
2366
+ /**
2367
+ * QR / MicroQR selector mode. Select ForceQR for standard QR symbols, Auto for MicroQR.
2368
+ */
2369
+ setQrEncodeType(value)
2370
+ {
2371
+ this.getJavaClass().setQrEncodeTypeSync(value);
2372
+ }
2373
+
2374
+ /**
2375
+ * Level of Reed-Solomon error correction for QR barcode.<br>
2376
+ * From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
2377
+ */
2378
+ getQrErrorLevel()
2379
+ {
2380
+ return this.getJavaClass().getQrErrorLevelSync();
2381
+ }
2382
+
2383
+ /**
2384
+ * Level of Reed-Solomon error correction for QR barcode.<br>
2385
+ * From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
2386
+ */
2387
+ setQrErrorLevel(value)
2388
+ {
2389
+ this.getJavaClass().setQrErrorLevelSync(value);
2390
+ }
2391
+
2392
+ /**
2393
+ * Version of QR Code.<br>
2394
+ * From Version1 to Version40 for QR code and from M1 to M4 for MicroQr.<br>
2395
+ * Default value is QRVersion.AUTO.
2396
+ */
2397
+ getQrVersion()
2398
+ {
2399
+ return this.getJavaClass().getQrVersionSync();
2400
+ }
2401
+
2402
+ /**
2403
+ * Version of QR Code.<br>
2404
+ * From Version1 to Version40 for QR code and from M1 to M4 for MicroQr.<br>
2405
+ * Default value is QRVersion.AUTO.
2406
+ */
2407
+ setQrVersion(value)
2408
+ {
2409
+ this.getJavaClass().setQrVersionSync(value);
2410
+ }
2411
+
2412
+ /**
2413
+ * Height/Width ratio of 2D BarCode module.
2414
+ */
2415
+ getAspectRatio()
2416
+ {
2417
+ return this.getJavaClass().getAspectRatioSync();
2418
+ }
2419
+
2420
+ /**
2421
+ * Height/Width ratio of 2D BarCode module.
2422
+ */
2423
+ setAspectRatio(value)
2424
+ {
2425
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
2426
+ }
2427
+
2428
+ /**
2429
+ * Gets the encoding of codetext.<br>
2430
+ * Default value: UTF-8
2431
+ */
2432
+ getCodeTextEncoding()
2433
+ {
2434
+ return this.getJavaClass().getCodeTextEncodingSync();
2435
+ }
2436
+
2437
+ /**
2438
+ * Sets the encoding of codetext.<br>
2439
+ * Default value: UTF-8
2440
+ */
2441
+ setCodeTextEncoding(value)
2442
+ {
2443
+ this.getJavaClass().setCodeTextEncodingSync(value);
2444
+ }
2445
+
2446
+ /**
2447
+ * Returns a human-readable string representation of this QrParameters.<br>
2448
+ * @return A string that represents this QrParameters.
2449
+ */
2450
+ toString()
2451
+ {
2452
+ return this.getJavaClass().toStringSync();
2453
+ }
2454
+ }
2455
+
2456
+ /**
2457
+ * PDF417 parameters.
2458
+ */
2459
+ class Pdf417Parameters extends joint.BaseJavaClass
2460
+ {
2461
+
2462
+ constructor(javaClass)
2463
+ {
2464
+ super(javaClass);
2465
+ this.init();
2466
+ }
2467
+
2468
+ init()
2469
+ {
2470
+ }
2471
+
2472
+ /**
2473
+ * Pdf417 symbology type of BarCode's compaction mode.<br>
2474
+ * Default value: Pdf417CompactionMode.AUTO.
2475
+ */
2476
+ getPdf417CompactionMode()
2477
+ {
2478
+ return this.getJavaClass().getPdf417CompactionModeSync();
2479
+ }
2480
+
2481
+ /**
2482
+ * Pdf417 symbology type of BarCode's compaction mode.<br>
2483
+ * Default value: Pdf417CompactionMode.AUTO.
2484
+ */
2485
+ setPdf417CompactionMode(value)
2486
+ {
2487
+ this.getJavaClass().setPdf417CompactionModeSync(value);
2488
+ }
2489
+
2490
+ /**
2491
+ * Gets or sets Pdf417 symbology type of BarCode's error correction level<br>
2492
+ * ranging from level0 to level8, level0 means no error correction info,<br>
2493
+ * level8 means best error correction which means a larger picture.
2494
+ */
2495
+ getPdf417ErrorLevel()
2496
+ {
2497
+ return this.getJavaClass().getPdf417ErrorLevelSync();
2498
+ }
2499
+
2500
+ /**
2501
+ * Gets or sets Pdf417 symbology type of BarCode's error correction level<br>
2502
+ * ranging from level0 to level8, level0 means no error correction info,<br>
2503
+ * level8 means best error correction which means a larger picture.
2504
+ */
2505
+ setPdf417ErrorLevel(value)
2506
+ {
2507
+ this.getJavaClass().setPdf417ErrorLevelSync(value);
2508
+ }
2509
+
2510
+ /**
2511
+ * Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
2512
+ */
2513
+ getPdf417Truncate()
2514
+ {
2515
+ return this.getJavaClass().getPdf417TruncateSync();
2516
+ }
2517
+
2518
+ /**
2519
+ * Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
2520
+ */
2521
+ setPdf417Truncate(value)
2522
+ {
2523
+ this.getJavaClass().setPdf417TruncateSync(value);
2524
+ }
2525
+
2526
+ /**
2527
+ * Columns count.
2528
+ */
2529
+ getColumns()
2530
+ {
2531
+ return this.getJavaClass().getColumnsSync();
2532
+ }
2533
+
2534
+ /**
2535
+ * Columns count.
2536
+ */
2537
+ setColumns(value)
2538
+ {
2539
+ this.getJavaClass().setColumnsSync(value);
2540
+ }
2541
+
2542
+ /**
2543
+ * Rows count.
2544
+ */
2545
+ getRows()
2546
+ {
2547
+ return this.getJavaClass().getRowsSync();
2548
+ }
2549
+
2550
+ /**
2551
+ * Rows count.
2552
+ */
2553
+ setRows(value)
2554
+ {
2555
+ this.getJavaClass().setRowsSync(value);
2556
+ }
2557
+
2558
+ /**
2559
+ * Height/Width ratio of 2D BarCode module.
2560
+ */
2561
+ getAspectRatio()
2562
+ {
2563
+ return this.getJavaClass().getAspectRatioSync();
2564
+ }
2565
+
2566
+ /**
2567
+ * Height/Width ratio of 2D BarCode module.
2568
+ */
2569
+ setAspectRatio(value)
2570
+ {
2571
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
2572
+ }
2573
+
2574
+ /**
2575
+ * Getsmacro Pdf417 barcode's file ID.<br>
2576
+ * Used for MacroPdf417.
2577
+ */
2578
+ getPdf417MacroFileID()
2579
+ {
2580
+ return this.getJavaClass().getPdf417MacroFileIDSync();
2581
+ }
2582
+
2583
+ /**
2584
+ * Sets macro Pdf417 barcode's file ID.<br>
2585
+ * Used for MacroPdf417.
2586
+ */
2587
+ setPdf417MacroFileID(value)
2588
+ {
2589
+ this.getJavaClass().setPdf417MacroFileIDSync(value);
2590
+ }
2591
+
2592
+ /**
2593
+ * Gets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
2594
+ */
2595
+ getPdf417MacroSegmentID()
2596
+ {
2597
+ return this.getJavaClass().getPdf417MacroSegmentIDSync();
2598
+ }
2599
+
2600
+ /**
2601
+ * Sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
2602
+ */
2603
+ setPdf417MacroSegmentID(value)
2604
+ {
2605
+ this.getJavaClass().setPdf417MacroSegmentIDSync(value);
2606
+ }
2607
+
2608
+ /**
2609
+ * Gets macro Pdf417 barcode segments count.
2610
+ */
2611
+ getPdf417MacroSegmentsCount()
2612
+ {
2613
+ return this.getJavaClass().getPdf417MacroSegmentsCountSync();
2614
+ }
2615
+
2616
+ /**
2617
+ * Sets macro Pdf417 barcode segments count.
2618
+ */
2619
+ setPdf417MacroSegmentsCount(value)
2620
+ {
2621
+ this.getJavaClass().setPdf417MacroSegmentsCountSync(value);
2622
+ }
2623
+
2624
+ /**
2625
+ * Gets macro Pdf417 barcode file name.
2626
+ */
2627
+ getPdf417MacroFileName()
2628
+ {
2629
+ return this.getJavaClass().getPdf417MacroFileNameSync();
2630
+ }
2631
+
2632
+ /**
2633
+ * Sets macro Pdf417 barcode file name.
2634
+ */
2635
+ setPdf417MacroFileName(value)
2636
+ {
2637
+ this.getJavaClass().setPdf417MacroFileNameSync(value);
2638
+ }
2639
+
2640
+ /**
2641
+ * Gets macro Pdf417 barcode time stamp.
2642
+ */
2643
+ getPdf417MacroTimeStamp()
2644
+ {
2645
+ return new Date(this.getJavaClass().getPdf417MacroTimeStampSync() * 1000);
2646
+ }
2647
+
2648
+ /**
2649
+ * Sets macro Pdf417 barcode time stamp.
2650
+ */
2651
+ setPdf417MacroTimeStamp(value)
2652
+ {
2653
+ this.getJavaClass().setPdf417MacroTimeStampSync((value.getTime() / 1000).toString());
2654
+ }
2655
+
2656
+ /**
2657
+ * Gets macro Pdf417 barcode sender name.
2658
+ */
2659
+ getPdf417MacroSender()
2660
+ {
2661
+ return this.getJavaClass().getPdf417MacroSenderSync();
2662
+ }
2663
+
2664
+ /**
2665
+ * Sets macro Pdf417 barcode sender name.
2666
+ */
2667
+ setPdf417MacroSender(value)
2668
+ {
2669
+ this.getJavaClass().setPdf417MacroSenderSync(value);
2670
+ }
2671
+
2672
+ /**
2673
+ * Gets macro Pdf417 barcode addressee name.
2674
+ */
2675
+ getPdf417MacroAddressee()
2676
+ {
2677
+ return this.getJavaClass().getPdf417MacroAddresseeSync();
2678
+ }
2679
+
2680
+ /**
2681
+ * Sets macro Pdf417 barcode addressee name.
2682
+ */
2683
+ setPdf417MacroAddressee(value)
2684
+ {
2685
+ this.getJavaClass().setPdf417MacroAddresseeSync(value);
2686
+ }
2687
+
2688
+ /**
2689
+ * Gets or sets macro Pdf417 file size.<br>
2690
+ * @return The file size field contains the size in bytes of the entire source file.
2691
+ */
2692
+ getPdf417MacroFileSize()
2693
+ {
2694
+ return this.getJavaClass().getPdf417MacroFileSizeSync();
2695
+ }
2696
+
2697
+ /**
2698
+ * Gets or sets macro Pdf417 file size.<br>
2699
+ * @param value The file size field contains the size in bytes of the entire source file.
2700
+ */
2701
+ setPdf417MacroFileSize(value)
2702
+ {
2703
+ this.getJavaClass().setPdf417MacroFileSizeSync(value);
2704
+ }
2705
+
2706
+ /**
2707
+ * Gets macro Pdf417 barcode checksum.<br>
2708
+ * @return The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial.
2709
+ */
2710
+ getPdf417MacroChecksum()
2711
+ {
2712
+ return this.getJavaClass().getPdf417MacroChecksumSync();
2713
+ }
2714
+
2715
+ /**
2716
+ * Sets macro Pdf417 barcode checksum.<br>
2717
+ * @param value The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial.
2718
+ */
2719
+ setPdf417MacroChecksum(value)
2720
+ {
2721
+ this.getJavaClass().setPdf417MacroChecksumSync(value);
2722
+ }
2723
+
2724
+ /**
2725
+ * Gets the encoding of codetext.<br>
2726
+ * Default value: UTF-8
2727
+ */
2728
+ getCodeTextEncoding()
2729
+ {
2730
+ return this.getJavaClass().getCodeTextEncodingSync();
2731
+ }
2732
+
2733
+ /**
2734
+ * Sets the encoding of codetext.<br>
2735
+ * Default value: UTF-8
2736
+ */
2737
+ setCodeTextEncoding(value)
2738
+ {
2739
+ this.getJavaClass().setCodeTextEncodingSync(value);
2740
+ }
2741
+
2742
+ /**
2743
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details<br>
2744
+ * about the used references for encoding the data in the symbol.<br>
2745
+ * Current implementation consists all well known charset encodings.
2746
+ */
2747
+ getPdf417ECIEncoding()
2748
+ {
2749
+ return this.getJavaClass().getPdf417ECIEncodingSync();
2750
+ }
2751
+
2752
+ /**
2753
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details<br>
2754
+ * about the used references for encoding the data in the symbol.<br>
2755
+ * Current implementation consists all well known charset encodings.
2756
+ */
2757
+ setPdf417ECIEncoding(value)
2758
+ {
2759
+ this.getJavaClass().setPdf417ECIEncodingSync(value);
2760
+ }
2761
+
2762
+ /**
2763
+ * Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
2764
+ */
2765
+ getPdf417MacroECIEncoding()
2766
+ {
2767
+ return this.getJavaClass().getPdf417MacroECIEncodingSync();
2768
+ }
2769
+
2770
+ /**
2771
+ * Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
2772
+ */
2773
+ setPdf417MacroECIEncoding(value)
2774
+ {
2775
+ this.getJavaClass().setPdf417MacroECIEncodingSync(value);
2776
+ }
2777
+
2778
+ /**
2779
+ * Used to instruct the reader to interpret the data contained within the symbol<br>
2780
+ * as programming for reader initialization<br>
2781
+ * @return boolean value
2782
+ */
2783
+ isReaderInitialization()
2784
+ {
2785
+ return this.getJavaClass().isReaderInitializationSync();
2786
+ }
2787
+
2788
+ /**
2789
+ * Used to instruct the reader to interpret the data contained within the symbol<br>
2790
+ * as programming for reader initialization<br>
2791
+ * @param value
2792
+ */
2793
+ setReaderInitialization(value)
2794
+ {
2795
+ this.getJavaClass().setReaderInitializationSync(value);
2796
+ }
2797
+
2798
+ /**
2799
+ * Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.
2800
+ */
2801
+ getCode128Emulation()
2802
+ {
2803
+ return this.getJavaClass().getCode128EmulationSync();
2804
+ }
2805
+
2806
+ /**
2807
+ * Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.
2808
+ */
2809
+ setCode128Emulation(value)
2810
+ {
2811
+ this.getJavaClass().setCode128EmulationSync(value);
2812
+ }
2813
+
2814
+ /**
2815
+ * Returns a human-readable string representation of this Pdf417Parameters.<br>
2816
+ * @return A string that represents this Pdf417Parameters.
2817
+ */
2818
+ toString()
2819
+ {
2820
+ return this.getJavaClass().toStringSync();
2821
+ }
2822
+ }
2823
+
2824
+ /**
2825
+ * Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
2826
+ */
2827
+ class SupplementParameters extends joint.BaseJavaClass
2828
+ {
2829
+
2830
+ _space;
2831
+
2832
+ constructor(javaClass)
2833
+ {
2834
+ super(javaClass);
2835
+ this.init();
2836
+ }
2837
+
2838
+ init()
2839
+ {
2840
+ this._space = new Unit(this.getJavaClass().getSupplementSpaceSync());
2841
+ }
2842
+
2843
+ /**
2844
+ * Supplement data following BarCode.
2845
+ */
2846
+ getSupplementData()
2847
+ {
2848
+ return this.getJavaClass().getSupplementDataSync();
2849
+ }
2850
+
2851
+ /**
2852
+ * Supplement data following BarCode.
2853
+ */
2854
+ setSupplementData(value)
2855
+ {
2856
+ this.getJavaClass().setSupplementDataSync(value);
2857
+ }
2858
+
2859
+ /**
2860
+ * Space between main the BarCode and supplement BarCode in Unit value.<br>
2861
+ * @exception IllegalArgumentException<br>
2862
+ * The Space parameter value is less than 0.
2863
+ */
2864
+ getSupplementSpace()
2865
+ {
2866
+ return this._space;
2867
+ }
2868
+
2869
+ /**
2870
+ * Returns a human-readable string representation of this SupplementParameters.<br>
2871
+ * @return A string that represents this SupplementParameters.
2872
+ */
2873
+ toString()
2874
+ {
2875
+ return this.getJavaClass().toStringSync();
2876
+ }
2877
+ }
2878
+
2879
+ /**
2880
+ * MaxiCode parameters.
2881
+ */
2882
+ class MaxiCodeParameters extends joint.BaseJavaClass
2883
+ {
2884
+
2885
+ constructor(javaClass)
2886
+ {
2887
+ super(javaClass);
2888
+ this.init();
2889
+ }
2890
+
2891
+ init()
2892
+ {
2893
+ }
2894
+
2895
+ /**
2896
+ * Gets a MaxiCode encode mode.
2897
+ */
2898
+ getMaxiCodeEncodeMode()
2899
+ {
2900
+ return this.getJavaClass().getMaxiCodeEncodeModeSync();
2901
+ }
2902
+
2903
+ /**
2904
+ * Sets a MaxiCode encode mode.
2905
+ */
2906
+ setMaxiCodeEncodeMode(value)
2907
+ {
2908
+ this.getJavaClass().setMaxiCodeEncodeModeSync(value);
2909
+ }
2910
+
2911
+ /**
2912
+ * Height/Width ratio of 2D BarCode module.
2913
+ */
2914
+ getAspectRatio()
2915
+ {
2916
+ return this.getJavaClass().getAspectRatioSync();
2917
+ }
2918
+
2919
+ /**
2920
+ * Height/Width ratio of 2D BarCode module.
2921
+ */
2922
+ setAspectRatio(value)
2923
+ {
2924
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
2925
+ }
2926
+
2927
+ /**
2928
+ * Returns a human-readable string representation of this MaxiCodeParameters.<br>
2929
+ * @return A string that represents this MaxiCodeParameters.
2930
+ */
2931
+ toString()
2932
+ {
2933
+ return this.getJavaClass().toStringSync();
2934
+ }
2935
+ }
2936
+
2937
+ /**
2938
+ * Aztec parameters.
2939
+ */
2940
+ class AztecParameters extends joint.BaseJavaClass
2941
+ {
2942
+
2943
+ constructor(javaClass)
2944
+ {
2945
+ super(javaClass);
2946
+ this.init();
2947
+ }
2948
+
2949
+ init()
2950
+ {
2951
+ }
2952
+
2953
+ /**
2954
+ * Level of error correction of Aztec types of barcode.<br>
2955
+ * Value should between 10 to 95.
2956
+ */
2957
+ getAztecErrorLevel()
2958
+ {
2959
+ return this.getJavaClass().getAztecErrorLevelSync();
2960
+ }
2961
+
2962
+ /**
2963
+ * Level of error correction of Aztec types of barcode.<br>
2964
+ * Value should between 10 to 95.
2965
+ */
2966
+ setAztecErrorLevel(value)
2967
+ {
2968
+ this.getJavaClass().setAztecErrorLevelSync(value);
2969
+ }
2970
+
2971
+ /**
2972
+ * Gets or sets a Aztec Symbol mode.<br>
2973
+ * Default value: AztecSymbolMode.AUTO.
2974
+ */
2975
+ getAztecSymbolMode()
2976
+ {
2977
+ return this.getJavaClass().getAztecSymbolModeSync();
2978
+ }
2979
+
2980
+ /**
2981
+ * Gets or sets a Aztec Symbol mode.<br>
2982
+ * Default value: AztecSymbolMode.AUTO.
2983
+ */
2984
+ setAztecSymbolMode(value)
2985
+ {
2986
+ this.getJavaClass().setAztecSymbolModeSync(value);
2987
+ }
2988
+
2989
+ /**
2990
+ * Height/Width ratio of 2D BarCode module.
2991
+ */
2992
+ getAspectRatio()
2993
+ {
2994
+ return this.getJavaClass().getAspectRatioSync();
2995
+ }
2996
+
2997
+ /**
2998
+ * Height/Width ratio of 2D BarCode module.
2999
+ */
3000
+ setAspectRatio(value)
3001
+ {
3002
+ this.getJavaClass().setAspectRatioSync(java.newFloat(value));
3003
+ }
3004
+
3005
+ /**
3006
+ * Gets the encoding of codetext.<br>
3007
+ * Default value: UTF-8
3008
+ */
3009
+ getCodeTextEncoding()
3010
+ {
3011
+ return this.getJavaClass().getCodeTextEncodingSync();
3012
+ }
3013
+
3014
+ /**
3015
+ * Sets the encoding of codetext.<br>
3016
+ * Default value: UTF-8
3017
+ */
3018
+ setCodeTextEncoding(value)
3019
+ {
3020
+ this.getJavaClass().setCodeTextEncodingSync(value);
3021
+ }
3022
+
3023
+ /**
3024
+ * Returns a human-readable string representation of this AztecParameters.<br>
3025
+ * @return string that represents this AztecParameters.
3026
+ */
3027
+ toString()
3028
+ {
3029
+ return this.getJavaClass().toStringSync();
3030
+ }
3031
+ }
3032
+
3033
+ /**
3034
+ * Codabar parameters.
3035
+ */
3036
+ class CodabarParameters extends joint.BaseJavaClass
3037
+ {
3038
+
3039
+ constructor(javaClass)
3040
+ {
3041
+ super(javaClass);
3042
+ this.init();
3043
+ }
3044
+
3045
+ init()
3046
+ {
3047
+ }
3048
+
3049
+ /**
3050
+ * Get the checksum algorithm for Codabar barcodes.<br>
3051
+ * Default value: CodabarChecksumMode.MOD_16.<br>
3052
+ * To enable checksum calculation set value EnableChecksum.YES to property EnableChecksum.<br>
3053
+ * See CodabarChecksumMode.
3054
+ */
3055
+ getCodabarChecksumMode()
3056
+ {
3057
+ return this.getJavaClass().getCodabarChecksumModeSync();
3058
+ }
3059
+
3060
+ /**
3061
+ * Set the checksum algorithm for Codabar barcodes.<br>
3062
+ * Default value: CodabarChecksumMode.MOD_16.<br>
3063
+ * To enable checksum calculation set value EnableChecksum.YES to property EnableChecksum.<br>
3064
+ * See CodabarChecksumMode.
3065
+ */
3066
+ setCodabarChecksumMode(value)
3067
+ {
3068
+ this.getJavaClass().setCodabarChecksumModeSync(value);
3069
+ }
3070
+
3071
+ /**
3072
+ * Start symbol (character) of Codabar symbology.<br>
3073
+ * Default value: CodabarSymbol.A
3074
+ */
3075
+ getCodabarStartSymbol()
3076
+ {
3077
+ return this.getJavaClass().getCodabarStartSymbolSync();
3078
+ }
3079
+
3080
+ /**
3081
+ * Start symbol (character) of Codabar symbology.<br>
3082
+ * Default value: CodabarSymbol.A
3083
+ */
3084
+ setCodabarStartSymbol(value)
3085
+ {
3086
+ this.getJavaClass().setCodabarStartSymbolSync(value);
3087
+ }
3088
+
3089
+ /**
3090
+ * Stop symbol (character) of Codabar symbology.<br>
3091
+ * Default value: CodabarSymbol.A
3092
+ */
3093
+ getCodabarStopSymbol()
3094
+ {
3095
+ return this.getJavaClass().getCodabarStopSymbolSync();
3096
+ }
3097
+
3098
+ /**
3099
+ * Stop symbol (character) of Codabar symbology.<br>
3100
+ * Default value: CodabarSymbol.A
3101
+ */
3102
+ setCodabarStopSymbol(value)
3103
+ {
3104
+ this.getJavaClass().setCodabarStopSymbolSync(value);
3105
+ }
3106
+
3107
+ /**
3108
+ * Returns a human-readable string representation of this CodabarParameters.<br>
3109
+ * @return A string that represents this CodabarParameters.
3110
+ */
3111
+ toString()
3112
+ {
3113
+ return this.getJavaClass().toStringSync();
3114
+ }
3115
+ }
3116
+
3117
+ /**
3118
+ * Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
3119
+ */
3120
+ class CouponParameters extends joint.BaseJavaClass
3121
+ {
3122
+
3123
+ _space;
3124
+
3125
+ constructor(javaClass)
3126
+ {
3127
+ super(javaClass);
3128
+ this.init();
3129
+ }
3130
+
3131
+ init()
3132
+ {
3133
+ this._space = new Unit(this.getJavaClass().getSupplementSpaceSync());
3134
+ }
3135
+
3136
+
3137
+ /**
3138
+ * Space between main the BarCode and supplement BarCode in Unit value.<br>
3139
+ * @exception IllegalArgumentException<br>
3140
+ * The Space parameter value is less than 0.
3141
+ */
3142
+ getSupplementSpace()
3143
+ {
3144
+ return this._space;
3145
+ }
3146
+
3147
+ /**
3148
+ * Space between main the BarCode and supplement BarCode in Unit value.<br>
3149
+ * @exception IllegalArgumentException<br>
3150
+ * The Space parameter value is less than 0.
3151
+ */
3152
+ setSupplementSpace(value)
3153
+ {
3154
+ this.getJavaClass().setSupplementSpaceSync(value.getJavaClass());
3155
+ this._space = value;
3156
+ }
3157
+
3158
+ /**
3159
+ * Returns a human-readable string representation of this CouponParameters.<br>
3160
+ * @return A string that represents this CouponParameters.
3161
+ */
3162
+ toString()
3163
+ {
3164
+ return this.getJavaClass().toStringSync();
3165
+ }
3166
+ }
3167
+
3168
+ /**
3169
+ * Defines a particular format for text, including font face, size, and style attributes<br>
3170
+ * where size in Unit value property.<br>
3171
+ * @example
3172
+ * //This sample shows how to create and save a BarCode image.
3173
+ * let generator = new BarcodeGenerator(EncodeTypes.CODE_128);
3174
+ * generator.getParameters().getCaptionAbove().setText("CAPTION ABOOVE");
3175
+ * generator.getParameters().getCaptionAbove().setVisible(true);
3176
+ * generator.getParameters().getCaptionAbove().getFont().setStyle(FontStyle.ITALIC);
3177
+ * generator.getParameters().getCaptionAbove().getFont().getSize().setPoint(25);
3178
+ */
3179
+ class FontUnit extends joint.BaseJavaClass
3180
+ {
3181
+ _size;
3182
+
3183
+ constructor(source)
3184
+ {
3185
+ super(FontUnit.initFontUnit(source));
3186
+ this.init();
3187
+ }
3188
+
3189
+ static initFontUnit(source)
3190
+ {
3191
+ if (source instanceof FontUnit)
3192
+ {
3193
+ return source.getJavaClass();
3194
+ }
3195
+ return source;
3196
+ }
3197
+
3198
+ init()
3199
+ {
3200
+ this._size = new Unit(this.getJavaClass().getSizeSync());
3201
+ }
3202
+
3203
+ /**
3204
+ * Gets the face name of this Font.
3205
+ */
3206
+ getFamilyName()
3207
+ {
3208
+ return this.getJavaClass().getFamilyNameSync();
3209
+ }
3210
+
3211
+ /**
3212
+ * Sets the face name of this Font.
3213
+ */
3214
+ setFamilyName(value)
3215
+ {
3216
+ this.getJavaClass().setFamilyNameSync(value);
3217
+ }
3218
+
3219
+ /**
3220
+ * Gets style information for this FontUnit.
3221
+ */
3222
+ getStyle()
3223
+ {
3224
+ return this.getJavaClass().getStyleSync();
3225
+ }
3226
+
3227
+ /**
3228
+ * Sets style information for this FontUnit.
3229
+ */
3230
+ setStyle(value)
3231
+ {
3232
+ if (!("number" === typeof value))
3233
+ {
3234
+ value = parseInt(value, 10);
3235
+ }
3236
+ this.getJavaClass().setStyleSync(value);
3237
+ }
3238
+
3239
+ /**
3240
+ * Gets size of this FontUnit in Unit value.<br>
3241
+ * @exception IllegalArgumentException<br>
3242
+ * The Size parameter value is less than or equal to 0.
3243
+ */
3244
+ getSize()
3245
+ {
3246
+ return this._size;
3247
+ }
3248
+ }
3249
+
3250
+ /**
3251
+ * <p>
3252
+ * Helper class for automatic codetext generation of the Extended Codetext Mode
3253
+ * </p>
3254
+ */
3255
+ class ExtCodetextBuilder extends joint.BaseJavaClass
3256
+ {
3257
+
3258
+ constructor(javaClass)
3259
+ {
3260
+ super(javaClass);
3261
+ this.init();
3262
+ }
3263
+
3264
+ /**
3265
+ * <p>
3266
+ * Clears extended codetext items
3267
+ * </p>
3268
+ */
3269
+ clear()
3270
+ {
3271
+ this.getJavaClass().clearSync();
3272
+ }
3273
+
3274
+ /**
3275
+ * <p>
3276
+ * Adds plain codetext to the extended codetext items
3277
+ * </p>
3278
+ *
3279
+ * @param codetext Codetext in unicode to add as extended codetext item
3280
+ */
3281
+ addPlainCodetext(codetext)
3282
+ {
3283
+ this.getJavaClass().addPlainCodetextSync(codetext);
3284
+ }
3285
+
3286
+ /**
3287
+ * <p>
3288
+ * Adds codetext with Extended Channel Identifier
3289
+ * </p>
3290
+ *
3291
+ * @param ECIEncoding Extended Channel Identifier
3292
+ * @param codetext Codetext in unicode to add as extended codetext item with Extended Channel Identifier
3293
+ */
3294
+ addECICodetext(ECIEncoding, codetext)
3295
+ {
3296
+ this.getJavaClass().addECICodetextSync(ECIEncoding, codetext);
3297
+ }
3298
+
3299
+ /**
3300
+ * <p>
3301
+ * Generate extended codetext from generation items list
3302
+ * </p>
3303
+ *
3304
+ * @return Return string of extended codetext
3305
+ */
3306
+ getExtendedCodetext()
3307
+ {
3308
+ return this.getJavaClass().getExtendedCodetextSync();
3309
+ }
3310
+
3311
+ }
3312
+
3313
+ /**
3314
+ * <p>Extended codetext generator for 2D QR barcodes for ExtendedCodetext Mode of QREncodeMode</p>
3315
+ * <p>Use Display2DText property of BarCodeBuilder to set visible text to removing managing characters.</p>
3316
+ * @example
3317
+ * //Example how to generate FNC1 first position for Extended Mode
3318
+ * //create codetext
3319
+ * QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder();
3320
+ * lTextBuilder.addFNC1FirstPosition();
3321
+ * lTextBuilder.addPlainCodetext("000%89%%0");
3322
+ * lTextBuilder.addFNC1GroupSeparator();
3323
+ * lTextBuilder.addPlainCodetext("12345&lt;FNC1&gt;");
3324
+ * //generate codetext
3325
+ * String lCodetext = lTextBuilder.getExtendedCodetext();
3326
+ *
3327
+ * @example
3328
+ * //Example how to generate FNC1 second position for Extended Mode
3329
+ * //create codetext
3330
+ * QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder();
3331
+ * lTextBuilder.addFNC1SecondPosition("12");
3332
+ * lTextBuilder.addPlainCodetext("TRUE3456");
3333
+ * //generate codetext
3334
+ * String lCodetext = lTextBuilder.getExtendedCodetext();
3335
+ *
3336
+ * @example
3337
+ * //Example how to generate multi ECI mode for Extended Mode
3338
+ * //create codetext
3339
+ * QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder();
3340
+ * lTextBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
3341
+ * lTextBuilder.addECICodetext(ECIEncodings.UTF8, "Right");
3342
+ * lTextBuilder.addECICodetext(ECIEncodings.UTF16BE, "Power");
3343
+ * lTextBuilder.addPlainCodetext("t\\e\\\\st");
3344
+ * //generate codetext
3345
+ * String lCodetext = lTextBuilder.getExtendedCodetext();
3346
+ *
3347
+ *
3348
+ */
3349
+ class QrExtCodetextBuilder extends ExtCodetextBuilder
3350
+ {
3351
+ static get javaClassName()
3352
+ {
3353
+ return "com.aspose.mw.barcode.MwQrExtCodetextBuilder";
3354
+ }
3355
+
3356
+ constructor()
3357
+ {
3358
+ super(new java.import(QrExtCodetextBuilder.javaClassName)());
3359
+ this.init();
3360
+ }
3361
+
3362
+
3363
+ init()
3364
+ {
3365
+ }
3366
+
3367
+ /**
3368
+ * <p>
3369
+ * Adds FNC1 in first position to the extended codetext items
3370
+ * </p>
3371
+ */
3372
+ addFNC1FirstPosition()
3373
+ {
3374
+ this.getJavaClass().addFNC1FirstPositionSync();
3375
+ }
3376
+
3377
+ /**
3378
+ * <p>
3379
+ * Adds FNC1 in second position to the extended codetext items
3380
+ * </p>
3381
+ *
3382
+ * @param codetext Value of the FNC1 in the second position
3383
+ */
3384
+ addFNC1SecondPosition(codetext)
3385
+ {
3386
+ this.getJavaClass().addFNC1SecondPositionSync(codetext);
3387
+ }
3388
+
3389
+ /**
3390
+ * <p>
3391
+ * Adds Group Separator (GS - '\\u001D') to the extended codetext items
3392
+ * </p>
3393
+ */
3394
+ addFNC1GroupSeparator()
3395
+ {
3396
+ this.getJavaClass().addFNC1GroupSeparatorSync();
3397
+ }
3398
+
3399
+ /**
3400
+ * <p>
3401
+ * Generates Extended codetext from the extended codetext list.
3402
+ * </p>
3403
+ *
3404
+ * @return Extended codetext as string
3405
+ */
3406
+ getExtendedCodetext()
3407
+ {
3408
+ return this.getJavaClass().getExtendedCodetextSync();
3409
+ }
3410
+
3411
+ }
3412
+
3413
+ /**
3414
+ * QR structured append parameters.
3415
+ */
3416
+ class QrStructuredAppendParameters extends joint.BaseJavaClass
3417
+ {
3418
+ init()
3419
+ {
3420
+ // TODO: Implement init() method.
3421
+ }
3422
+
3423
+ constructor(javaClass)
3424
+ {
3425
+ super(javaClass);
3426
+ this.init();
3427
+ }
3428
+
3429
+ /**
3430
+ * Gets the QR structured append mode parity data.
3431
+ */
3432
+ getParityByte()
3433
+ {
3434
+ return this.getJavaClass().getParityByteSync();
3435
+ }
3436
+
3437
+ /**
3438
+ * Sets the QR structured append mode parity data.
3439
+ */
3440
+ setParityByte(value)
3441
+ {
3442
+ this.getJavaClass().setParityByteSync(value);
3443
+ }
3444
+
3445
+ /**
3446
+ * Gets the index of the QR structured append mode barcode. Index starts from 0.
3447
+ */
3448
+ getSequenceIndicator()
3449
+ {
3450
+ return this.getJavaClass().getSequenceIndicatorSync();
3451
+ }
3452
+
3453
+ /**
3454
+ * Sets the index of the QR structured append mode barcode. Index starts from 0.
3455
+ */
3456
+ setSequenceIndicator(value)
3457
+ {
3458
+ this.getJavaClass().setSequenceIndicatorSync(value);
3459
+ }
3460
+
3461
+ /**
3462
+ * Gets the QR structured append mode barcodes quantity. Max value is 16.
3463
+ */
3464
+ getTotalCount()
3465
+ {
3466
+ return this.getJavaClass().getTotalCountSync();
3467
+ }
3468
+
3469
+ /**
3470
+ * Sets the QR structured append mode barcodes quantity. Max value is 16.
3471
+ */
3472
+ setTotalCount(value)
3473
+ {
3474
+ this.getJavaClass().setTotalCountSync(value);
3475
+ }
3476
+ }
3477
+
3478
+ /**
3479
+ * BarcodeClassifications EncodeTypes classification
3480
+ * @enum
3481
+ */
3482
+ BarcodeClassifications =
3483
+ {
3484
+ /**
3485
+ * Unspecified classification
3486
+ */
3487
+ NONE: 0,
3488
+
3489
+ /**
3490
+ * Specifies 1D-barcode
3491
+ */
3492
+ TYPE_1D: 1,
3493
+
3494
+ /**
3495
+ * Specifies 2D-barcode
3496
+ */
3497
+ TYPE_2D: 2,
3498
+
3499
+ /**
3500
+ * Specifies POSTAL-barcode
3501
+ */
3502
+ POSTAL: 3,
3503
+
3504
+ /**
3505
+ * Specifies DataBar-barcode
3506
+ */
3507
+ DATABAR: 4,
3508
+
3509
+ /**
3510
+ * Specifies COUPON-barcode
3511
+ */
3512
+ COUPON: 5
3513
+ };
3514
+
3515
+ /**
3516
+ * FontStyle classification
3517
+ * @enum
3518
+ */
3519
+ FontStyle =
3520
+ {
3521
+ BOLD: 1,
3522
+ ITALIC: 2,
3523
+ REGULAR: 0,
3524
+ STRIKEOUT: 8,
3525
+ UNDERLINE: 4
3526
+ };
3527
+
3528
+ /**
3529
+ * Specifies the start or stop symbol of the Codabar barcode specification.
3530
+ * @enum
3531
+ */
3532
+ CodabarSymbol =
3533
+ {
3534
+
3535
+ /**
3536
+ * Specifies character A as the start or stop symbol of the Codabar barcode specification.
3537
+ */
3538
+ A: 65,
3539
+ /**
3540
+ * Specifies character B as the start or stop symbol of the Codabar barcode specification.
3541
+ */
3542
+ B: 66,
3543
+ /**
3544
+ * Specifies character C as the start or stop symbol of the Codabar barcode specification.
3545
+ */
3546
+ C: 67,
3547
+ /**
3548
+ * Specifies character D as the start or stop symbol of the Codabar barcode specification.
3549
+ */
3550
+ D: 68,
3551
+ };
3552
+
3553
+ /**
3554
+ * DataMatrix encoder's encoding mode, default to AUTO
3555
+ * @enum
3556
+ */
3557
+ DataMatrixEncodeMode =
3558
+ {
3559
+
3560
+ /**
3561
+ * Automatically pick up the best encode mode for datamatrix encoding
3562
+ */
3563
+ AUTO: 0,
3564
+ /**
3565
+ * Encodes one alphanumeric or two numeric characters per byte
3566
+ */
3567
+ ASCII: 1,
3568
+ /**
3569
+ * Encode 8 bit values
3570
+ */
3571
+ FULL: 6,
3572
+ /**
3573
+ * Encode with the encoding specified in BarCodeGenerator.CodeTextEncoding
3574
+ */
3575
+ CUSTOM: 7,
3576
+
3577
+
3578
+ /**
3579
+ * Uses C40 encoding. Encodes Upper-case alphanumeric, Lower case and special characters
3580
+ */
3581
+ C40: 8,
3582
+
3583
+ /**
3584
+ * UUses TEXT encoding. Encodes Lower-case alphanumeric, Upper case and special characters
3585
+ */
3586
+ TEXT: 9,
3587
+
3588
+ /**
3589
+ * Uses EDIFACT encoding. Uses six bits per character, encodes digits, upper-case letters, and many punctuation marks, but has no support for lower-case letters.
3590
+ */
3591
+ EDIFACT: 10,
3592
+
3593
+ /**
3594
+ * Uses ANSI X12 encoding.
3595
+ */
3596
+ ANSIX12: 11,
3597
+
3598
+ /**
3599
+ * ExtendedCodetext mode allows to manually switch encodation schemes in codetext.
3600
+ * Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto.
3601
+ * Extended codetext example: @"\ansix12:ANSIX12TEXT\ascii:backslash must be \\ doubled\edifact:EdifactEncodedText"
3602
+ * All backslashes (\) must be doubled in text.
3603
+ *
3604
+ * @example
3605
+ * //This sample shows how to do codetext in Extended Mode.
3606
+ *
3607
+ * $generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
3608
+ * $generator->setCodeText("\\ansix12:ANSIX12TEXT\\ascii:backslash must be \\\\ doubled\\edifact:EdifactEncodedText");
3609
+ * $generator->getParameters()->getBarcode()->getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT);
3610
+ * $generator->getParameters()->getBarcode()->getCodeTextParameters().setTwoDDisplayText("My Text");
3611
+ * $generator->save("test.png");
3612
+ */
3613
+ EXTENDED_CODETEXT: 12
3614
+ };
3615
+
3616
+ /**
3617
+ * Specifies the style of dashed border lines.
3618
+ * @enum
3619
+ */
3620
+ BorderDashStyle =
3621
+ {
3622
+ /**
3623
+ * Specifies a solid line.
3624
+ */
3625
+ SOLID: 0, //DashStyle.Solid
3626
+ /**
3627
+ * Specifies a line consisting of dashes.
3628
+ */
3629
+ DASH: 1, // DashStyle.Dash
3630
+ /**
3631
+ * Specifies a line consisting of dots.
3632
+ */
3633
+ DOT: 2, //(DashStyle.Dot
3634
+
3635
+ /**
3636
+ * Specifies a line consisting of a repeating pattern of dash-dot.
3637
+ */
3638
+ DASH_DOT: 3, //DashStyle.DashDot
3639
+ /**
3640
+ * Specifies a line consisting of a repeating pattern of dash-dot-dot.
3641
+ */
3642
+ DASH_DOT_DOT: 4, //DashStyle.DashDotDot
3643
+ };
3644
+
3645
+ /**
3646
+ * ITF14 barcode's border type
3647
+ * @enum
3648
+ */
3649
+ ITF14BorderType =
3650
+ {
3651
+ /**
3652
+ * NO border enclosing the barcode
3653
+ */
3654
+ NONE: 0,
3655
+ /**
3656
+ * FRAME enclosing the barcode
3657
+ */
3658
+ FRAME: 1,
3659
+ /**
3660
+ * Tow horizontal bars enclosing the barcode
3661
+ */
3662
+ BAR: 2,
3663
+ /**
3664
+ * FRAME enclosing the barcode
3665
+ */
3666
+ FRAME_OUT: 3,
3667
+ /**
3668
+ * Tow horizontal bars enclosing the barcode
3669
+ */
3670
+ BAR_OUT: 4,
3671
+ };
3672
+
3673
+ /**
3674
+ * Encoding mode for QR barcodes. It is recommended to Use AUTO with CodeTextEncoding = Encoding.UTF8 for latin symbols or digits and UTF_8_BOM for unicode symbols.
3675
+ * @example
3676
+ * //Example how to use ECI encoding
3677
+ * BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR);
3678
+ * generator.setCodeText("12345TEXT");
3679
+ * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ECI_ENCODING);
3680
+ * generator.getParameters().getBarcode().getQR().setQrEncodeType(QREncodeType.FORCE_QR);
3681
+ * generator.getParameters().getBarcode().getQR().setQrECIEncoding(ECIEncodings.UTF8);
3682
+ * generator.save("test.png");
3683
+ *
3684
+ * @example
3685
+ * //Example how to use FNC1 first position in Extended Mode
3686
+ * QrExtCodetextBuilder textBuilder = new QrExtCodetextBuilder();
3687
+ * textBuilder.addPlainCodetext("000%89%%0");
3688
+ * textBuilder.addFNC1GroupSeparator();
3689
+ * textBuilder.addPlainCodetext("12345&lt;FNC1&gt;");
3690
+ * //generate barcode
3691
+ * BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR);
3692
+ * generator.setCodeText(textBuilder.getExtendedCodetext());
3693
+ * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
3694
+ * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
3695
+ * generator.save("d:/test.png");
3696
+ *
3697
+ * @example
3698
+ * // This sample shows how to use FNC1 second position in Extended Mode.
3699
+ * //create codetext
3700
+ * QrExtCodetextBuilder textBuilder = new QrExtCodetextBuilder();
3701
+ * textBuilder.addFNC1SecondPosition("12");
3702
+ * textBuilder.addPlainCodetext("TRUE3456");
3703
+ * //generate barcode
3704
+ * BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR);
3705
+ * generator.setCodeText(textBuilder.getExtendedCodetext());
3706
+ * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
3707
+ * generator.save("d:/test.png");
3708
+ *
3709
+ * @example
3710
+ * //This sample shows how to use multi ECI mode in Extended Mode.
3711
+ * //create codetext
3712
+ * QrExtCodetextBuilder textBuilder = new QrExtCodetextBuilder();
3713
+ * textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
3714
+ * textBuilder.addECICodetext(ECIEncodings.UTF8, "Right");
3715
+ * textBuilder.addECICodetext(ECIEncodings.UTF16BE, "Power");
3716
+ * textBuilder.addPlainCodetext("t\e\\st");
3717
+ * //generate barcode
3718
+ * BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR);
3719
+ * generator.setCodeText(textBuilder.getExtendedCodetext());
3720
+ * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
3721
+ * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
3722
+ * generator.save("d:/test.png");
3723
+ * @enum
3724
+ */
3725
+ QREncodeMode =
3726
+ {
3727
+ /**
3728
+ * Encode codetext as is non-unicode charset. <br>
3729
+ * If there is any unicode character, <br>
3730
+ * the codetext will be encoded with value which is set in CodeTextEncoding.
3731
+ */
3732
+ AUTO: 0,
3733
+ /**
3734
+ * Encode codetext as plain bytes. If it detects any unicode character, the character will be encoded as two bytes, lower byte first.
3735
+ */
3736
+ BYTES: 1,
3737
+ //https://en.wikipedia.org/wiki/Byte_order_mark
3738
+ /**
3739
+ * Encode codetext with UTF8 encoding with first ByteOfMark character.
3740
+ */
3741
+ UTF_8_BOM: 2,
3742
+ /**
3743
+ * Encode codetext with UTF8 encoding with first ByteOfMark character. It can be problems with some barcode scaners.
3744
+ */
3745
+ UTF_16_BEBOM: 3,
3746
+
3747
+ /**
3748
+ * Encode codetext with value set in the ECI_ENCODING property. It can be problems with some old (pre 2006) barcode scaners.
3749
+ */
3750
+ ECI_ENCODING: 4,
3751
+
3752
+ /**
3753
+ * <p>
3754
+ * <p>Extended Channel mode which supports FNC1 first position, FNC1 second position and multi ECI modes.</p>
3755
+ * <p>It is better to use QrExtCodetextBuilder for extended codetext generation.</p>
3756
+ * <p>Use Display2DText property to set visible text to removing managing characters.</p>
3757
+ * <p>Encoding Principles:</p>
3758
+ * <p>All symbols "\" must be doubled "\\" in the codetext.</p>
3759
+ * <p>FNC1 in first position is set in codetext as as "&lt;FNC1&gt;"</p>
3760
+ * <p>FNC1 in second position is set in codetext as as "&lt;FNC1(value)&gt;". The value must be single symbols (a-z, A-Z) or digits from 0 to 99.</p>
3761
+ * <p>Group Separator for FNC1 modes is set as 0x1D character '\\u001D' </p>
3762
+ * <p> If you need to insert "&lt;FNC1&gt;" string into barcode write it as "&lt;\FNC1&gt;" </p>
3763
+ * <p>ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier</p>
3764
+ * <p>TO disable current ECI mode and convert to default JIS8 mode zero mode ECI indetifier is set. "\000000"</p>
3765
+ * <p>All unicode characters after ECI identifier are automatically encoded into correct character codeset.</p>
3766
+ * </p>
3767
+ */
3768
+ EXTENDED_CODETEXT: 5
3769
+
3770
+ };
3771
+
3772
+
3773
+ /**
3774
+ * Specify the type of the ECC to encode.
3775
+ * @enum
3776
+ */
3777
+ DataMatrixEccType =
3778
+ {
3779
+ /**
3780
+ * Specifies that encoded Ecc type is defined by default Reed-Solomon error correction or ECC 200.
3781
+ */
3782
+ ECC_AUTO: 0,
3783
+ /**
3784
+ * Specifies that encoded Ecc type is defined ECC 000.
3785
+ */
3786
+ ECC_000: 1,
3787
+ /**
3788
+ * Specifies that encoded Ecc type is defined ECC 050.
3789
+ */
3790
+ ECC_050: 2,
3791
+ /**
3792
+ * Specifies that encoded Ecc type is defined ECC 080.
3793
+ */
3794
+ ECC_080: 3,
3795
+ /**
3796
+ * Specifies that encoded Ecc type is defined ECC 100.
3797
+ */
3798
+ ECC_100: 4,
3799
+ /**
3800
+ * Specifies that encoded Ecc type is defined ECC 140.
3801
+ */
3802
+ ECC_140: 5,
3803
+ /**
3804
+ * Specifies that encoded Ecc type is defined ECC 200. Recommended to use.
3805
+ */
3806
+ ECC_200: 6
3807
+ };
3808
+
3809
+ /**
3810
+ * Version of QR Code.
3811
+ * From Version1 to Version40 for QR code and from M1 to M4 for MicroQr.
3812
+ * @enum
3813
+ */
3814
+ QRVersion =
3815
+ {
3816
+ /**
3817
+ * Specifies to automatically pick up the best version for QR.
3818
+ * This is default value.
3819
+ */
3820
+ AUTO: 0,
3821
+
3822
+ /**
3823
+ * Specifies version 1 with 21 x 21 modules.
3824
+ */
3825
+ VERSION_01: 1,
3826
+
3827
+ /**
3828
+ * Specifies version 2 with 25 x 25 modules.
3829
+ */
3830
+ VERSION_02: 2,
3831
+
3832
+ /**
3833
+ * Specifies version 3 with 29 x 29 modules.
3834
+ */
3835
+ VERSION_03: 3,
3836
+
3837
+ /**
3838
+ * Specifies version 4 with 33 x 33 modules.
3839
+ */
3840
+ VERSION_04: 4,
3841
+
3842
+ /**
3843
+ * Specifies version 5 with 37 x 37 modules.
3844
+ */
3845
+ VERSION_05: 5,
3846
+
3847
+ /**
3848
+ * Specifies version 6 with 41 x 41 modules.
3849
+ */
3850
+ VERSION_06: 6,
3851
+
3852
+ /**
3853
+ * Specifies version 7 with 45 x 45 modules.
3854
+ */
3855
+ VERSION_07: 7,
3856
+
3857
+ /**
3858
+ * Specifies version 8 with 49 x 49 modules.
3859
+ */
3860
+ VERSION_08: 8,
3861
+
3862
+ /**
3863
+ * Specifies version 9 with 53 x 53 modules.
3864
+ */
3865
+ VERSION_09: 9,
3866
+
3867
+
3868
+ /**
3869
+ * Specifies version 10 with 57 x 57 modules.
3870
+ */
3871
+ VERSION_10: 10,
3872
+
3873
+ /**
3874
+ * Specifies version 11 with 61 x 61 modules.
3875
+ */
3876
+ VERSION_11: 11,
3877
+
3878
+ /**
3879
+ * Specifies version 12 with 65 x 65 modules.
3880
+ */
3881
+ VERSION_12: 12,
3882
+
3883
+ /**
3884
+ * Specifies version 13 with 69 x 69 modules.
3885
+ */
3886
+ VERSION_13: 13,
3887
+
3888
+ /**
3889
+ * Specifies version 14 with 73 x 73 modules.
3890
+ */
3891
+ VERSION_14: 14,
3892
+
3893
+ /**
3894
+ * Specifies version 15 with 77 x 77 modules.
3895
+ */
3896
+ VERSION_15: 15,
3897
+
3898
+ /**
3899
+ * Specifies version 16 with 81 x 81 modules.
3900
+ */
3901
+ VERSION_16: 16,
3902
+
3903
+ /**
3904
+ * Specifies version 17 with 85 x 85 modules.
3905
+ */
3906
+ VERSION_17: 17,
3907
+
3908
+ /**
3909
+ * Specifies version 18 with 89 x 89 modules.
3910
+ */
3911
+ VERSION_18: 18,
3912
+
3913
+ /**
3914
+ * Specifies version 19 with 93 x 93 modules.
3915
+ */
3916
+ VERSION_19: 19,
3917
+
3918
+ /**
3919
+ * Specifies version 20 with 97 x 97 modules.
3920
+ */
3921
+ VERSION_20: 20,
3922
+
3923
+ /**
3924
+ * Specifies version 21 with 101 x 101 modules.
3925
+ */
3926
+ VERSION_21: 21,
3927
+
3928
+ /**
3929
+ * Specifies version 22 with 105 x 105 modules.
3930
+ */
3931
+ VERSION_22: 22,
3932
+
3933
+ /**
3934
+ * Specifies version 23 with 109 x 109 modules.
3935
+ */
3936
+ VERSION_23: 23,
3937
+
3938
+ /**
3939
+ * Specifies version 24 with 113 x 113 modules.
3940
+ */
3941
+ VERSION_24: 24,
3942
+
3943
+ /**
3944
+ * Specifies version 25 with 117 x 117 modules.
3945
+ */
3946
+ VERSION_25: 25,
3947
+
3948
+
3949
+ /**
3950
+ * Specifies version 26 with 121 x 121 modules.
3951
+ */
3952
+ VERSION_26: 26,
3953
+
3954
+ /**
3955
+ * Specifies version 27 with 125 x 125 modules.
3956
+ */
3957
+ VERSION_27: 27,
3958
+
3959
+ /**
3960
+ * Specifies version 28 with 129 x 129 modules.
3961
+ */
3962
+ VERSION_28: 28,
3963
+
3964
+ /**
3965
+ * Specifies version 29 with 133 x 133 modules.
3966
+ */
3967
+ VERSION_29: 29,
3968
+
3969
+ /**
3970
+ * Specifies version 30 with 137 x 137 modules.
3971
+ */
3972
+ VERSION_30: 30,
3973
+
3974
+ /**
3975
+ * Specifies version 31 with 141 x 141 modules.
3976
+ */
3977
+ VERSION_31: 31,
3978
+
3979
+ /**
3980
+ * Specifies version 32 with 145 x 145 modules.
3981
+ */
3982
+ VERSION_32: 32,
3983
+
3984
+ /**
3985
+ * Specifies version 33 with 149 x 149 modules.
3986
+ */
3987
+ VERSION_33: 33,
3988
+
3989
+ /**
3990
+ * Specifies version 34 with 153 x 153 modules.
3991
+ */
3992
+ VERSION_34: 34,
3993
+
3994
+ /**
3995
+ * Specifies version 35 with 157 x 157 modules.
3996
+ */
3997
+ VERSION_35: 35,
3998
+
3999
+ /**
4000
+ * Specifies version 36 with 161 x 161 modules.
4001
+ */
4002
+ VERSION_36: 36,
4003
+
4004
+ /**
4005
+ * Specifies version 37 with 165 x 165 modules.
4006
+ */
4007
+ VERSION_37: 37,
4008
+
4009
+ /**
4010
+ * Specifies version 38 with 169 x 169 modules.
4011
+ */
4012
+ VERSION_38: 38,
4013
+
4014
+ /**
4015
+ * Specifies version 39 with 173 x 173 modules.
4016
+ */
4017
+ VERSION_39: 39,
4018
+
4019
+ /**
4020
+ * Specifies version 40 with 177 x 177 modules.
4021
+ */
4022
+ VERSION_40: 40,
4023
+
4024
+ /**
4025
+ * Specifies version M1 for Micro QR with 11 x 11 modules.
4026
+ */
4027
+ VERSION_M1: 101,
4028
+
4029
+ /**
4030
+ * Specifies version M2 for Micro QR with 13 x 13 modules.
4031
+ */
4032
+ VERSION_M2: 102,
4033
+
4034
+ /**
4035
+ * Specifies version M3 for Micro QR with 15 x 15 modules.
4036
+ */
4037
+ VERSION_M3: 103,
4038
+
4039
+ /**
4040
+ * Specifies version M4 for Micro QR with 17 x 17 modules.
4041
+ */
4042
+ VERSION_M4: 104,
4043
+ };
4044
+
4045
+ /**
4046
+ * Specifies the Aztec symbol mode.
4047
+ * @example
4048
+ * let generator = new BarcodeGenerator(EncodeTypes.AZTEC);
4049
+ * generator.setCodeText("125");
4050
+ * generator.getParameters().getBarcode().getAztec().setAztecSymbolMode(AztecSymbolMode.RUNE);
4051
+ * generator.save("test.png", BarCodeImageFormat.PNG);
4052
+ * @enum
4053
+ */
4054
+ AztecSymbolMode =
4055
+ {
4056
+ /**
4057
+ * Specifies to automatically pick up the best symbol (COMPACT or FULL-range) for Aztec.
4058
+ * This is default value.
4059
+ * @enum
4060
+ */
4061
+ AUTO: 0,
4062
+ /**
4063
+ * Specifies the COMPACT symbol for Aztec.
4064
+ * Aztec COMPACT symbol permits only 1, 2, 3 or 4 layers.
4065
+ */
4066
+ COMPACT: 1,
4067
+ /**
4068
+ * Specifies the FULL-range symbol for Aztec.
4069
+ * Aztec FULL-range symbol permits from 1 to 32 layers.
4070
+ */
4071
+ FULL_RANGE: 2,
4072
+ /**
4073
+ * Specifies the RUNE symbol for Aztec.
4074
+ * Aztec Runes are a series of small but distinct machine-readable marks. It permits only number value from 0 to 255.
4075
+ */
4076
+ RUNE: 3
4077
+ };
4078
+
4079
+ /**
4080
+ * pdf417 barcode's error correction level, from level 0 to level 9, level 0 means no error correction, level 9 means best error correction
4081
+ * @enum
4082
+ */
4083
+ Pdf417ErrorLevel =
4084
+ {
4085
+
4086
+ /**
4087
+ * level = 0.
4088
+ */
4089
+ LEVEL_0: 0,
4090
+ /**
4091
+ * level = 1.
4092
+ */
4093
+ LEVEL_1: 1,
4094
+ /**
4095
+ * level = 2.
4096
+ */
4097
+ LEVEL_2: 2,
4098
+ /**
4099
+ * level = 3.
4100
+ */
4101
+ LEVEL_3: 3,
4102
+ /**
4103
+ * level = 4.
4104
+ */
4105
+ LEVEL_4: 4,
4106
+ /**
4107
+ * level = 5.
4108
+ */
4109
+ LEVEL_5: 5,
4110
+ /**
4111
+ * level = 6.
4112
+ */
4113
+ LEVEL_6: 6,
4114
+ /**
4115
+ * level = 7.
4116
+ */
4117
+ LEVEL_7: 7,
4118
+ /**
4119
+ * level = 8.
4120
+ */
4121
+ LEVEL_8: 8
4122
+ };
4123
+
4124
+
4125
+ /**
4126
+ * Pdf417 barcode's compation mode
4127
+ * @enum
4128
+ */
4129
+ Pdf417CompactionMode =
4130
+ {
4131
+ /**
4132
+ * auto detect compation mode
4133
+ */
4134
+ AUTO: 0,
4135
+ /**
4136
+ * text compaction
4137
+ */
4138
+ TEXT: 1,
4139
+ /**
4140
+ * numeric compaction mode
4141
+ */
4142
+ NUMERIC: 2,
4143
+ /**
4144
+ * binary compaction mode
4145
+ */
4146
+ BINARY: 3
4147
+ };
4148
+
4149
+ /**
4150
+ * Level of Reed-Solomon error correction. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H.
4151
+ * @enum
4152
+ */
4153
+ QRErrorLevel =
4154
+ {
4155
+ /**
4156
+ * Allows recovery of 7% of the code text
4157
+ */
4158
+ LEVEL_L: 0,
4159
+ /**
4160
+ * Allows recovery of 15% of the code text
4161
+ */
4162
+ LEVEL_M: 1,
4163
+ /**
4164
+ * Allows recovery of 25% of the code text
4165
+ */
4166
+ LEVEL_Q: 2,
4167
+ /**
4168
+ * Allows recovery of 30% of the code text
4169
+ */
4170
+ LEVEL_H: 3
4171
+ };
4172
+
4173
+
4174
+ /**
4175
+ * QR / MicroQR selector mode. Select FORCE_QR for standard QR symbols, AUTO for MicroQR.
4176
+ * FORCE_MICRO_QR is used for strongly MicroQR symbol generation if it is possible.
4177
+ * @enum
4178
+ */
4179
+ QREncodeType =
4180
+ {
4181
+ /**
4182
+ * Mode starts barcode version negotiation from MicroQR V1
4183
+ */
4184
+ AUTO: 0,
4185
+ /**
4186
+ * Mode starts barcode version negotiation from QR V1
4187
+ */
4188
+ FORCE_QR: 1,
4189
+ /**
4190
+ * Mode starts barcode version negotiation from from MicroQR V1 to V4. If data cannot be encoded into MicroQR, exception is thrown.
4191
+ */
4192
+ FORCE_MICRO_QR: 2
4193
+ };
4194
+
4195
+ /**
4196
+ * Specifies the checksum algorithm for Codabar
4197
+ * @enum
4198
+ */
4199
+ CodabarChecksumMode =
4200
+ {
4201
+
4202
+ /**
4203
+ * Specifies Mod 10 algorithm for Codabar.
4204
+ */
4205
+ MOD_10: 0,
4206
+
4207
+ /**
4208
+ * Specifies Mod 16 algorithm for Codabar (recomended AIIM).
4209
+ */
4210
+ MOD_16: 1
4211
+ };
4212
+
4213
+ /**
4214
+ * Codetext location
4215
+ * @enum
4216
+ */
4217
+ CodeLocation =
4218
+ {
4219
+ /**
4220
+ * Codetext below barcode.
4221
+ */
4222
+ BELOW: 0,
4223
+
4224
+ /**
4225
+ * Codetext above barcode.
4226
+ */
4227
+ ABOVE: 1,
4228
+
4229
+ /**
4230
+ * Hide codetext.
4231
+ */
4232
+ NONE: 2
4233
+ };
4234
+
4235
+
4236
+ /**
4237
+ * Font size mode.
4238
+ * @enum
4239
+ */
4240
+ FontMode =
4241
+ {
4242
+ /**
4243
+ * Automatically calculate Font size based on barcode size.
4244
+ */
4245
+ AUTO: 0,
4246
+
4247
+ /**
4248
+ * Use Font sized defined by user.
4249
+ */
4250
+ MANUAL: 1
4251
+ };
4252
+
4253
+ /**
4254
+ * Text alignment.
4255
+ * @enum
4256
+ */
4257
+ TextAlignment =
4258
+ {
4259
+ /**
4260
+ * Left position.
4261
+ */
4262
+ LEFT: 0,
4263
+
4264
+ /**
4265
+ * Center position.
4266
+ */
4267
+ CENTER: 1,
4268
+
4269
+ /**
4270
+ * Right position.
4271
+ */
4272
+ RIGHT: 2
4273
+ };
4274
+
4275
+ /**
4276
+ * Specifies the different types of automatic sizing modes.<br>
4277
+ * Default value is AutoSizeMode.NONE.
4278
+ * @example
4279
+ * //This sample shows how to create and save a BarCode image:
4280
+ * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
4281
+ * generator.setAutoSizeMode(AutoSizeMode.NEAREST);
4282
+ * generator.getBarCodeWidth().setMillimeters(50);
4283
+ * generator.getBarCodeHeight().setInches(1.3f);
4284
+ * generator.save("test.png");
4285
+ *
4286
+ * @enum
4287
+ */
4288
+ AutoSizeMode =
4289
+ {
4290
+ /**
4291
+ * Automatic resizing is disabled. Default value.
4292
+ */
4293
+ NONE: 0, //or CUSTOM, or DEFAULT
4294
+
4295
+ /**
4296
+ * Barcode resizes to nearest lowest possible size
4297
+ * which are specified by BarCodeWidth and BarCodeHeight properties.
4298
+ */
4299
+ NEAREST: 1,
4300
+
4301
+ /**
4302
+ * Resizes barcode to specified size with little scaling
4303
+ * but it can be little damaged in some cases
4304
+ * because using interpolation for scaling.
4305
+ * Size can be specified by BarcodeGenerator.BarCodeWidth
4306
+ * and BarcodeGenerator.BarCodeHeight properties.
4307
+ * This sample shows how to create and save a BarCode image in Scale mode.
4308
+ * let generator = new BarcodeGenerator( EncodeTypes.DATA_MATRIX);
4309
+ * generator.getParameters().getBarcode().setAutoSizeMode(AutoSizeMode.INTERPOLATION);
4310
+ * generator.getParameters().getBarcode().getBarCodeWidth().setMillimeters(50);
4311
+ * generator.getParameters().getBarcode().getBarCodeHeight().setInches(1.3);
4312
+ * generator.save("test.png");
4313
+ */
4314
+ INTERPOLATION: 2,
4315
+ };
4316
+
4317
+ /**
4318
+ * Specifies the unit of measure for the given data.
4319
+ * @enum
4320
+ */
4321
+ GraphicsUnit =
4322
+ {
4323
+ /**
4324
+ * Specifies the world coordinate system unit as the unit of measure.
4325
+ */
4326
+ WORLD: 0,
4327
+
4328
+ /**
4329
+ * Specifies the unit of measure of the display device. Typically pixels for video displays, and 1/100 inch for printers.
4330
+ */
4331
+ DISPLAY: 1,
4332
+
4333
+ /**
4334
+ * Specifies a device pixel as the unit of measure.
4335
+ */
4336
+ PIXEL: 2,
4337
+
4338
+ /**
4339
+ * Specifies a printer's point = 1/72 inch) as the unit of measure.
4340
+ */
4341
+ POINT: 3,
4342
+
4343
+ /**
4344
+ * Specifies the inch as the unit of measure.
4345
+ */
4346
+ INCH: 4,
4347
+
4348
+ /**
4349
+ * Specifies the document unit = 1/300 inch) as the unit of measure.
4350
+ */
4351
+ DOCUMENT: 5,
4352
+
4353
+ /**
4354
+ * Specifies the millimeter as the unit of measure.
4355
+ */
4356
+ MILLIMETER: 6,
4357
+ };
4358
+
4359
+ /**
4360
+ * Specifies the type of barcode to encode.
4361
+ * @enum
4362
+ */
4363
+ EncodeTypes =
4364
+ {
4365
+
4366
+ /**
4367
+ * Unspecified encode type.
4368
+ */
4369
+ NONE: -1,
4370
+
4371
+ /**
4372
+ * Specifies that the data should be encoded with CODABAR barcode specification
4373
+ */
4374
+ CODABAR: 0,
4375
+
4376
+ /**
4377
+ * Specifies that the data should be encoded with CODE 11 barcode specification
4378
+ */
4379
+ CODE_11: 1,
4380
+
4381
+ /**
4382
+ * Specifies that the data should be encoded with Standard CODE 39 barcode specification
4383
+ */
4384
+ CODE_39_STANDARD: 2,
4385
+
4386
+ /**
4387
+ * Specifies that the data should be encoded with Extended CODE 39 barcode specification
4388
+ */
4389
+ CODE_39_EXTENDED: 3,
4390
+
4391
+ /**
4392
+ * Specifies that the data should be encoded with Standard CODE 93 barcode specification
4393
+ */
4394
+ CODE_93_STANDARD: 4,
4395
+
4396
+ /**
4397
+ * Specifies that the data should be encoded with Extended CODE 93 barcode specification
4398
+ */
4399
+ CODE_93_EXTENDED: 5,
4400
+
4401
+ /**
4402
+ * Specifies that the data should be encoded with CODE 128 barcode specification
4403
+ */
4404
+ CODE_128: 6,
4405
+
4406
+ /**
4407
+ * Specifies that the data should be encoded with GS1 Code 128 barcode specification. The codetext must contains parentheses for AI.
4408
+ */
4409
+ GS_1_CODE_128: 7,
4410
+
4411
+ /**
4412
+ * Specifies that the data should be encoded with EAN-8 barcode specification
4413
+ */
4414
+ EAN_8: 8,
4415
+
4416
+ /**
4417
+ * Specifies that the data should be encoded with EAN-13 barcode specification
4418
+ */
4419
+ EAN_13: 9,
4420
+
4421
+ /**
4422
+ * Specifies that the data should be encoded with EAN14 barcode specification
4423
+ */
4424
+ EAN_14: 10,
4425
+
4426
+ /**
4427
+ * Specifies that the data should be encoded with SCC14 barcode specification
4428
+ */
4429
+ SCC_14: 11,
4430
+
4431
+ /**
4432
+ * Specifies that the data should be encoded with SSCC18 barcode specification
4433
+ */
4434
+ SSCC_18: 12,
4435
+
4436
+ /**
4437
+ * Specifies that the data should be encoded with UPC-A barcode specification
4438
+ */
4439
+ UPCA: 13,
4440
+
4441
+ /**
4442
+ * Specifies that the data should be encoded with UPC-E barcode specification
4443
+ */
4444
+ UPCE: 14,
4445
+
4446
+ /**
4447
+ * Specifies that the data should be encoded with isBN barcode specification
4448
+ */
4449
+ ISBN: 15,
4450
+
4451
+ /**
4452
+ * Specifies that the data should be encoded with ISSN barcode specification
4453
+ */
4454
+ ISSN: 16,
4455
+
4456
+ /**
4457
+ * Specifies that the data should be encoded with ISMN barcode specification
4458
+ */
4459
+ ISMN: 17,
4460
+
4461
+ /**
4462
+ * Specifies that the data should be encoded with Standard 2 of 5 barcode specification
4463
+ */
4464
+ STANDARD_2_OF_5: 18,
4465
+
4466
+ /**
4467
+ * Specifies that the data should be encoded with INTERLEAVED 2 of 5 barcode specification
4468
+ */
4469
+ INTERLEAVED_2_OF_5: 19,
4470
+
4471
+ /**
4472
+ * Represents Matrix 2 of 5 BarCode
4473
+ */
4474
+ MATRIX_2_OF_5: 20,
4475
+
4476
+ /**
4477
+ * Represents Italian Post 25 barcode.
4478
+ */
4479
+ ITALIAN_POST_25: 21,
4480
+
4481
+ /**
4482
+ * Represents IATA 2 of 5 barcode.IATA (International Air Transport Assosiation) uses this barcode for the management of air cargo.
4483
+ */
4484
+ IATA_2_OF_5: 22,
4485
+
4486
+ /**
4487
+ * Specifies that the data should be encoded with ITF14 barcode specification
4488
+ */
4489
+ ITF_14: 23,
4490
+
4491
+ /**
4492
+ * Represents ITF-6 Barcode.
4493
+ */
4494
+ ITF_6: 24,
4495
+
4496
+ /**
4497
+ * Specifies that the data should be encoded with MSI Plessey barcode specification
4498
+ */
4499
+ MSI: 25,
4500
+
4501
+ /**
4502
+ * Represents VIN (Vehicle Identification Number) Barcode.
4503
+ */
4504
+ VIN: 26,
4505
+
4506
+ /**
4507
+ * Represents Deutsch Post barcode, This EncodeType is also known as Identcode,CodeIdentcode,German Postal 2 of 5 Identcode,
4508
+ * Deutsch Post AG Identcode, Deutsch Frachtpost Identcode, Deutsch Post AG (DHL)
4509
+ */
4510
+ DEUTSCHE_POST_IDENTCODE: 27,
4511
+
4512
+ /**
4513
+ * Represents Deutsch Post Leitcode Barcode,also known as German Postal 2 of 5 Leitcode, CodeLeitcode, Leitcode, Deutsch Post AG (DHL).
4514
+ */
4515
+ DEUTSCHE_POST_LEITCODE: 28,
4516
+
4517
+ /**
4518
+ * Represents OPC(Optical Product Code) Barcode,also known as , VCA Barcode VCA OPC, Vision Council of America OPC Barcode.
4519
+ */
4520
+ OPC: 29,
4521
+
4522
+ /**
4523
+ * Represents PZN barcode.This EncodeType is also known as Pharmacy central number, Pharmazentralnummer
4524
+ */
4525
+ PZN: 30,
4526
+
4527
+ /**
4528
+ * Represents Code 16K barcode.
4529
+ */
4530
+ CODE_16_K: 31,
4531
+
4532
+ /**
4533
+ * Represents Pharmacode barcode.
4534
+ */
4535
+ PHARMACODE: 32,
4536
+
4537
+ /**
4538
+ * 2D barcode symbology DataMatrix
4539
+ */
4540
+ DATA_MATRIX: 33,
4541
+
4542
+ /**
4543
+ * Specifies that the data should be encoded with QR Code barcode specification
4544
+ */
4545
+ QR: 34,
4546
+
4547
+ /**
4548
+ * Specifies that the data should be encoded with Aztec barcode specification
4549
+ */
4550
+ AZTEC: 35,
4551
+
4552
+ /**
4553
+ * Specifies that the data should be encoded with Pdf417 barcode specification
4554
+ */
4555
+ PDF_417: 36,
4556
+
4557
+ /**
4558
+ * Specifies that the data should be encoded with MacroPdf417 barcode specification
4559
+ */
4560
+ MACRO_PDF_417: 37,
4561
+
4562
+ /**
4563
+ * 2D barcode symbology DataMatrix with GS1 string format
4564
+ */
4565
+ GS_1_DATA_MATRIX: 48,
4566
+
4567
+ /**
4568
+ * Specifies that the data should be encoded with MicroPdf417 barcode specification
4569
+ */
4570
+ MICRO_PDF_417: 55,
4571
+
4572
+ /**
4573
+ * 2D barcode symbology QR with GS1 string format
4574
+ */
4575
+ GS_1_QR: 56,
4576
+
4577
+ /**
4578
+ * Specifies that the data should be encoded with MaxiCode barcode specification
4579
+ */
4580
+ MAXI_CODE: 57,
4581
+
4582
+ /**
4583
+ * Specifies that the data should be encoded with DotCode barcode specification
4584
+ */
4585
+ DOT_CODE: 60,
4586
+
4587
+ /**
4588
+ * Represents Australia Post Customer BarCode
4589
+ */
4590
+ AUSTRALIA_POST: 38,
4591
+
4592
+ /**
4593
+ * Specifies that the data should be encoded with Postnet barcode specification
4594
+ */
4595
+ POSTNET: 39,
4596
+
4597
+ /**
4598
+ * Specifies that the data should be encoded with Planet barcode specification
4599
+ */
4600
+ PLANET: 40,
4601
+
4602
+ /**
4603
+ * Specifies that the data should be encoded with USPS OneCode barcode specification
4604
+ */
4605
+ ONE_CODE: 41,
4606
+
4607
+ /**
4608
+ * Represents RM4SCC barcode. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.
4609
+ */
4610
+ RM_4_SCC: 42,
4611
+
4612
+ /**
4613
+ * Represents Royal Mail Mailmark barcode.
4614
+ */
4615
+ MAILMARK: 66,
4616
+
4617
+ /**
4618
+ * Specifies that the data should be encoded with GS1 Databar omni-directional barcode specification.
4619
+ */
4620
+ DATABAR_OMNI_DIRECTIONAL: 43,
4621
+
4622
+ /**
4623
+ * Specifies that the data should be encoded with GS1 Databar truncated barcode specification.
4624
+ */
4625
+ DATABAR_TRUNCATED: 44,
4626
+
4627
+ /**
4628
+ * Represents GS1 DATABAR limited barcode.
4629
+ */
4630
+ DATABAR_LIMITED: 45,
4631
+
4632
+ /**
4633
+ * Represents GS1 Databar expanded barcode.
4634
+ */
4635
+ DATABAR_EXPANDED: 46,
4636
+
4637
+ /**
4638
+ * Represents GS1 Databar expanded stacked barcode.
4639
+ */
4640
+ DATABAR_EXPANDED_STACKED: 52,
4641
+
4642
+ /**
4643
+ * Represents GS1 Databar stacked barcode.
4644
+ */
4645
+ DATABAR_STACKED: 53,
4646
+
4647
+ /**
4648
+ * Represents GS1 Databar stacked omni-directional barcode.
4649
+ */
4650
+ DATABAR_STACKED_OMNI_DIRECTIONAL: 54,
4651
+
4652
+ /**
4653
+ * Specifies that the data should be encoded with Singapore Post Barcode barcode specification
4654
+ */
4655
+ SINGAPORE_POST: 47,
4656
+
4657
+ /**
4658
+ * Specifies that the data should be encoded with Australian Post Domestic eParcel Barcode barcode specification
4659
+ */
4660
+ AUSTRALIAN_POSTE_PARCEL: 49,
4661
+
4662
+ /**
4663
+ * Specifies that the data should be encoded with Swiss Post Parcel Barcode barcode specification. Supported types: Domestic Mail, International Mail, Additional Services (new)
4664
+ */
4665
+ SWISS_POST_PARCEL: 50,
4666
+
4667
+ /**
4668
+ * Represents Patch code barcode
4669
+ */
4670
+ PATCH_CODE: 51,
4671
+
4672
+ /**
4673
+ * Specifies that the data should be encoded with Code32 barcode specification
4674
+ */
4675
+ CODE_32: 58,
4676
+
4677
+ /**
4678
+ * Specifies that the data should be encoded with DataLogic 2 of 5 barcode specification
4679
+ */
4680
+ DATA_LOGIC_2_OF_5: 59,
4681
+
4682
+ /**
4683
+ * Specifies that the data should be encoded with Dutch KIX barcode specification
4684
+ */
4685
+ DUTCH_KIX: 61,
4686
+
4687
+ /**
4688
+ * Specifies that the data should be encoded with UPC coupon with GS1-128 Extended Code barcode specification.
4689
+ * An example of the input string:
4690
+ * BarCodeGenerator.setCodetext("514141100906(8102)03"),
4691
+ * where UPCA part is "514141100906", GS1Code128 part is (8102)03.
4692
+ */
4693
+ UPCA_GS_1_CODE_128_COUPON: 62,
4694
+
4695
+ /**
4696
+ * Specifies that the data should be encoded with UPC coupon with GS1 DataBar addition barcode specification.
4697
+ * An example of the input string:
4698
+ * BarCodeGenerator.setCodetext("514141100906(8110)106141416543213500110000310123196000"),
4699
+ * where UPCA part is "514141100906, DATABAR part is "(8110)106141416543213500110000310123196000".
4700
+ * To change the caption, use barCodeBuilder.getCaptionAbove().setText("company prefix + offer code")",
4701
+ */
4702
+ UPCA_GS_1_DATABAR_COUPON: 63,
4703
+
4704
+ /**
4705
+ * Specifies that the data should be encoded with Codablock-F barcode specification.
4706
+ */
4707
+ CODABLOCK_F: 64,
4708
+
4709
+ /**
4710
+ * Specifies that the data should be encoded with GS1 Codablock-F barcode specification. The codetext must contains parentheses for AI.
4711
+ */
4712
+ GS_1_CODABLOCK_F: 65
4713
+ };
4714
+
4715
+ /*
4716
+ *@enum
4717
+ */
4718
+ MacroCharacter =
4719
+ {
4720
+ /**
4721
+ * None of Macro Characters are added to barcode data
4722
+ */
4723
+ NONE: 0,
4724
+
4725
+ /**
4726
+ * 05 Macro craracter is added to barcode data in first position.
4727
+ * GS1 Data Identifier ISO 15434
4728
+ * Character is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
4729
+ *
4730
+ * //to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
4731
+ * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, "10123ABC\u001D10123ABC");
4732
+ * generator.getParameters().getBarcode().getDataMatrix().setMacroCharacters(MacroCharacter.MACRO_05);
4733
+ * let reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_DATA_MATRIX);
4734
+ * reader.readBarCodes().forEach(function(result, i, results)
4735
+ * {
4736
+ * cosole.log("BarCode CodeText: " + result.getCodeText());
4737
+ * });
4738
+ */
4739
+ MACRO_05: 5,
4740
+
4741
+ /**
4742
+ * 06 Macro craracter is added to barcode data in first position.
4743
+ * ASC MH10 Data Identifier ISO 15434
4744
+ * Character is translated to "[)>\u001E06\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
4745
+ */
4746
+ MACRO_06: 6
4747
+ };
4748
+
4749
+ /**
4750
+ * PatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes as borders
4751
+ * @enum
4752
+ */
4753
+ PatchFormat =
4754
+ {
4755
+ /**
4756
+ * Generates PatchCode only
4757
+ */
4758
+ PATCH_ONLY: 0,
4759
+
4760
+ /**
4761
+ * Generates A4 format page with PatchCodes as borders and optional QR in the center
4762
+ */
4763
+ A4: 1,
4764
+
4765
+ /**
4766
+ * Generates A4 landscape format page with PatchCodes as borders and optional QR in the center
4767
+ */
4768
+ A4_LANDSCAPE: 2,
4769
+
4770
+ /**
4771
+ * Generates US letter format page with PatchCodes as borders and optional QR in the center
4772
+ */
4773
+ US_LETTER: 3,
4774
+
4775
+ /**
4776
+ * Generates US letter landscape format page with PatchCodes as borders and optional QR in the center
4777
+ */
4778
+ US_LETTER_LANDSCAPE: 4
4779
+ };
4780
+
4781
+ /**
4782
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details
4783
+ * about the used references for encoding the data in the symbol.
4784
+ * Current implementation consists all well known charset encodings.
4785
+ * Currently, it is used only for QR 2D barcode.
4786
+ * @example
4787
+ * let generator = new BarcodeGenerator(EncodeTypes.QR);
4788
+ * generator.setCodeText("12345TEXT");
4789
+ * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ECI_ENCODING);
4790
+ * generator.getParameters().getBarcode().getQR().setQrEncodeType(QREncodeType.FORCE_QR);
4791
+ * generator.getParameters().getBarcode().getQR().setQrECIEncoding(ECIEncodings.UTF_8);
4792
+ * generator.save("test.png", BarCodeImageFormat.PNG);
4793
+ *
4794
+ * @enum
4795
+ */
4796
+ ECIEncodings =
4797
+ {
4798
+
4799
+ /**
4800
+ * ISO/IEC 8859-1 Latin alphabet No. 1 encoding. ECI Id:"\000003"
4801
+ */
4802
+ ISO_8859_1: 3,
4803
+ /**
4804
+ * ISO/IEC 8859-2 Latin alphabet No. 2 encoding. ECI Id:"\000004"
4805
+ */
4806
+ ISO_8859_2: 4,
4807
+ /**
4808
+ * ISO/IEC 8859-3 Latin alphabet No. 3 encoding. ECI Id:"\000005"
4809
+ */
4810
+ ISO_8859_3: 5,
4811
+ /**
4812
+ * ISO/IEC 8859-4 Latin alphabet No. 4 encoding. ECI Id:"\000006"
4813
+ */
4814
+ ISO_8859_4: 6,
4815
+ /**
4816
+ * ISO/IEC 8859-5 Latin/Cyrillic alphabet encoding. ECI Id:"\000007"
4817
+ */
4818
+ ISO_8859_5: 7,
4819
+ /**
4820
+ * ISO/IEC 8859-6 Latin/Arabic alphabet encoding. ECI Id:"\000008"
4821
+ */
4822
+ ISO_8859_6: 8,
4823
+ /**
4824
+ * ISO/IEC 8859-7 Latin/Greek alphabet encoding. ECI Id:"\000009"
4825
+ */
4826
+ ISO_8859_7: 9,
4827
+ /**
4828
+ * ISO/IEC 8859-8 Latin/Hebrew alphabet encoding. ECI Id:"\000010"
4829
+ */
4830
+ ISO_8859_8: 10,
4831
+ /**
4832
+ * ISO/IEC 8859-9 Latin alphabet No. 5 encoding. ECI Id:"\000011"
4833
+ */
4834
+ ISO_8859_9: 11,
4835
+ /**
4836
+ * ISO/IEC 8859-10 Latin alphabet No. 6 encoding. ECI Id:"\000012"
4837
+ */
4838
+ ISO_8859_10: 12,
4839
+ /**
4840
+ * ISO/IEC 8859-11 Latin/Thai alphabet encoding. ECI Id:"\000013"
4841
+ */
4842
+ ISO_8859_11: 13,
4843
+ //14 is reserved
4844
+ /**
4845
+ * ISO/IEC 8859-13 Latin alphabet No. 7 (Baltic Rim) encoding. ECI Id:"\000015"
4846
+ */
4847
+ ISO_8859_13: 15,
4848
+ /**
4849
+ * ISO/IEC 8859-14 Latin alphabet No. 8 (Celtic) encoding. ECI Id:"\000016"
4850
+ */
4851
+ ISO_8859_14: 16,
4852
+ /**
4853
+ * ISO/IEC 8859-15 Latin alphabet No. 9 encoding. ECI Id:"\000017"
4854
+ */
4855
+ ISO_8859_15: 17,
4856
+ /**
4857
+ * ISO/IEC 8859-16 Latin alphabet No. 10 encoding. ECI Id:"\000018"
4858
+ */
4859
+ ISO_8859_16: 18,
4860
+ //19 is reserved
4861
+ /**
4862
+ * Shift JIS (JIS X 0208 Annex 1 + JIS X 0201) encoding. ECI Id:"\000020"
4863
+ */
4864
+ Shift_JIS: 20,
4865
+ //
4866
+ /**
4867
+ * Windows 1250 Latin 2 (Central Europe) encoding. ECI Id:"\000021"
4868
+ */
4869
+ Win1250: 21,
4870
+ /**
4871
+ * Windows 1251 Cyrillic encoding. ECI Id:"\000022"
4872
+ */
4873
+ Win1251: 22,
4874
+ /**
4875
+ * Windows 1252 Latin 1 encoding. ECI Id:"\000023"
4876
+ */
4877
+ Win1252: 23,
4878
+ /**
4879
+ * Windows 1256 Arabic encoding. ECI Id:"\000024"
4880
+ */
4881
+ Win1256: 24,
4882
+ //
4883
+ /**
4884
+ * ISO/IEC 10646 UCS-2 (High order byte first) encoding. ECI Id:"\000025"
4885
+ */
4886
+ UTF16BE: 25,
4887
+ /**
4888
+ * ISO/IEC 10646 UTF-8 encoding. ECI Id:"\000026"
4889
+ */
4890
+ UTF8: 26,
4891
+ //
4892
+ /**
4893
+ * ISO/IEC 646:1991 International Reference Version of ISO 7-bit coded character set encoding. ECI Id:"\000027"
4894
+ */
4895
+ US_ASCII: 27,
4896
+ /**
4897
+ * Big 5 (Taiwan) Chinese Character Set encoding. ECI Id:"\000028"
4898
+ */
4899
+ Big5: 28,
4900
+ /**
4901
+ * GB (PRC) Chinese Character Set encoding. ECI Id:"\000029"
4902
+ */
4903
+ GB18030: 29,
4904
+ /**
4905
+ * Korean Character Set encoding. ECI Id:"\000030"
4906
+ */
4907
+ EUC_KR: 30,
4908
+ /**
4909
+ * No Extended Channel Interpretation
4910
+ */
4911
+ NONE: 0
4912
+ };
4913
+
4914
+ /**
4915
+ * <p>Enable checksum during generation for 1D barcodes.</p>
4916
+ * <p>Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.</p>
4917
+ * <p>Checksum never used: Codabar</p>
4918
+ * <p>Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN</p>
4919
+ * <p>Checksum always used: Rest symbologies</p>
4920
+ * @enum
4921
+ */
4922
+ EnableChecksum =
4923
+ {
4924
+
4925
+ /**
4926
+ * <p>
4927
+ * If checksum is required by the specification - it will be attached.
4928
+ * </p>
4929
+ */
4930
+ DEFAULT: 0,
4931
+ /**
4932
+ * <p>
4933
+ * Always use checksum if possible.
4934
+ * </p>
4935
+ */
4936
+ YES: 1,
4937
+ /**
4938
+ * <p>
4939
+ * Do not use checksum.
4940
+ * </p>
4941
+ */
4942
+ NO: 2
4943
+ };
4944
+
4945
+ /**
4946
+ * Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.
4947
+ * @enum
4948
+ */
4949
+ Code128Emulation =
4950
+ {
4951
+ /**
4952
+ * No Code 128 emulation
4953
+ */
4954
+ NONE: 0,
4955
+
4956
+ /**
4957
+ * UCC/EAN-128 emulation. Text compactionmode implied.
4958
+ */
4959
+ CODE_903: 903,
4960
+
4961
+ /**
4962
+ * UCC/EAN-128 emulation. Numeric compactionmode implied.
4963
+ */
4964
+ CODE_904: 904,
4965
+
4966
+ /**
4967
+ * UCC/EAN-128 emulation. Implied “01” AI and 14-digit codetext.
4968
+ */
4969
+ CODE_905: 905
4970
+ }
4971
+
4972
+ /**
4973
+ * Specifies the file format of the image.
4974
+ * @enum
4975
+ */
4976
+ BarCodeImageFormat =
4977
+ {
4978
+ /**
4979
+ * Specifies the bitmap (BMP) image format.
4980
+ */
4981
+ BMP:0,
4982
+
4983
+ /**
4984
+ * Specifies the Graphics Interchange Format (GIF) image format.
4985
+ */
4986
+ GIF:1,
4987
+
4988
+ /**
4989
+ * Specifies the Joint Photographic Experts Group (JPEG) image format.
4990
+ */
4991
+ JPEG:2,
4992
+
4993
+ /**
4994
+ * Specifies the W3C Portable Network Graphics (PNG) image format.
4995
+ */
4996
+ PNG:3,
4997
+
4998
+ /**
4999
+ * Specifies the Tagged Image File Format (TIFF) image format.
5000
+ */
5001
+ TIFF:4,
5002
+
5003
+
5004
+ /**
5005
+ * Specifies the Tagged Image File Format (TIFF) image format in CMYK color model.
5006
+ */
5007
+ TIFF_IN_CMYK:5,
5008
+
5009
+ /**
5010
+ * Specifies the Enhanced Metafile (EMF) image format.
5011
+ */
5012
+ EMF:6,
5013
+
5014
+ /**
5015
+ * Specifies the Scalable Vector Graphics (SVG) image format.
5016
+ */
5017
+ SVG:7
5018
+ };
5019
+
5020
+ module.exports = {
5021
+ BarcodeGenerator,
5022
+ EncodeTypes,
5023
+ BarcodeParameters,
5024
+ BaseGenerationParameters,
5025
+ BorderParameters,
5026
+ ChecksumValidation,
5027
+ CaptionParameters,
5028
+ BorderDashStyle,
5029
+ AutoSizeMode,
5030
+ PatchFormat,
5031
+ PatchCodeParameters,
5032
+ DataMatrixEncodeMode,
5033
+ ECIEncodings,
5034
+ QrExtCodetextBuilder,
5035
+ ExtCodetextBuilder,
5036
+ Unit,
5037
+ Padding,
5038
+ CodetextParameters,
5039
+ BarCodeImageFormat,
5040
+ PostalParameters,
5041
+ AustralianPostParameters,
5042
+ CodablockParameters,
5043
+ DataBarParameters,
5044
+ DataMatrixParameters,
5045
+ Code16KParameters,
5046
+ DotCodeParameters,
5047
+ ITFParameters,
5048
+ QrParameters,
5049
+ Pdf417Parameters,
5050
+ SupplementParameters,
5051
+ MaxiCodeParameters,
5052
+ AztecParameters,
5053
+ CodabarParameters,
5054
+ CouponParameters,
5055
+ FontUnit,
5056
+ QrStructuredAppendParameters,
5057
+ BarcodeClassifications,
5058
+ FontStyle,
5059
+ CodabarSymbol,
5060
+ ITF14BorderType,
5061
+ QREncodeMode,
5062
+ DataMatrixEccType,
5063
+ QRVersion,
5064
+ AztecSymbolMode,
5065
+ Pdf417ErrorLevel,
5066
+ Pdf417CompactionMode,
5067
+ QRErrorLevel,
5068
+ QREncodeType,
5069
+ CodabarChecksumMode,
5070
+ CodeLocation,
5071
+ FontMode,
5072
+ TextAlignment,
5073
+ GraphicsUnit,
5074
+ MacroCharacter,
5075
+ EnableChecksum,
5076
+
5077
+ };