aspose-barcode-for-python-via-java 23.6.0__tar.gz → 23.7__tar.gz

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.
Files changed (19) hide show
  1. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/PKG-INFO +1 -1
  2. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
  3. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
  4. aspose-barcode-for-python-via-java-23.7/aspose_barcode_for_python_via_java.egg-info/requires.txt +1 -0
  5. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/asposebarcode/Generation.py +523 -58
  6. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/asposebarcode/Recognition.py +93 -2
  7. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/asposebarcode/__init__.py +1 -1
  8. aspose-barcode-for-python-via-java-23.6.0/asposebarcode/jlib/aspose-barcode-python-23.6.jar → aspose-barcode-for-python-via-java-23.7/asposebarcode/jlib/aspose-barcode-python-23.7.jar +0 -0
  9. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/setup.py +2 -2
  10. aspose-barcode-for-python-via-java-23.6.0/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -1
  11. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/MANIFEST.in +0 -0
  12. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/README.md +0 -0
  13. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
  14. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
  15. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/asposebarcode/Assist.py +0 -0
  16. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/asposebarcode/ComplexBarcode.py +0 -0
  17. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/license/End+User+License+Agreement.html +0 -0
  18. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
  19. {aspose-barcode-for-python-via-java-23.6.0 → aspose-barcode-for-python-via-java-23.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aspose-barcode-for-python-via-java
3
- Version: 23.6.0
3
+ Version: 23.7
4
4
  Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
5
5
  Home-page: UNKNOWN
6
6
  Author: Aspose
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aspose-barcode-for-python-via-java
3
- Version: 23.6.0
3
+ Version: 23.7
4
4
  Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
5
5
  Home-page: UNKNOWN
6
6
  Author: Aspose
@@ -11,6 +11,6 @@ asposebarcode/ComplexBarcode.py
11
11
  asposebarcode/Generation.py
12
12
  asposebarcode/Recognition.py
13
13
  asposebarcode/__init__.py
14
- asposebarcode/jlib/aspose-barcode-python-23.6.jar
14
+ asposebarcode/jlib/aspose-barcode-python-23.7.jar
15
15
  license/End+User+License+Agreement.html
16
16
  license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
@@ -175,6 +175,7 @@ class BarcodeParameters(Assist.BaseJavaClass):
175
175
  self.pdf417 = None
176
176
  self.maxiCode = None
177
177
  self.aztec = None
178
+ self.code128 = None
178
179
  self.codabar = None
179
180
  self.coupon = None
180
181
  self.hanXin = None
@@ -203,6 +204,7 @@ class BarcodeParameters(Assist.BaseJavaClass):
203
204
  self.pdf417 = Pdf417Parameters(self.getJavaClass().getPdf417())
204
205
  self.maxiCode = MaxiCodeParameters(self.getJavaClass().getMaxiCode())
205
206
  self.aztec = AztecParameters(self.getJavaClass().getAztec())
207
+ self.code128 = Code128Parameters(self.getJavaClass().getCode128())
206
208
  self.codabar = CodabarParameters(self.getJavaClass().getCodabar())
207
209
  self.coupon = CouponParameters(self.getJavaClass().getCoupon())
208
210
  self.hanXin = HanXinParameters(self.getJavaClass().getHanXin())
@@ -521,6 +523,12 @@ class BarcodeParameters(Assist.BaseJavaClass):
521
523
  """
522
524
  return self.maxiCode
523
525
 
526
+ def getCode128(self):
527
+ """!
528
+ Code128 parameters.
529
+ """
530
+ return self.code128
531
+
524
532
  def getAztec(self):
525
533
  """!
526
534
  Aztec parameters.
@@ -1486,6 +1494,20 @@ class DataMatrixParameters(Assist.BaseJavaClass):
1486
1494
  super().__init__(javaClass)
1487
1495
  self.init()
1488
1496
 
1497
+ def getDataMatrixVersion(self):
1498
+ """!
1499
+ Gets Datamatrix symbol size.
1500
+ :@return: Datamatrix symbol size.
1501
+ """
1502
+ return DataMatrixVersion(self.getJavaClass().getDataMatrixVersion())
1503
+
1504
+ def setDataMatrixVersion(self, value):
1505
+ """!
1506
+ Sets Datamatrix symbol size.
1507
+ :param value: Datamatrix symbol size.
1508
+ """
1509
+ self.getJavaClass().setDataMatrixVersion(value.value)
1510
+
1489
1511
  def init(self):
1490
1512
  pass
1491
1513
 
@@ -1517,6 +1539,60 @@ class DataMatrixParameters(Assist.BaseJavaClass):
1517
1539
  """
1518
1540
  self.getJavaClass().setDataMatrixEncodeMode(value.value)
1519
1541
 
1542
+ def getStructuredAppendBarcodeId(self):
1543
+ """!
1544
+ Barcode ID for Structured Append mode of Datamatrix barcode.
1545
+ Default value: 0
1546
+ """
1547
+ return self.getJavaClass().getStructuredAppendBarcodeId()
1548
+
1549
+ def setStructuredAppendBarcodeId(self, value):
1550
+ """!
1551
+ Barcode ID for Structured Append mode of Datamatrix barcode.
1552
+ Default value: 0
1553
+ """
1554
+ self.getJavaClass().setStructuredAppendBarcodeId(value)
1555
+
1556
+ def getStructuredAppendBarcodesCount(self):
1557
+ """!
1558
+ Barcodes count for Structured Append mode of Datamatrix barcode.
1559
+ Default value: 0
1560
+ """
1561
+ return self.getJavaClass().getStructuredAppendBarcodesCount()
1562
+
1563
+ def setStructuredAppendBarcodesCount(self, value):
1564
+ """!
1565
+ Barcodes count for Structured Append mode of Datamatrix barcode.
1566
+ Default value: 0
1567
+ """
1568
+ self.getJavaClass().setStructuredAppendBarcodesCount(value);
1569
+
1570
+ def getStructuredAppendFileId(self):
1571
+ """!
1572
+ File ID for Structured Append mode of Datamatrix barcode.
1573
+ Default value: 0
1574
+ """
1575
+ return self.getJavaClass().getStructuredAppendFileId()
1576
+
1577
+ def setStructuredAppendFileId(self, value):
1578
+ """!
1579
+ File ID for Structured Append mode of Datamatrix barcode.
1580
+ Default value: 0
1581
+ """
1582
+ self.getJavaClass().setStructuredAppendFileId(value)
1583
+
1584
+ def isReaderProgramming(self):
1585
+ """!
1586
+ Used to instruct the reader to interpret the data contained within the symbol
1587
+ """
1588
+ return self.getJavaClass().isReaderProgramming()
1589
+
1590
+ def setReaderProgramming(self, value):
1591
+ """!
1592
+ Used to instruct the reader to interpret the data contained within the symbol
1593
+ """
1594
+ self.getJavaClass().setReaderProgramming(value)
1595
+
1520
1596
  def getMacroCharacters(self):
1521
1597
  """!
1522
1598
  ISO/IEC 16022
@@ -1591,6 +1667,20 @@ class DataMatrixParameters(Assist.BaseJavaClass):
1591
1667
  """
1592
1668
  self.getJavaClass().setCodeTextEncoding(value)
1593
1669
 
1670
+ def getECIEncoding(self):
1671
+ """!
1672
+ Gets ECI encoding. Used when DataMatrixEncodeMode is Auto.
1673
+ Default value: ISO-8859-1
1674
+ """
1675
+ return self.getJavaClass().getECIEncoding()
1676
+
1677
+ def setECIEncoding(self, value):
1678
+ """!
1679
+ Gets ECI encoding. Used when DataMatrixEncodeMode is Auto.
1680
+ Default value: ISO-8859-1
1681
+ """
1682
+ self.getJavaClass().setECIEncoding(value)
1683
+
1594
1684
  def toString(self):
1595
1685
  """!
1596
1686
  Returns a human-readable string representation of this DataMatrixParameters.
@@ -3043,6 +3133,39 @@ class DotCodeExtCodetextBuilder(ExtCodetextBuilder):
3043
3133
  def init(self):
3044
3134
  pass
3045
3135
 
3136
+ class Code128Parameters(Assist.BaseJavaClass):
3137
+ """!
3138
+ Code128 parameters.
3139
+ """
3140
+
3141
+ def init(self):
3142
+ pass
3143
+
3144
+ def __init__(self, javaClass):
3145
+ super().__init__(javaClass)
3146
+ self.init()
3147
+
3148
+ def getCode128EncodeMode(self):
3149
+ """!
3150
+ Gets or sets a Code128 encode mode.
3151
+ Default value: Code128EncodeMode.Auto
3152
+ """
3153
+ return Code128EncodeMode(self.getJavaClass().getCode128EncodeMode())
3154
+
3155
+ def setCode128EncodeMode(self, value):
3156
+ """!
3157
+ Gets or sets a Code128 encode mode.
3158
+ Default value: Code128EncodeMode.Auto
3159
+ """
3160
+ self.getJavaClass().setCode128EncodeMode(value.value)
3161
+
3162
+ def toString(self):
3163
+ """!
3164
+ Returns a human-readable string representation of this PatchCodeParameters.
3165
+ @return string A string that represents this PatchCodeParameters.
3166
+ """
3167
+ return self.getJavaClass().toString()
3168
+
3046
3169
  class HanXinParameters(Assist.BaseJavaClass):
3047
3170
  """!
3048
3171
  Han Xin parameters.
@@ -3121,6 +3244,68 @@ class HanXinParameters(Assist.BaseJavaClass):
3121
3244
  """
3122
3245
  return self.getJavaClass().toString()
3123
3246
 
3247
+ class DataMatrixExtCodetextBuilder(ExtCodetextBuilder):
3248
+ """!
3249
+ <p>
3250
+ Extended codetext generator for 2D DataMatrix barcodes for ExtendedCodetext Mode of DataMatrixEncodeMode
3251
+ </p>
3252
+
3253
+ \code
3254
+ # Extended codetext mode
3255
+ # create codetext
3256
+ textBuilder = DataMatrixExtCodetextBuilder()
3257
+ codetextBuilder.addECICodetextWithEncodeMode(ECIEncodings.Win1251, DataMatrixEncodeMode.BYTES, "World")
3258
+ codetextBuilder.addPlainCodetext("Will")
3259
+ codetextBuilder.addECICodetext(ECIEncodings.UTF_8, "犬Right狗")
3260
+ codetextBuilder.addCodetextWithEncodeMode(DataMatrixEncodeMode.C_40, "ABCDE")
3261
+ # generate codetext
3262
+ codetext = textBuilder.getExtendedCodetext()
3263
+ # generate
3264
+ generator = BarcodeGenerator(EncodeTypes.DATA_MATRIX, None, codetext)
3265
+ generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT)
3266
+ generator.save("test.bmp", BarcodeImageFormat.BMP)
3267
+ \endcode
3268
+ """
3269
+ JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwDataMatrixExtCodetextBuilder"
3270
+
3271
+ def __init__(self):
3272
+ java_class_link = jpype.JClass(DataMatrixExtCodetextBuilder.JAVA_CLASS_NAME)
3273
+ javaClass = java_class_link()
3274
+ super().__init__(javaClass)
3275
+
3276
+ @staticmethod
3277
+ def construct(javaClass):
3278
+ obj = DataMatrixExtCodetextBuilder()
3279
+ obj.setJavaClass(javaClass)
3280
+ return obj
3281
+
3282
+ def init(self):
3283
+ pass
3284
+
3285
+ def addECICodetextWithEncodeMode(self, ECIEncoding, encodeMode, codetext):
3286
+ """
3287
+ Adds codetext with Extended Channel Identifier with defined encode mode
3288
+ :param ECIEncoding: Extended Channel Identifier
3289
+ :param encodeMode: Encode mode value
3290
+ :param codetext: Codetext in unicode to add as extended codetext item with Extended Channel Identifier with defined encode mode
3291
+ """
3292
+ self.getJavaClass().addECICodetextWithEncodeMode(ECIEncoding, encodeMode, codetext)
3293
+
3294
+ def addCodetextWithEncodeMode(self, encodeMode, codetext):
3295
+ """
3296
+ Adds codetext with defined encode mode to the extended codetext items
3297
+ :param encodeMode: Encode mode value
3298
+ :param codetext: Codetext in unicode to add as extended codetext item
3299
+ """
3300
+ self.getJavaClass().addCodetextWithEncodeMode(encodeMode, codetext)
3301
+
3302
+ def getExtendedCodetext(self):
3303
+ """
3304
+ Generates Extended codetext from the extended codetext list.
3305
+ :return: Extended codetext as string
3306
+ """
3307
+ return self.getJavaClass().getExtendedCodetext()
3308
+
3124
3309
  class MacroCharacter:
3125
3310
  """!
3126
3311
  Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
@@ -3129,11 +3314,11 @@ class MacroCharacter:
3129
3314
 
3130
3315
  \code
3131
3316
  # to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
3132
- generator = BarcodeGenerator(EncodeTypes.DATA_MATRIX, "10123ABC\u001D10123ABC");
3133
- generator.getParameters().getBarcode().getDataMatrix().setMacroCharacters(MacroCharacter.MACRO_05);
3134
- reader = BarCodeReader(generator.generateBarCodeImage(), None, DecodeType.GS_1_DATA_MATRIX);
3317
+ generator = BarcodeGenerator(EncodeTypes.DATA_MATRIX, "10123ABC\u001D10123ABC")
3318
+ generator.getParameters().getBarcode().getDataMatrix().setMacroCharacters(MacroCharacter.MACRO_05)
3319
+ reader = BarCodeReader(generator.generateBarCodeImage(), None, DecodeType.GS_1_DATA_MATRIX)
3135
3320
  for result in reader.readBarCodes():
3136
- System.out.println("BarCode CodeText: " + result.getCodeText());
3321
+ print("BarCode CodeText: " + result.getCodeText())
3137
3322
  \endcode
3138
3323
  """
3139
3324
 
@@ -3209,10 +3394,7 @@ class DataMatrixEncodeMode(Enum):
3209
3394
  ASCII = 1
3210
3395
 
3211
3396
  ## Encode 8 bit values
3212
- FULL = 6
3213
-
3214
- ## Encode with the encoding specified in BarCodeBuilder.CodeTextEncoding
3215
- CUSTOM = 7
3397
+ BYTES = 6
3216
3398
 
3217
3399
  ## Uses C40 encoding. Encodes Upper-case alphanumeric, Lower case and special characters
3218
3400
  C40 = 8
@@ -4520,7 +4702,6 @@ class CustomerInformationInterpretingType(Enum):
4520
4702
  class TwoDComponentType(Enum):
4521
4703
  """!
4522
4704
  Type of 2D component
4523
-
4524
4705
  This sample shows how to create and save a GS1 Composite Bar image.
4525
4706
  Note that 1D codetext and 2D codetext are separated by symbol '/'
4526
4707
  \code
@@ -4570,54 +4751,62 @@ class Pdf417MacroTerminator(Enum):
4570
4751
  class MaxiCodeEncodeMode(Enum):
4571
4752
  """!
4572
4753
  Encoding mode for MaxiCode barcodes.
4573
- \code
4574
- codetext = "犬Right狗"
4575
- generator = BarcodeGenerator(EncodeTypes.MAXI_CODE, codetext))
4576
- generator.getParameters().getBarcode().getMaxiCode().setECIEncoding(ECIEncodings.UTF8)
4577
- generator.save("test.bmp", BarCodeImageFormat.BMP)
4578
-
4579
- encodedArr = [ 0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9 ]
4580
-
4581
- strBld = StringBuilder()
4582
- for bval in encodedArr:
4583
- strBld.append(bval)
4584
- codetext = strBld.toString()
4585
-
4586
- generator = BarcodeGenerator(EncodeTypes.MAXI_CODE, codetext))
4587
- generator.getParameters().getBarcode().getMaxiCode().setMaxiCodeEncodeMode(MaxiCodeEncodeMode.BYTES)
4588
- generator.save("test.bmp", BarCodeImageFormat.BMP)
4589
-
4590
- textBuilder = MaxiCodeExtCodetextBuilder()
4591
- textBuilder.addECICodetext(ECIEncodings.Win1251, "Will")
4592
- textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗")
4593
- textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗")
4594
- textBuilder.addPlainCodetext("Plain text")
4595
-
4596
- codetext = textBuilder.getExtendedCodetext()
4597
-
4598
- generator = BarcodeGenerator(EncodeTypes.MAXI_CODE, codetext))
4599
- generator.getParameters().getBarcode().getMaxiCode().setMaxiCodeEncodeMode(MaxiCodeEncodeMode.EXTENDED_CODETEXT)
4600
- generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text")
4601
- generator.save("test.bmp", BarCodeImageFormat.BMP)
4602
- \endcode
4603
4754
 
