aspose.barcode 26.2.0 → 26.3.1
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.
|
Binary file
|
package/lib/AsposeBarcode.js
CHANGED
|
@@ -4,7 +4,7 @@ const joint_ = require('./Joint');
|
|
|
4
4
|
const complexbarcode_ = require("./ComplexBarcode");
|
|
5
5
|
const generation_ = require("./Generation");
|
|
6
6
|
const recognition_ = require("./Recognition");
|
|
7
|
-
const jar_name_ = "/aspose-barcode-nodejs-26.
|
|
7
|
+
const jar_name_ = "/aspose-barcode-nodejs-26.3.jar";
|
|
8
8
|
const jar_path_ = __dirname + jar_name_;
|
|
9
9
|
const fs = require("fs");
|
|
10
10
|
|
package/lib/Generation.js
CHANGED
|
@@ -7146,45 +7146,86 @@ ITF14BorderType =
|
|
|
7146
7146
|
QREncodeMode =
|
|
7147
7147
|
{
|
|
7148
7148
|
/**
|
|
7149
|
-
*
|
|
7150
|
-
*
|
|
7151
|
-
*
|
|
7149
|
+
* In Auto mode, the CodeText is encoded with maximum data compactness.
|
|
7150
|
+
* Unicode characters are encoded in kanji mode if possible, or they are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7151
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7152
7152
|
*/
|
|
7153
7153
|
AUTO: 0,
|
|
7154
|
+
|
|
7154
7155
|
/**
|
|
7155
|
-
* Encode codetext as plain bytes. If it detects any
|
|
7156
|
+
* Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
|
|
7157
|
+
* @deprecated This property is obsolete and will be removed in future releases. Instead, use the 'SetCodeText' method to convert the message to byte array with specified encoding.
|
|
7156
7158
|
*/
|
|
7157
7159
|
BYTES: 1,
|
|
7158
|
-
|
|
7160
|
+
|
|
7159
7161
|
/**
|
|
7160
7162
|
* Encode codetext with UTF8 encoding with first ByteOfMark character.
|
|
7163
|
+
* @deprecated This property is obsolete and will be removed in future releases. Instead, use the 'SetCodeText' method with UTF8 encoding to add a byte order mark (BOM) and encode the message. After that, the CodeText can be encoded using the 'Auto' mode.
|
|
7161
7164
|
*/
|
|
7162
7165
|
UTF_8_BOM: 2,
|
|
7166
|
+
|
|
7167
|
+
|
|
7163
7168
|
/**
|
|
7164
|
-
* Encode codetext with UTF8 encoding with first ByteOfMark character. It can be problems with some barcode
|
|
7169
|
+
* Encode codetext with UTF8 encoding with first ByteOfMark character. It can be problems with some barcode scanners.
|
|
7170
|
+
* @deprecated This property is obsolete and will be removed in future releases. Instead, use the 'SetCodeText' method with BigEndianUnicode encoding to add a byte order mark (BOM) and encode the message. After that, the CodeText can be encoded using the 'Auto' mode.
|
|
7165
7171
|
*/
|
|
7166
7172
|
UTF_16_BEBOM: 3,
|
|
7167
7173
|
|
|
7168
7174
|
/**
|
|
7169
|
-
* Encode codetext with value set in the
|
|
7175
|
+
* Encode codetext with value set in the ECIEncoding property. It can be problems with some old (pre 2006) barcode scanners.
|
|
7176
|
+
* This mode is not supported by MicroQR barcodes.
|
|
7177
|
+
* @deprecated This property is obsolete and will be removed in future releases. Instead, use ECI option.
|
|
7170
7178
|
*/
|
|
7171
7179
|
ECI_ENCODING: 4,
|
|
7172
7180
|
|
|
7173
7181
|
/**
|
|
7174
|
-
* Extended Channel mode which supports FNC1 first position, FNC1 second position and multi ECI modes
|
|
7175
|
-
* It is better to use QrExtCodetextBuilder for extended codetext generation
|
|
7176
|
-
* Use Display2DText property to set visible text to removing managing characters
|
|
7177
|
-
* Encoding Principles
|
|
7178
|
-
* All symbols "\" must be doubled "\\" in the codetext
|
|
7179
|
-
* FNC1 in first position is set in codetext as as "<FNC1>"
|
|
7180
|
-
* FNC1 in second position is set in codetext as as "<FNC1(value)>". The value must be single symbols (a-z, A-Z) or digits from 0 to 99
|
|
7181
|
-
* Group Separator for FNC1 modes is set as 0x1D character '\\u001D'
|
|
7182
|
-
*
|
|
7183
|
-
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
7184
|
-
*
|
|
7185
|
-
* All unicode characters after ECI identifier are automatically encoded into correct character codeset
|
|
7186
|
-
|
|
7187
|
-
|
|
7182
|
+
* Extended Channel mode which supports FNC1 first position, FNC1 second position and multi ECI modes.</para>
|
|
7183
|
+
* It is better to use QrExtCodetextBuilder for extended codetext generation.</para>
|
|
7184
|
+
* Use Display2DText property to set visible text to removing managing characters.</para>
|
|
7185
|
+
* Encoding Principles:</para>
|
|
7186
|
+
* All symbols "\" must be doubled "\\" in the codetext.</para>
|
|
7187
|
+
* FNC1 in first position is set in codetext as as "<FNC1>"</para>
|
|
7188
|
+
* FNC1 in second position is set in codetext as as "<FNC1(value)>". The value must be single symbols (a-z, A-Z) or digits from 0 to 99.</para>
|
|
7189
|
+
* Group Separator for FNC1 modes is set as 0x1D character '\\u001D' </para>
|
|
7190
|
+
* If you need to insert "<FNC1>" string into barcode write it as "<\FNC1>" </para>
|
|
7191
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier</para>
|
|
7192
|
+
* To disable current ECI mode and convert to default JIS8 mode zero mode ECI indetifier is set. "\000000"</para>
|
|
7193
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.</para>
|
|
7194
|
+
* This mode is not supported by MicroQR barcodes.</para>
|
|
7195
|
+
* @deprecated This property is obsolete and will be removed in future releases. Instead, use the 'Extended' encode mode.
|
|
7196
|
+
*/
|
|
7197
|
+
EXTENDED_CODETEXT: 5,
|
|
7198
|
+
|
|
7199
|
+
/**
|
|
7200
|
+
* Extended Channel mode which supports FNC1 first position, FNC1 second position and multi ECI modes.</para>
|
|
7201
|
+
* It is better to use QrExtCodetextBuilder for extended codetext generation.</para>
|
|
7202
|
+
* Use Display2DText property to set visible text to removing managing characters.</para>
|
|
7203
|
+
* Encoding Principles:</para>
|
|
7204
|
+
* All symbols "\" must be doubled "\\" in the codetext.</para>
|
|
7205
|
+
* FNC1 in first position is set in codetext as as "<FNC1>"</para>
|
|
7206
|
+
* FNC1 in second position is set in codetext as as "<FNC1(value)>". The value must be single symbols (a-z, A-Z) or digits from 0 to 99.</para>
|
|
7207
|
+
* Group Separator for FNC1 modes is set as 0x1D character '\\u001D' </para>
|
|
7208
|
+
* If you need to insert "<FNC1>" string into barcode write it as "<\FNC1>" </para>
|
|
7209
|
+
* ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier</para>
|
|
7210
|
+
* To disable current ECI mode and convert to default JIS8 mode zero mode ECI indetifier is set. "\000000"</para>
|
|
7211
|
+
* All unicode characters after ECI identifier are automatically encoded into correct character codeset.</para>
|
|
7212
|
+
* This mode is not supported by MicroQR barcodes.</para>
|
|
7213
|
+
*/
|
|
7214
|
+
EXTENDED: 6,
|
|
7215
|
+
|
|
7216
|
+
/**
|
|
7217
|
+
* In Binary mode, the CodeText is encoded with maximum data compactness.
|
|
7218
|
+
* If a Unicode character is found, an exception is thrown.
|
|
7219
|
+
*/
|
|
7220
|
+
BINARY: 7,
|
|
7221
|
+
|
|
7222
|
+
/**
|
|
7223
|
+
* In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
|
7224
|
+
* If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
|
|
7225
|
+
* Please note that some old (pre 2006) scanners may not support this mode.
|
|
7226
|
+
* This mode is not supported by MicroQR barcodes.
|
|
7227
|
+
*/
|
|
7228
|
+
ECI: 8
|
|
7188
7229
|
|
|
7189
7230
|
};
|
|
7190
7231
|
|
package/lib/Recognition.js
CHANGED
|
@@ -433,7 +433,8 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
433
433
|
{
|
|
434
434
|
let xmlData = fs.readFileSync(xmlFile).toString();
|
|
435
435
|
let java_class_link = new java.import(BarCodeReader.javaClassName);
|
|
436
|
-
|
|
436
|
+
xmlData = xmlData.substring(0, 3) === "п»ї" ? xmlData.substring(3, xmlData.length) : xmlData;
|
|
437
|
+
return BarCodeReader.construct(java_class_link.importFromXmlSync(xmlData));
|
|
437
438
|
} catch (ex)
|
|
438
439
|
{
|
|
439
440
|
let barcode_exception = new joint.BarcodeException(ex);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aspose.barcode",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.3.1",
|
|
4
4
|
"description": "barcode generation and recognition component",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"lib": "lib"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"java": "
|
|
19
|
+
"java": "0.18.0"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": "<=18"
|
|
20
23
|
}
|
|
21
24
|
}
|