aspose.barcode 22.3.1 → 22.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/examples/how_to.txt
CHANGED
|
@@ -4,6 +4,8 @@ const barcode_ = require("aspose.barcode");
|
|
|
4
4
|
const aspose_barcode = barcode_.AsposeBarcode
|
|
5
5
|
2. Run command 'npm install'
|
|
6
6
|
3. Put the license file 'Aspose.BarCode.NodeJsviaJava.lic' to the folder lic.
|
|
7
|
+
The expected name of the license file is Aspose.BarCode.NodeJsviaJava.lic.
|
|
8
|
+
You can change it by changing line 10 of ExampleAssist.js.
|
|
7
9
|
4. Open and run every file consistently :
|
|
8
10
|
how_to_generate_and_read_example.js
|
|
9
11
|
how_to_generate_barcode_examples.js
|
package/lib/AsposeBarcode.js
CHANGED
package/lib/Generation.js
CHANGED
|
@@ -196,6 +196,7 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
196
196
|
australianPost;
|
|
197
197
|
codablock;
|
|
198
198
|
dataBar;
|
|
199
|
+
gs1CompositeBar;
|
|
199
200
|
dataMatrix;
|
|
200
201
|
code16K;
|
|
201
202
|
itf;
|
|
@@ -229,6 +230,7 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
229
230
|
this.australianPost = new AustralianPostParameters(this.getJavaClass().getAustralianPostSync());
|
|
230
231
|
this.codablock = new CodablockParameters(this.getJavaClass().getCodablockSync());
|
|
231
232
|
this.dataBar = new DataBarParameters(this.getJavaClass().getDataBarSync());
|
|
233
|
+
this.gs1CompositeBar = new GS1CompositeBarParameters(this.getJavaClass().getGS1CompositeBarSync());
|
|
232
234
|
this.dataMatrix = new DataMatrixParameters(this.getJavaClass().getDataMatrixSync());
|
|
233
235
|
this.code16K = new Code16KParameters(this.getJavaClass().getCode16KSync());
|
|
234
236
|
this.itf = new ITFParameters(this.getJavaClass().getITFSync());
|
|
@@ -496,6 +498,65 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
496
498
|
return this.dataBar;
|
|
497
499
|
}
|
|
498
500
|
|
|
501
|
+
/**
|
|
502
|
+
* GS1 Composite Bar parameters.
|
|
503
|
+
*
|
|
504
|
+
* This sample shows how to create and save a GS1 Composite Bar image.
|
|
505
|
+
* Note that 1D codetext and 2D codetext are separated by symbol '/'
|
|
506
|
+
*
|
|
507
|
+
* let codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
|
|
508
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_COMPOSITE_BAR, codetext);
|
|
509
|
+
*
|
|
510
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setLinearComponentType(EncodeTypes.GS_1_CODE_128);
|
|
511
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setTwoDComponentType(TwoDComponentType.CC_A);
|
|
512
|
+
*
|
|
513
|
+
* // Aspect ratio of 2D component
|
|
514
|
+
* generator.getParameters().getBarcode().getPdf417().setAspectRatio(3);
|
|
515
|
+
*
|
|
516
|
+
* // X-Dimension of 1D and 2D components
|
|
517
|
+
* generator.getParameters().getBarcode().getXDimension().setPixels(3);
|
|
518
|
+
* ///
|
|
519
|
+
* // Height of 1D component
|
|
520
|
+
* generator.getParameters().getBarcode().getBarHeight().setPixels(100);
|
|
521
|
+
* ///
|
|
522
|
+
* generator.save("test.png", BarcodeImageFormat.PNG);
|
|
523
|
+
*
|
|
524
|
+
* @return GS1CompositeBarParameters GS1 Composite Bar parameters.
|
|
525
|
+
*/
|
|
526
|
+
getGS1CompositeBar()
|
|
527
|
+
{
|
|
528
|
+
return this.gs1CompositeBar;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* GS1 Composite Bar parameters.
|
|
533
|
+
*
|
|
534
|
+
* This sample shows how to create and save a GS1 Composite Bar image.
|
|
535
|
+
* Note that 1D codetext and 2D codetext are separated by symbol '/'
|
|
536
|
+
*
|
|
537
|
+
* let codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
|
|
538
|
+
* let generator = new BarcodeGenerator(EncodeTypes.GS_1_COMPOSITE_BAR, codetext);
|
|
539
|
+
*
|
|
540
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setLinearComponentType(EncodeTypes.GS_1_CODE_128);
|
|
541
|
+
* generator.getParameters().getBarcode().getGS1CompositeBar().setTwoDComponentType(TwoDComponentType.CC_A);
|
|
542
|
+
*
|
|
543
|
+
* // Aspect ratio of 2D component
|
|
544
|
+
* generator.getParameters().getBarcode().getPdf417().setAspectRatio(3);
|
|
545
|
+
*
|
|
546
|
+
* // X-Dimension of 1D and 2D components
|
|
547
|
+
* generator.getParameters().getBarcode().getXDimension().setPixels(3);
|
|
548
|
+
* ///
|
|
549
|
+
* // Height of 1D component
|
|
550
|
+
* generator.getParameters().getBarcode().getBarHeight().setPixels(100);
|
|
551
|
+
* ///
|
|
552
|
+
* generator.save("test.png", BarcodeImageFormat.PNG);
|
|
553
|
+
*/
|
|
554
|
+
setGS1CompositeBar(value)
|
|
555
|
+
{
|
|
556
|
+
this.gs1CompositeBar = value;
|
|
557
|
+
this.getJavaClass().setGS1CompositeBarSync(value.getJavaClass());
|
|
558
|
+
}
|
|
559
|
+
|
|
499
560
|
/**
|
|
500
561
|
* Codablock parameters.
|
|
501
562
|
*/
|
|
@@ -2192,6 +2253,60 @@ class DotCodeParameters extends joint.BaseJavaClass
|
|
|
2192
2253
|
}
|
|
2193
2254
|
}
|
|
2194
2255
|
|
|
2256
|
+
class GS1CompositeBarParameters extends joint.BaseJavaClass
|
|
2257
|
+
{
|
|
2258
|
+
constructor(javaClass)
|
|
2259
|
+
{
|
|
2260
|
+
super(javaClass);
|
|
2261
|
+
this.init();
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
init()
|
|
2265
|
+
{
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
/**
|
|
2269
|
+
* Linear component type
|
|
2270
|
+
*/
|
|
2271
|
+
getLinearComponentType()
|
|
2272
|
+
{
|
|
2273
|
+
return this.getJavaClass().getLinearComponentTypeSync();
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
/**
|
|
2277
|
+
* Linear component type
|
|
2278
|
+
*/
|
|
2279
|
+
setLinearComponentType(value)
|
|
2280
|
+
{
|
|
2281
|
+
this.getJavaClass().setLinearComponentTypeSync(value);
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
/**
|
|
2285
|
+
* 2D component type
|
|
2286
|
+
*/
|
|
2287
|
+
getTwoDComponentType()
|
|
2288
|
+
{
|
|
2289
|
+
return this.getJavaClass().getTwoDComponentTypeSync();
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* 2D component type
|
|
2294
|
+
*/
|
|
2295
|
+
setTwoDComponentType(value)
|
|
2296
|
+
{
|
|
2297
|
+
this.getJavaClass().setTwoDComponentTypeSync(value);
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Returns a human-readable string representation of this <see cref="DataBarParameters"/>.
|
|
2302
|
+
* @return A string that represents this <see cref="DataBarParameters"/>
|
|
2303
|
+
*/
|
|
2304
|
+
toString()
|
|
2305
|
+
{
|
|
2306
|
+
return this.getJavaClass().toStringSync();
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2195
2310
|
/**
|
|
2196
2311
|
* ITF parameters.
|
|
2197
2312
|
*/
|
|
@@ -4709,7 +4824,12 @@ EncodeTypes =
|
|
|
4709
4824
|
/**
|
|
4710
4825
|
* Specifies that the data should be encoded with GS1 Codablock-F barcode specification. The codetext must contains parentheses for AI.
|
|
4711
4826
|
*/
|
|
4712
|
-
GS_1_CODABLOCK_F: 65
|
|
4827
|
+
GS_1_CODABLOCK_F: 65,
|
|
4828
|
+
|
|
4829
|
+
/**
|
|
4830
|
+
* Specifies that the data should be encoded with <b>GS1 Composite Bar</b> barcode specification. The codetext must contains parentheses for AI. 1D codetext and 2D codetext must be separated with symbol '/'
|
|
4831
|
+
*/
|
|
4832
|
+
GS_1_COMPOSITE_BAR: 71
|
|
4713
4833
|
};
|
|
4714
4834
|
|
|
4715
4835
|
/*
|
|
@@ -5017,6 +5137,29 @@ BarCodeImageFormat =
|
|
|
5017
5137
|
SVG:7
|
|
5018
5138
|
};
|
|
5019
5139
|
|
|
5140
|
+
TwoDComponentType =
|
|
5141
|
+
{
|
|
5142
|
+
/**
|
|
5143
|
+
* Auto select type of 2D component
|
|
5144
|
+
*/
|
|
5145
|
+
AUTO:0,
|
|
5146
|
+
|
|
5147
|
+
/**
|
|
5148
|
+
* CC-A type of 2D component. It is a structural variant of MicroPDF417
|
|
5149
|
+
*/
|
|
5150
|
+
CC_A:1,
|
|
5151
|
+
|
|
5152
|
+
/**
|
|
5153
|
+
* CC-B type of 2D component. It is a MicroPDF417 symbol.
|
|
5154
|
+
*/
|
|
5155
|
+
CC_B:2,
|
|
5156
|
+
|
|
5157
|
+
/**
|
|
5158
|
+
* CC-C type of 2D component. It is a PDF417 symbol.
|
|
5159
|
+
*/
|
|
5160
|
+
CC_C:3
|
|
5161
|
+
}
|
|
5162
|
+
|
|
5020
5163
|
module.exports = {
|
|
5021
5164
|
BarcodeGenerator,
|
|
5022
5165
|
EncodeTypes,
|
|
@@ -5073,5 +5216,6 @@ module.exports = {
|
|
|
5073
5216
|
GraphicsUnit,
|
|
5074
5217
|
MacroCharacter,
|
|
5075
5218
|
EnableChecksum,
|
|
5076
|
-
|
|
5219
|
+
TwoDComponentType,
|
|
5220
|
+
GS1CompositeBarParameters
|
|
5077
5221
|
};
|
|
Binary file
|