4755
+ \code
4756
+ # Auto mode
4757
+ codetext = "犬Right狗";
4758
+ generator = BarcodeGenerator(EncodeTypes.MAXI_CODE, codetext));
4759
+ generator.getParameters().getBarcode().getMaxiCode().setECIEncoding(ECIEncodings.UTF8);
4760
+ generator.save("test.bmp", BarcodeImageFormat.BMP);
4761
+ \endcode
4762
+ \code
4763
+ #Bytes mode
4764
+ encodedArr = [ 0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9 ];
4765
+
4766
+ # encode array to string
4767
+ strBld = "";
4768
+ for bval in encodedArr:
4769
+ strBld += bval;
4770
+ codetext = strBld;
4771
+
4772
+ generator = new BarcodeGenerator(EncodeTypes.MAXI_CODE, codetext))
4773
+ generator.getParameters().getBarcode().getMaxiCode().setMaxiCodeEncodeMode(MaxiCodeEncodeMode.BYTES);
4774
+ generator.save("test.bmp", BarcodeImageFormat.BMP);
4775
+
4776
+ \endcode
4777
+ \code
4778
+ # Extended codetext mode
4779
+ # create codetext
4780
+ textBuilder = new MaxiCodeExtCodetextBuilder();
4781
+ textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
4782
+ textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗");
4783
+ textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
4784
+ textBuilder.addPlainCodetext("Plain text");
4785
+
4786
+ # generate codetext
4787
+ codetext = textBuilder.getExtendedCodetext();
4604
4788
 
4605
- AUTO = 0 - Encode codetext with value set in the ECIEncoding property.
4606
- BYTES = 1 - Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
4607
- EXTENDED_CODETEXT = 2 - Extended mode which supports multi ECI modes.
4608
- It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.
4609
- Use Display2DText property to set visible text to removing managing characters.
4610
- ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
4611
- All unicode characters after ECI identifier are automatically encoded into correct character codeset.
4612
- AUTO = 0 - Encode codetext with value set in the ECIEncoding property.
4613
- BYTES = 1 - Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
4614
- EXTENDED_CODETEXT = 2 - Extended mode which supports multi ECI modes.
4615
- It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.
4616
- Use Display2DText property to set visible text to removing managing characters.
4617
- ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
4618
- All unicode characters after ECI identifier are automatically encoded into correct character codeset.
4789
+ # generate
4790
+ generator = new BarcodeGenerator(EncodeTypes.MaxiCode, codetext);
4791
+ generator.getParameters().getBarcode().getMaxiCode().setMaxiCodeEncodeMode(MaxiCodeEncodeMode.EXTENDED_CODETEXT);
4792
+ generator.getParameters().getBarcode().getMaxiCode().setTwoDDisplayText("My Text");
4793
+ generator.save("test.bmp", BarcodeImageFormat.BMP)
4794
+ \endcode
4619
4795
  """
4620
4796
 
4797
+ ## Encode codetext with value set in the ECIEncoding property.
4798
+ AUTO = 0
4799
+
4800
+ ## Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
4801
+ BYTES = 1
4802
+
4803
+ ## Extended mode which supports multi ECI modes.<br>
4804
+ # It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.<br>
4805
+ # Use Display2DText property to set visible text to removing managing characters.<br>
4806
+ # ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier<br>
4807
+ # All unicode characters after ECI identifier are automatically encoded into correct character codeset.
4808
+ EXTENDED_CODETEXT = 2
4809
+
4621
4810
  class MaxiCodeMode(Enum):
4622
4811
  """!
4623
4812
  Encoding mode for MaxiCode barcodes.
@@ -5109,10 +5298,10 @@ class HanXinEncodeMode(Enum):
5109
5298
  \endcode
5110
5299
  \code
5111
5300
  # URI mode
5112
- codetext = "https://www.test.com/%BC%DE%%%ab/search=test";
5113
- generator = BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
5114
- generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.URI);
5115
- generator.save("test.bmp", BarcodeImageFormat.BMP);
5301
+ codetext = "https://www.test.com/%BC%DE%%%ab/search=test"
5302
+ generator = BarcodeGenerator(EncodeTypes.HAN_XIN, codetext)
5303
+ generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.URI)
5304
+ generator.save("test.bmp", BarcodeImageFormat.BMP)
5116
5305
  \endcode
5117
5306
  """
5118
5307
 
@@ -5134,4 +5323,280 @@ class HanXinEncodeMode(Enum):
5134
5323
  URI = 4
5135
5324
 
5136
5325
  ## Extended mode will allow more flexible combinations of other modes, this mode is currently not implemented.
5137
- EXTENDED = 5
5326
+ EXTENDED = 5
5327
+
5328
+ class Code128EncodeMode(Enum):
5329
+ """!
5330
+ <p>
5331
+ Encoding mode for Code128 barcodes.
5332
+ {@code Code 128} specification.
5333
+ </p><p><hr><blockquote><pre>
5334
+ Thos code demonstrates how to generate code 128 with different encodings
5335
+ <pre>
5336
+
5337
+ \code
5338
+
5339
+ # Generate code 128 with ISO 15417 encoding
5340
+ generator = BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890")
5341
+ generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.AUTO)
5342
+ generator.save("d:\\code128Auto.png", BarCodeImageFormat.PNG)
5343
+
5344
+ #Generate code 128 only with Codeset A encoding
5345
+ generator = BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890")
5346
+ generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.CODE_A)
5347
+ generator.save("d:\\code128CodeA.png", BarCodeImageFormat.PNG)
5348
+ \endcode
5349
+ """
5350
+
5351
+ AUTO = 0
5352
+ """!
5353
+ Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.
5354
+ """
5355
+
5356
+ CODE_A = 1
5357
+ """!
5358
+ Encode codetext only in 128A codeset.
5359
+ """
5360
+
5361
+ CODE_B = 2
5362
+ """!
5363
+ Encode codetext only in 128B codeset.
5364
+ """
5365
+
5366
+ CODE_C = 4
5367
+ """!
5368
+ Encode codetext only in 128C codeset.
5369
+ """
5370
+
5371
+ CODE_AB = 3
5372
+ """!
5373
+ Encode codetext only in 128A and 128B codesets.
5374
+ """
5375
+
5376
+ CODE_AC = 5
5377
+ """!
5378
+ Encode codetext only in 128A and 128C codesets.
5379
+ """
5380
+
5381
+ CODE_BC = 6
5382
+ """!
5383
+ Encode codetext only in 128B and 128C codesets.
5384
+ """
5385
+
5386
+ class DataMatrixVersion(Enum):
5387
+ """!
5388
+ Specify the type of the ECC to encode.
5389
+ """
5390
+
5391
+ ## Specifies to automatically pick up the smallest size for DataMatrix.
5392
+ AUTO = 0
5393
+
5394
+ ## Instructs to get symbol sizes from Rows And Columns parameters. Note that DataMatrix does not support
5395
+ ROWS_COLUMNS = 1
5396
+
5397
+ ## Specifies size of 9 x 9 modules for ECC000 type.
5398
+ ECC000_9x9 = 2
5399
+
5400
+ ## Specifies size of 11 x 11 modules for ECC000-ECC050 types.
5401
+ ECC000_050_11x11 = 3
5402
+
5403
+ ## Specifies size of 13 x 13 modules for ECC000-ECC100 types.
5404
+ ECC000_100_13x13 = 4
5405
+
5406
+ ## Specifies size of 15 x 15 modules for ECC000-ECC100 types.
5407
+ ECC000_100_15x15 = 5
5408
+
5409
+ ## Specifies size of 17 x 17 modules for ECC000-ECC140 types.
5410
+ ECC000_140_17x17 = 6
5411
+
5412
+ ## Specifies size of 19 x 19 modules for ECC000-ECC140 types.
5413
+ ECC000_140_19x19 = 7
5414
+
5415
+ ## Specifies size of 21 x 21 modules for ECC000-ECC140 types.
5416
+ ECC000_140_21x21 = 8
5417
+
5418
+ ## Specifies size of 23 x 23 modules for ECC000-ECC140 types.
5419
+ ECC000_140_23x23 = 9
5420
+
5421
+ ## Specifies size of 25 x 25 modules for ECC000-ECC140 types.
5422
+ ECC000_140_25x25 = 10
5423
+
5424
+ ## Specifies size of 27 x 27 modules for ECC000-ECC140 types.
5425
+ ECC000_140_27x27 = 11
5426
+
5427
+ ## Specifies size of 29 x 29 modules for ECC000-ECC140 types.
5428
+ ECC000_140_29x29 = 12
5429
+
5430
+ ## Specifies size of 31 x 31 modules for ECC000-ECC140 types.
5431
+ ECC000_140_31x31 = 13
5432
+
5433
+ ## Specifies size of 33 x 33 modules for ECC000-ECC140 types.
5434
+ ECC000_140_33x33 = 14
5435
+
5436
+ ## Specifies size of 35 x 35 modules for ECC000-ECC140 types.
5437
+ ECC000_140_35x35 = 15
5438
+
5439
+ ## Specifies size of 37 x 37 modules for ECC000-ECC140 types.
5440
+ ECC000_140_37x37 = 16
5441
+
5442
+ ## Specifies size of 39 x 39 modules for ECC000-ECC140 types.
5443
+ ECC000_140_39x39 = 17
5444
+
5445
+ ## Specifies size of 41 x 41 modules for ECC000-ECC140 types.
5446
+ ECC000_140_41x41 = 18
5447
+
5448
+ ## Specifies size of 43 x 43 modules for ECC000-ECC140 types.
5449
+ ECC000_140_43x43 = 19
5450
+
5451
+ ## Specifies size of 45 x 45 modules for ECC000-ECC140 types.
5452
+ ECC000_140_45x45 = 20
5453
+
5454
+ ## Specifies size of 47 x 47 modules for ECC000-ECC140 types.
5455
+ ECC000_140_47x47 = 21
5456
+
5457
+ ## Specifies size of 49 x 49 modules for ECC000-ECC140 types.
5458
+ ECC000_140_49x49 = 22
5459
+
5460
+ ## Specifies size of 10 x 10 modules for ECC200 type.
5461
+ ECC200_10x10 = 23
5462
+
5463
+ ## Specifies size of 12 x 12 modules for ECC200 type.
5464
+ ECC200_12x12 = 24
5465
+
5466
+ ## Specifies size of 14 x 14 modules for ECC200 type.
5467
+ ECC200_14x14 = 25
5468
+
5469
+ ## Specifies size of 16 x 16 modules for ECC200 type.
5470
+ ECC200_16x16 = 26
5471
+
5472
+ ## Specifies size of 18 x 18 modules for ECC200 type.
5473
+ ECC200_18x18 = 27
5474
+
5475
+ ## Specifies size of 20 x 20 modules for ECC200 type.
5476
+ ECC200_20x20 = 28
5477
+
5478
+ ## Specifies size of 22 x 22 modules for ECC200 type.
5479
+ ECC200_22x22 = 29
5480
+
5481
+ ## Specifies size of 24 x 24 modules for ECC200 type.
5482
+ ECC200_24x24 = 30
5483
+
5484
+ ## Specifies size of 26 x 26 modules for ECC200 type.
5485
+ ECC200_26x26 = 31
5486
+
5487
+ ## Specifies size of 32 x 32 modules for ECC200 type.
5488
+ ECC200_32x32 = 32
5489
+
5490
+ ## Specifies size of 36 x 36 modules for ECC200 type.
5491
+ ECC200_36x36 = 33
5492
+
5493
+ ## Specifies size of 40 x 40 modules for ECC200 type.
5494
+ ECC200_40x40 = 34
5495
+
5496
+ ## Specifies size of 44 x 44 modules for ECC200 type.
5497
+ ECC200_44x44 = 35
5498
+
5499
+ ## Specifies size of 48 x 48 modules for ECC200 type.
5500
+ ECC200_48x48 = 36
5501
+
5502
+ ## Specifies size of 52 x 52 modules for ECC200 type.
5503
+ ECC200_52x52 = 37
5504
+
5505
+ ## Specifies size of 64 x 64 modules for ECC200 type.
5506
+ ECC200_64x64 = 38
5507
+
5508
+ ## Specifies size of 72 x 72 modules for ECC200 type.
5509
+ ECC200_72x72 = 39
5510
+
5511
+ ## Specifies size of 80 x 80 modules for ECC200 type.
5512
+ ECC200_80x80 = 40
5513
+
5514
+ ## Specifies size of 88 x 88 modules for ECC200 type.
5515
+ ECC200_88x88 = 41
5516
+
5517
+ ## Specifies size of 96 x 96 modules for ECC200 type.
5518
+ ECC200_96x96 = 42
5519
+
5520
+ ## Specifies size of 104 x 104 modules for ECC200 type.
5521
+ ECC200_104x104 = 43
5522
+
5523
+ ## Specifies size of 120 x 120 modules for ECC200 type.
5524
+ ECC200_120x120 = 44
5525
+
5526
+ ## Specifies size of 132 x 132 modules for ECC200 type.
5527
+ ECC200_132x132 = 45
5528
+
5529
+ ## Specifies size of 144 x 144 modules for ECC200 type.
5530
+ ECC200_144x144 = 46
5531
+
5532
+ ## Specifies size of 8 x 18 modules for ECC200 type.
5533
+ ECC200_8x18 = 47
5534
+
5535
+ ## Specifies size of 8 x 32 modules for ECC200 type.
5536
+ ECC200_8x32 = 48
5537
+
5538
+ ## Specifies size of 12 x 26 modules for ECC200 type.
5539
+ ECC200_12x26 = 49
5540
+
5541
+ ## Specifies size of 12 x 36 modules for ECC200 type.
5542
+ ECC200_12x36 = 50
5543
+
5544
+ ## Specifies size of 16 x 36 modules for ECC200 type.
5545
+ ECC200_16x36 = 51
5546
+
5547
+ ## Specifies size of 16 x 48 modules for ECC200 type.
5548
+ ECC200_16x48 = 52
5549
+
5550
+ ## Specifies size of 8 x 48 modules for DMRE barcodes.
5551
+ DMRE_8x48 = 53
5552
+
5553
+ ## Specifies size of 8 x 64 modules for DMRE barcodes.
5554
+ DMRE_8x64 = 54
5555
+
5556
+ ## Specifies size of 8 x 80 modules for DMRE barcodes.
5557
+ DMRE_8x80 = 55
5558
+
5559
+ ## Specifies size of 8 x 96 modules for DMRE barcodes.
5560
+ DMRE_8x96 = 56
5561
+
5562
+ ## Specifies size of 8 x 120 modules for DMRE barcodes.
5563
+ DMRE_8x120 = 57
5564
+
5565
+ ## Specifies size of 8 x 144 modules for DMRE barcodes.
5566
+ DMRE_8x144 = 58
5567
+
5568
+ ## Specifies size of 12 x 64 modules for DMRE barcodes.
5569
+ DMRE_12x64 = 59
5570
+
5571
+ ## Specifies size of 12 x 88 modules for DMRE barcodes.
5572
+ DMRE_12x88 = 60
5573
+
5574
+ ## Specifies size of 16 x 64 modules for DMRE barcodes.
5575
+ DMRE_16x64 = 61
5576
+
5577
+ ## Specifies size of 20 x 36 modules for DMRE barcodes.
5578
+ DMRE_20x36 = 62
5579
+
5580
+ ## Specifies size of 20 x 44 modules for DMRE barcodes.
5581
+ DMRE_20x44 = 63
5582
+
5583
+ ## Specifies size of 20 x 64 modules for DMRE barcodes.
5584
+ DMRE_20x64 = 64
5585
+
5586
+ ## Specifies size of 22 x 48 modules for DMRE barcodes.
5587
+ DMRE_22x48 = 65
5588
+
5589
+ ## Specifies size of 24 x 48 modules for DMRE barcodes.
5590
+ DMRE_24x48 = 66
5591
+
5592
+ ## Specifies size of 24 x 64 modules for DMRE barcodes.
5593
+ DMRE_24x64 = 67
5594
+
5595
+ ## Specifies size of 26 x 40 modules for DMRE barcodes.
5596
+ DMRE_26x40 = 68
5597
+
5598
+ ## Specifies size of 26 x 48 modules for DMRE barcodes.
5599
+ DMRE_26x48 = 69
5600
+
5601
+ ## Specifies size of 26 x 64 modules for DMRE barcodes.
5602
+ DMRE_26x64 = 70
@@ -1261,6 +1261,7 @@ class BarCodeExtendedParameters(Assist.BaseJavaClass):
1261
1261
  self._dataBarParameters = None
1262
1262
  self._maxiCodeParameters = None
1263
1263
  self._dotCodeExtendedParameters = None
1264
+ self._dataMatrixExtendedParameters = None
1264
1265
  super().__init__(javaClass)
1265
1266
  self.init()
1266
1267
 
@@ -1272,6 +1273,7 @@ class BarCodeExtendedParameters(Assist.BaseJavaClass):
1272
1273
  self._dataBarParameters = DataBarExtendedParameters(self.getJavaClass().getDataBar())
1273
1274
  self._maxiCodeParameters = MaxiCodeExtendedParameters(self.getJavaClass().getMaxiCode())
1274
1275
  self._dotCodeExtendedParameters = DotCodeExtendedParameters(self.getJavaClass().getDotCode())
1276
+ self._dataMatrixExtendedParameters = DataMatrixExtendedParameters(self.getJavaClass().getDataMatrix())
1275
1277
 
1276
1278
  def getDataBar(self):
1277
1279
  """!
@@ -1299,6 +1301,12 @@ class BarCodeExtendedParameters(Assist.BaseJavaClass):
1299
1301
  """
1300
1302
  return self._dotCodeExtendedParameters
1301
1303
 
1304
+ def getDataMatrix(self):
1305
+ """!
1306
+ <p>Gets a DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode</p>Value: A DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode
1307
+ """
1308
+ return self._dataMatrixExtendedParameters
1309
+
1302
1310
  def getCode128(self):
1303
1311
  """!
1304
1312
  Gets a special data Code128ExtendedParameters of Code128 recognized barcode Value: A special data Code128ExtendedParameters of Code128 recognized barcode
@@ -1880,14 +1888,14 @@ class Code128DataPortion(Assist.BaseJavaClass):
1880
1888
  Gets the type of Code128 subset
1881
1889
  @return: The type of Code128 subset
1882
1890
  """
1883
- return self.getJavaClass().getCode128SubType()
1891
+ return Code128SubType(self.getJavaClass().getCode128SubType())
1884
1892
 
1885
1893
  def setCode128SubType(self, value):
1886
1894
  """!
1887
1895
  Gets the type of Code128 subset
1888
1896
  @return: The type of Code128 subset
1889
1897
  """
1890
- self.getJavaClass().setCode128SubType(value)
1898
+ self.getJavaClass().setCode128SubType(value.value)
1891
1899
 
1892
1900
  def init(self):
1893
1901
  return
@@ -2435,6 +2443,89 @@ class DotCodeExtendedParameters(Assist.BaseJavaClass):
2435
2443
  def init(self):
2436
2444
  pass
2437
2445
 
2446
+
2447
+ class DataMatrixExtendedParameters(Assist.BaseJavaClass):
2448
+ """!
2449
+ <p>
2450
+ Stores special data of DataMatrix recognized barcode
2451
+ </p>
2452
+ This sample shows how to get DataMatrix raw values
2453
+
2454
+ \code
2455
+
2456
+ generator = BarcodeGenerator(EncodeTypes.DATA_MATRIX, "12345"))
2457
+ generator.save("c:\\test.png", BarcodeImageFormat.PNG);
2458
+
2459
+ reader = new BarCodeReader("c:\\test.png", None, DecodeType.DATA_MATRIX))
2460
+ for result in reader.readBarCodes():
2461
+ console.log("BarCode type: " + result.getCodeTypeName())
2462
+ console.log("BarCode codetext: " + result.getCodeText())
2463
+ console.log("DataMatrix barcode ID: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodeId())
2464
+ console.log("DataMatrix barcodes count: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodesCount())
2465
+ console.log("DataMatrix file ID: " + result.getExtended().getDataMatrix().getStructuredAppendFileId())
2466
+ console.log("DataMatrix is reader programming: " + result.getExtended().getDataMatrix().isReaderProgramming())
2467
+ \endcode
2468
+ """
2469
+ def __init__(self, javaClass):
2470
+ super().__init__(javaClass)
2471
+
2472
+ def init(self):
2473
+ pass
2474
+
2475
+ def getStructuredAppendBarcodesCount(self):
2476
+ """!
2477
+ Gets the DataMatrix structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.
2478
+ @return: The count of the DataMatrix structured append mode barcode.
2479
+ """
2480
+ return self.getJavaClass().getStructuredAppendBarcodesCount()
2481
+
2482
+ def getStructuredAppendBarcodeId(self):
2483
+ """!
2484
+ Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count.
2485
+ Default value is -1.
2486
+
2487
+ @return: The ID of the DataMatrix structured append mode barcode.
2488
+ """
2489
+ return self.getJavaClass().getStructuredAppendBarcodeId()
2490
+
2491
+ def getStructuredAppendFileId(self):
2492
+ """
2493
+ Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count.
2494
+ Default value is -1.
2495
+
2496
+ :return: The ID of the DataMatrix structured append mode barcode.
2497
+ """
2498
+ return self.getJavaClass().getStructuredAppendFileId()
2499
+
2500
+ def isReaderProgramming(self):
2501
+ """!
2502
+ Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
2503
+ Default value is false.
2504
+ """
2505
+ return self.getJavaClass().isReaderProgramming()
2506
+
2507
+ def equals(self, obj):
2508
+ """!
2509
+ Returns a value indicating whether this instance is equal to a specified {@code DataMatrixExtendedParameters} value.
2510
+ :param obj: An System.Object value to compare to this instance.
2511
+ :return: {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
2512
+ """
2513
+ return self.getJavaClass().equals(obj.getJavaClass())
2514
+
2515
+ def hashCode(self):
2516
+ """!
2517
+ Returns the hash code for this instance.
2518
+ :return: A 32-bit signed integer hash code.
2519
+ """
2520
+ return self.getJavaClass().hashCode()
2521
+
2522
+ def toString(self):
2523
+ """!
2524
+ Returns a human-readable string representation of this {@code DataMatrixExtendedParameters}.
2525
+ @return: A string that represents this {@code DataMatrixExtendedParameters}.
2526
+ """
2527
+ return self.getJavaClass().toString()
2528
+
2438
2529
  class DecodeType(Enum):
2439
2530
  """!
2440
2531
  Specify the type of barcode to read.
@@ -3,6 +3,6 @@ import os
3
3
  from asposebarcode import Generation, Recognition, Assist
4
4
 
5
5
  __asposebarcode_dir__ = os.path.dirname(__file__)
6
- __barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-23.6.jar"
6
+ __barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-23.7.jar"
7
7
  jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.class.path=%s" % __barcode_jar_path__)
8
8
  __all__ = ['Assist','Recognition','Generation','ComplexBarcode']
@@ -1,8 +1,8 @@
1
1
  from setuptools import setup
2
2
 
3
3
  NAME = "aspose-barcode-for-python-via-java"
4
- VERSION = "23.6.0"
5
- REQUIRES = ["JPype1==1.2.1"]
4
+ VERSION = "23.7"
5
+ REQUIRES = ["JPype1==1.4.1"]
6
6
 
7
7
  setup(
8
8
  name=NAME,