aspose-barcode-for-python-via-java 26.1.0__tar.gz → 26.2.0__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.
- aspose_barcode_for_python_via_java-26.2.0/MANIFEST.in +4 -0
- aspose_barcode_for_python_via_java-26.2.0/PKG-INFO +12 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/__init__.py +3 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/__init__.py +0 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/__init__.py +0 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/_java_barcode.py +8 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/_java_compex_barcode.py +27 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/_java_generation.py +13 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/_java_recognition.py +14 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_runtime.py +42 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_std.py +11 -0
- aspose_barcode_for_python_via_java-26.1.0/asposebarcode/jlib/aspose-barcode-python-26.1.jar → aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/jlib/aspose-barcode-python-26.2.jar +0 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/__init__.py +65 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/address.py +253 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/address_type.py +21 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/alternative_scheme.py +57 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/complex_barcode_generator.py +96 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/complex_codetext_reader.py +144 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/data_element.py +48 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_lic_combined_codetext.py +131 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_lic_complex_codetext.py +50 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_lic_date_format.py +33 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_lic_primary_data_codetext.py +96 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_lic_secondary_and_additional_data_codetext.py +122 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_pas_codetext.py +137 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_pas_data_location.py +50 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_pas_data_type.py +80 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/hibc_pas_record.py +71 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/i_complex_codetext.py +43 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/mailmark_2d_codetext.py +312 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/mailmark_2d_type.py +21 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/mailmark_codetext.py +165 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/mandatory_fields.py +372 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_codetext.py +103 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_codetext_mode_2.py +99 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_codetext_mode_3.py +113 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_second_message.py +20 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_standard_codetext.py +128 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_standard_second_message.py +62 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_standart_second_message.py +22 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_structured_codetext.py +150 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/maxi_code_structured_second_message.py +96 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/optional_fields.py +305 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/primary_data.py +100 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/qr_bill_standard_version.py +12 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/secondary_and_additional_data.py +151 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/subfile_properties.py +76 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/swiss_qr_bill.py +261 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/swiss_qr_codetext.py +72 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/usa_drive_id_codetext.py +202 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/usa_drive_id_country.py +18 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/usa_drive_id_eye_color.py +42 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/usa_drive_id_hair_color.py +39 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/usa_drive_id_jurisd_subfile.py +102 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/usa_driveis_sex.py +21 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/core/__init__.py +19 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/core/assist.py +36 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/core/exceptions.py +39 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/core/license.py +55 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/core/types_geom.py +141 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/__init__.py +171 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/australian_post_parameters.py +107 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/auto_size_mode.py +42 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/aztec_encode_mode.py +40 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/aztec_ext_codetext_builder.py +50 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/aztec_parameters.py +250 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/aztec_symbol_mode.py +31 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/barcode_classifications.py +26 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/barcode_generator.py +217 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/barcode_image_format.py +35 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/barcode_parameters.py +447 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/base_generation_parameters.py +204 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/border_dash_style.py +24 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/border_parameters.py +99 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/caption_parameters.py +153 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/cmyk_color.py +42 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/codabar_checksum_mode.py +15 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/codabar_parameters.py +175 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/codabar_symbol.py +21 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/codablock_parameters.py +65 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/code_128_encode_mode.py +43 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/code_128_parameters.py +76 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/code_16k_parameters.py +69 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/code_location.py +18 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/codetext_parameters.py +175 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/coupon_parameters.py +45 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/customer_information_interpreting_type.py +51 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/data_matrix_ecc_type.py +30 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/data_matrix_encode_mode.py +104 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/data_matrix_ext_codetext_builder.py +70 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/data_matrix_parameters.py +317 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/data_matrix_version.py +222 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/databar_parameters.py +90 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/dotcode_encode_mode.py +91 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/dotcode_ext_codetext_builder.py +71 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/dotcode_parameters.py +255 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/eci_encodings.py +113 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/enable_checksum.py +27 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/encode_types.py +298 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/ext_codetext_builder.py +53 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/font_mode.py +15 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/font_style.py +24 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/font_unit.py +93 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/graphics_unit.py +37 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/gs1_composite_bar_parameters.py +67 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/han_xin_encode_mode.py +52 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/han_xin_error_level.py +21 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/han_xin_ext_codetext_builder.py +137 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/han_xin_parameters.py +220 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/han_xin_version.py +265 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/hsla_color.py +80 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/image_parameters.py +52 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/itf_14_border_type.py +24 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/itf_parameters.py +143 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/macro_character.py +63 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/maxi_code_encode_mode.py +79 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/maxi_code_ext_codetext_builder.py +52 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/maxi_code_mode.py +110 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/maxi_code_parameters.py +247 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/micro_qr_version.py +26 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/padding.py +88 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/patch_code_parameters.py +86 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/patch_format.py +24 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/pdf_417_compaction_mode.py +21 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/pdf_417_encode_mode.py +32 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/pdf_417_error_level.py +35 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/pdf_417_macro_terminator.py +17 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/pdf_417_parameters.py +870 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/pdf_parameters.py +85 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/postal_parameters.py +70 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/qr_encode_mode.py +119 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/qr_encode_type.py +19 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/qr_error_level.py +21 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/qr_ext_codetext_builder.py +85 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/qr_parameters.py +301 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/qr_structured_append_parameters.py +58 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/qr_version.py +146 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/rect_micro_qr_version.py +77 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/supplement_parameters.py +49 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/svg_color_mode.py +23 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/svg_parameters.py +65 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/text_alignment.py +18 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/two_d_component_type.py +38 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/generation/unit.py +126 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/py.typed +0 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/__init__.py +65 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/australia_post_settings.py +33 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/aztec_extended_parameters.py +60 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/barcode_confidence.py +45 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/barcode_extended_parameters.py +116 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/barcode_quality_mode.py +24 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/barcode_reader.py +482 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/barcode_region_parameters.py +85 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/barcode_result.py +104 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/barcode_settings.py +46 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/checksum_validation.py +51 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/codabar_extended_parameters.py +141 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/code_128_data_portion.py +35 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/code_128_extended_parameters.py +76 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/code_128_sub_type.py +15 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/complex_background_mode.py +23 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/customer_information_interpreting_type.py +53 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/data_matrix_extended_parameters.py +75 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/databar_extended_parameters.py +48 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/decode_type.py +303 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/deconvolution_mode.py +27 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/dotcode_extended_parameters.py +136 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/gs_1_composite_bar_extended_parameters.py +62 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/inverse_image_mode.py +26 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/maxi_code_extended_parameters.py +123 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/one_d_extended_parameters.py +74 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/pdf_417_extended_parameters.py +134 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/qr_extended_parameters.py +150 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/quadrangle.py +149 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/quality_settings.py +141 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/recognition_aborted_exception.py +40 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/recognition/x_dimension_mode.py +33 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +12 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +185 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode_for_python_via_java.egg-info/requires.txt +1 -0
- aspose_barcode_for_python_via_java-26.2.0/aspose_barcode_for_python_via_java.egg-info/top_level.txt +1 -0
- aspose_barcode_for_python_via_java-26.2.0/setup.py +18 -0
- aspose_barcode_for_python_via_java-26.1.0/MANIFEST.in +0 -3
- aspose_barcode_for_python_via_java-26.1.0/PKG-INFO +0 -63
- aspose_barcode_for_python_via_java-26.1.0/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +0 -63
- aspose_barcode_for_python_via_java-26.1.0/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +0 -16
- aspose_barcode_for_python_via_java-26.1.0/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -1
- aspose_barcode_for_python_via_java-26.1.0/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -1
- aspose_barcode_for_python_via_java-26.1.0/asposebarcode/Assist.py +0 -338
- aspose_barcode_for_python_via_java-26.1.0/asposebarcode/ComplexBarcode.py +0 -4485
- aspose_barcode_for_python_via_java-26.1.0/asposebarcode/Generation.py +0 -7751
- aspose_barcode_for_python_via_java-26.1.0/asposebarcode/Recognition.py +0 -2986
- aspose_barcode_for_python_via_java-26.1.0/asposebarcode/__init__.py +0 -8
- aspose_barcode_for_python_via_java-26.1.0/setup.py +0 -24
- {aspose_barcode_for_python_via_java-26.1.0 → aspose_barcode_for_python_via_java-26.2.0}/README.md +0 -0
- {aspose_barcode_for_python_via_java-26.1.0 → aspose_barcode_for_python_via_java-26.2.0}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose_barcode_for_python_via_java-26.1.0 → aspose_barcode_for_python_via_java-26.2.0}/license/End+User+License+Agreement.html +0 -0
- {aspose_barcode_for_python_via_java-26.1.0 → aspose_barcode_for_python_via_java-26.2.0}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose_barcode_for_python_via_java-26.1.0 → aspose_barcode_for_python_via_java-26.2.0}/setup.cfg +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: aspose_barcode_for_python_via_java
|
|
3
|
+
Version: 26.2.0
|
|
4
|
+
Summary: Barcode generation and recognition component.
|
|
5
|
+
Home-page: UNKNOWN
|
|
6
|
+
Author: Aspose
|
|
7
|
+
License: UNKNOWN
|
|
8
|
+
Platform: UNKNOWN
|
|
9
|
+
Requires-Python: >=3.6
|
|
10
|
+
|
|
11
|
+
UNKNOWN
|
|
12
|
+
|
|
File without changes
|
|
File without changes
|
aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/_java_compex_barcode.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from jpype import JClass
|
|
2
|
+
|
|
3
|
+
from .._runtime import ensure_jvm
|
|
4
|
+
ensure_jvm()
|
|
5
|
+
|
|
6
|
+
_MW_Address = JClass("com.aspose.mw.barcode.complexbarcode.MwAddress")
|
|
7
|
+
_MW_AlternativeScheme = JClass("com.aspose.mw.barcode.complexbarcode.MwAlternativeScheme")
|
|
8
|
+
_MW_ComplexBarcodeGenerator = JClass("com.aspose.mw.barcode.complexbarcode.MwComplexBarcodeGenerator")
|
|
9
|
+
_MW_ComplexCodetextReader = JClass("com.aspose.mw.barcode.complexbarcode.MwComplexCodetextReader")
|
|
10
|
+
_MW_MaxiCodeCodetextMode2 = JClass("com.aspose.mw.barcode.complexbarcode.MwMaxiCodeCodetextMode2")
|
|
11
|
+
_MW_MaxiCodeCodetextMode3 = JClass("com.aspose.mw.barcode.complexbarcode.MwMaxiCodeCodetextMode3")
|
|
12
|
+
_MW_HIBCLICSecondaryAndAdditionalDataCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwHIBCLICSecondaryAndAdditionalDataCodetext")
|
|
13
|
+
_MW_HIBCLICPrimaryDataCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwHIBCLICPrimaryDataCodetext")
|
|
14
|
+
_MW_HIBCLICCombinedCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwHIBCLICCombinedCodetext")
|
|
15
|
+
_MW_HIBCPASCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwHIBCPASCodetext")
|
|
16
|
+
_MW_HIBCPASRecord = JClass("com.aspose.mw.barcode.complexbarcode.MwHIBCPASRecord")
|
|
17
|
+
_MW_Mailmark2DCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwMailmark2DCodetext")
|
|
18
|
+
_MW_MailmarkCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwMailmarkCodetext")
|
|
19
|
+
_MW_MaxiCodeStandardCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStandardCodetext")
|
|
20
|
+
_MW_MaxiCodeStandardSecondMessage = JClass("com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStandardSecondMessage")
|
|
21
|
+
_MW_MaxiCodeStructuredCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStructuredCodetext")
|
|
22
|
+
_MW_MaxiCodeStructuredSecondMessage = JClass("com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStructuredSecondMessage")
|
|
23
|
+
_MW_PrimaryData = JClass("com.aspose.mw.barcode.complexbarcode.MwPrimaryData")
|
|
24
|
+
_MW_SecondaryAndAdditionalData = JClass("com.aspose.mw.barcode.complexbarcode.MwSecondaryAndAdditionalData")
|
|
25
|
+
_MW_SwissQRCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwSwissQRCodetext")
|
|
26
|
+
_MW_SubfileProperties = JClass("com.aspose.mw.barcode.complexbarcode.MwUSADriveIdCodetext$MwSubfileProperties")
|
|
27
|
+
_MW_USADriveIdCodetext = JClass("com.aspose.mw.barcode.complexbarcode.MwUSADriveIdCodetext")
|
aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/_java_generation.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from jpype import JClass
|
|
2
|
+
|
|
3
|
+
from .._runtime import ensure_jvm
|
|
4
|
+
|
|
5
|
+
ensure_jvm()
|
|
6
|
+
|
|
7
|
+
_MW_BarcodeGenerator = JClass("com.aspose.mw.barcode.generation.MwBarcodeGenerator")
|
|
8
|
+
_MW_QrExtCodetextBuilder = JClass("com.aspose.mw.barcode.MwQrExtCodetextBuilder")
|
|
9
|
+
_MW_AztecExtCodetextBuilder = JClass("com.aspose.mw.barcode.generation.MwAztecExtCodetextBuilder")
|
|
10
|
+
_MW_MaxiCodeExtCodetextBuilder = JClass("com.aspose.mw.barcode.generation.MwAztecExtCodetextBuilder")
|
|
11
|
+
_MW_DataMatrixExtCodetextBuilder = JClass("com.aspose.mw.barcode.generation.MwDataMatrixExtCodetextBuilder")
|
|
12
|
+
_MW_DotCodeExtCodetextBuilder = JClass("com.aspose.mw.barcode.generation.MwDotCodeExtCodetextBuilder")
|
|
13
|
+
_MW_HanXinExtCodetextBuilder = JClass("com.aspose.mw.barcode.generation.MwHanXinExtCodetextBuilder")
|
aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/_java/_java_barcode/_java_recognition.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import jpype
|
|
2
|
+
|
|
3
|
+
from .._runtime import ensure_jvm
|
|
4
|
+
ensure_jvm()
|
|
5
|
+
|
|
6
|
+
_MW_DecodeType = jpype.JClass("com.aspose.barcode.barcoderecognition.DecodeType")
|
|
7
|
+
_MW_BaseDecodeType = jpype.JClass("com.aspose.barcode.barcoderecognition.BaseDecodeType")
|
|
8
|
+
_MW_BarcodeReader = jpype.JClass("com.aspose.mw.barcode.recognition.MwBarCodeReader")
|
|
9
|
+
_MW_Quadrangle = jpype.JClass("com.aspose.mw.barcode.recognition.MwQuadrangle")
|
|
10
|
+
_MW_QualitySettings = jpype.JClass("com.aspose.mw.barcode.recognition.MwQualitySettings")
|
|
11
|
+
_MW_RecognitionAbortedException = jpype.JClass("com.aspose.mw.barcode.recognition.MwRecognitionAbortedException")
|
|
12
|
+
_MW_DecodeTypeUtils = jpype.JClass("com.aspose.mw.barcode.recognition.MwDecodeTypeUtils")
|
|
13
|
+
|
|
14
|
+
_MW_ArrayBaseDecodeType = jpype.JArray(_MW_BaseDecodeType)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# aspose_barcode/_jvm.py
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import jpype
|
|
5
|
+
from typing import Iterable
|
|
6
|
+
|
|
7
|
+
def _norm_classpath(cp: Iterable[str]) -> list[str]:
|
|
8
|
+
# Expand wildcards and normalize
|
|
9
|
+
out: list[str] = []
|
|
10
|
+
for p in cp:
|
|
11
|
+
if not p:
|
|
12
|
+
continue
|
|
13
|
+
# Allow patterns like "lib/*"
|
|
14
|
+
if "*" in p:
|
|
15
|
+
import glob
|
|
16
|
+
out.extend(glob.glob(p))
|
|
17
|
+
else:
|
|
18
|
+
out.append(p)
|
|
19
|
+
return out
|
|
20
|
+
|
|
21
|
+
def ensure_jvm() -> None:
|
|
22
|
+
"""
|
|
23
|
+
Start JVM once per process with the given classpath.
|
|
24
|
+
Safe to call multiple times.
|
|
25
|
+
"""
|
|
26
|
+
if jpype.isJVMStarted():
|
|
27
|
+
return
|
|
28
|
+
__aspose_barcode_dir__ = os.path.dirname(__file__)
|
|
29
|
+
classpath = __aspose_barcode_dir__ + "../../_java/jlib/aspose-barcode-python-26.2.jar" #TODO
|
|
30
|
+
cp_list = [classpath]
|
|
31
|
+
# Fallback to env var if nothing passed
|
|
32
|
+
if not cp_list:
|
|
33
|
+
env_cp = os.environ.get("ASPOSE_BARCODE_CLASSPATH") # optional
|
|
34
|
+
if env_cp:
|
|
35
|
+
sep = os.pathsep
|
|
36
|
+
cp_list = env_cp.split(sep)
|
|
37
|
+
|
|
38
|
+
jpype.startJVM(
|
|
39
|
+
jpype.getDefaultJVMPath(),
|
|
40
|
+
classpath=cp_list,
|
|
41
|
+
convertStrings=True,
|
|
42
|
+
)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from jpype import JClass, JArray
|
|
2
|
+
|
|
3
|
+
from ._runtime import ensure_jvm
|
|
4
|
+
ensure_jvm()
|
|
5
|
+
|
|
6
|
+
_J_Point = JClass("java.awt.Point")
|
|
7
|
+
_J_Rectangle = JClass("java.awt.Rectangle")
|
|
8
|
+
|
|
9
|
+
_J_ArrayList = JClass("java.util.ArrayList")
|
|
10
|
+
|
|
11
|
+
_J_RectangleArray = JArray(_J_Rectangle)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from .address import Address
|
|
2
|
+
from .address_type import AddressType
|
|
3
|
+
from .alternative_scheme import AlternativeScheme
|
|
4
|
+
from .complex_codetext_reader import ComplexCodetextReader
|
|
5
|
+
from .hibc_lic_combined_codetext import HIBCLICCombinedCodetext
|
|
6
|
+
from .hibc_lic_complex_codetext import HIBCLICComplexCodetext
|
|
7
|
+
from .hibc_lic_date_format import HIBCLICDateFormat
|
|
8
|
+
from .hibc_lic_primary_data_codetext import HIBCLICPrimaryDataCodetext
|
|
9
|
+
from .hibc_lic_secondary_and_additional_data_codetext import HIBCLICSecondaryAndAdditionalDataCodetext
|
|
10
|
+
from .hibc_pas_data_type import HIBCPASDataType
|
|
11
|
+
from .hibc_pas_codetext import HIBCPASCodetext
|
|
12
|
+
from .hibc_pas_data_location import HIBCPASDataLocation
|
|
13
|
+
from .hibc_pas_record import HIBCPASRecord
|
|
14
|
+
from .i_complex_codetext import IComplexCodetext
|
|
15
|
+
from .mailmark_2d_codetext import Mailmark2DCodetext
|
|
16
|
+
from .mailmark_2d_type import Mailmark2DType
|
|
17
|
+
from .mailmark_codetext import MailmarkCodetext
|
|
18
|
+
from .maxi_code_codetext import MaxiCodeCodetext
|
|
19
|
+
from .maxi_code_codetext_mode_2 import MaxiCodeCodetextMode2
|
|
20
|
+
from .maxi_code_codetext_mode_3 import MaxiCodeCodetextMode3
|
|
21
|
+
from .maxi_code_second_message import MaxiCodeSecondMessage
|
|
22
|
+
from .maxi_code_standard_codetext import MaxiCodeStandardCodetext
|
|
23
|
+
from .maxi_code_standart_second_message import MaxiCodeStandartSecondMessage
|
|
24
|
+
from .maxi_code_structured_codetext import MaxiCodeStructuredCodetext
|
|
25
|
+
from .maxi_code_structured_second_message import MaxiCodeStructuredSecondMessage
|
|
26
|
+
from .primary_data import PrimaryData
|
|
27
|
+
from .qr_bill_standard_version import QrBillStandardVersion
|
|
28
|
+
from .secondary_and_additional_data import SecondaryAndAdditionalData
|
|
29
|
+
from .swiss_qr_bill import SwissQRBill
|
|
30
|
+
from .swiss_qr_codetext import SwissQRCodetext
|
|
31
|
+
from .complex_barcode_generator import ComplexBarcodeGenerator
|
|
32
|
+
|
|
33
|
+
__all__ = [
|
|
34
|
+
"Address",
|
|
35
|
+
"AddressType",
|
|
36
|
+
"AlternativeScheme",
|
|
37
|
+
"ComplexBarcodeGenerator",
|
|
38
|
+
"ComplexCodetextReader",
|
|
39
|
+
"HIBCLICCombinedCodetext",
|
|
40
|
+
"HIBCLICComplexCodetext",
|
|
41
|
+
"HIBCLICDateFormat",
|
|
42
|
+
"HIBCLICPrimaryDataCodetext",
|
|
43
|
+
"HIBCLICSecondaryAndAdditionalDataCodetext",
|
|
44
|
+
"HIBCPASCodetext",
|
|
45
|
+
"HIBCPASDataLocation",
|
|
46
|
+
"HIBCPASDataType",
|
|
47
|
+
"HIBCPASRecord",
|
|
48
|
+
"IComplexCodetext",
|
|
49
|
+
"Mailmark2DCodetext",
|
|
50
|
+
"Mailmark2DType",
|
|
51
|
+
"MailmarkCodetext",
|
|
52
|
+
"MaxiCodeCodetext",
|
|
53
|
+
"MaxiCodeCodetextMode2",
|
|
54
|
+
"MaxiCodeCodetextMode3",
|
|
55
|
+
"MaxiCodeSecondMessage",
|
|
56
|
+
"MaxiCodeStandardCodetext",
|
|
57
|
+
"MaxiCodeStandartSecondMessage",
|
|
58
|
+
"MaxiCodeStructuredCodetext",
|
|
59
|
+
"MaxiCodeStructuredSecondMessage",
|
|
60
|
+
"PrimaryData",
|
|
61
|
+
"QrBillStandardVersion",
|
|
62
|
+
"SecondaryAndAdditionalData",
|
|
63
|
+
"SwissQRBill",
|
|
64
|
+
"SwissQRCodetext"
|
|
65
|
+
]
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from .address_type import AddressType
|
|
4
|
+
from ..core import _MwWrapper
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from .._java._java_barcode._java_compex_barcode import _MW_Address
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Address(_MwWrapper):
|
|
10
|
+
"""!
|
|
11
|
+
Address of creditor or debtor.
|
|
12
|
+
You can either set street, house number, postal code and town (type structured address)
|
|
13
|
+
or address line 1 and 2 (type combined address elements). The type is automatically set
|
|
14
|
+
once any of these fields is set. Before setting the fields, the address type is undetermined.
|
|
15
|
+
If fields of both types are set, the address type becomes conflicting.
|
|
16
|
+
Name and country code must always be set unless all fields are empty.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def __init__(self) -> None:
|
|
20
|
+
super().__init__(_MW_Address())
|
|
21
|
+
#! self._initialize()
|
|
22
|
+
|
|
23
|
+
@classmethod
|
|
24
|
+
def _from_java_class(cls, java_class) -> Address:
|
|
25
|
+
address = cls()
|
|
26
|
+
address._set_java_class(java_class)
|
|
27
|
+
return address
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def type(self) -> AddressType:
|
|
31
|
+
return AddressType(self._get_java_class().getType())
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def name(self) -> Optional[str]:
|
|
35
|
+
"""!
|
|
36
|
+
Gets the name, either the first and last name of a natural person or the
|
|
37
|
+
company name of a legal person.
|
|
38
|
+
@return:The name.
|
|
39
|
+
"""
|
|
40
|
+
v = self._get_java_class().getName()
|
|
41
|
+
return str(v) if v is not None else None
|
|
42
|
+
|
|
43
|
+
@name.setter
|
|
44
|
+
def name(self, value: Optional[str]) -> None:
|
|
45
|
+
"""!
|
|
46
|
+
Sets the name, either the first and last name of a natural person or the
|
|
47
|
+
company name of a legal person.
|
|
48
|
+
@param:The name.
|
|
49
|
+
"""
|
|
50
|
+
self._get_java_class().setName(value)
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def address_line1(self) -> Optional[str]:
|
|
54
|
+
"""!
|
|
55
|
+
Gets the address line 1.
|
|
56
|
+
Address line 1 contains street name, house number or P.O. box.
|
|
57
|
+
Setting this field sets the address type to AddressType.CombinedElements unless it's already
|
|
58
|
+
AddressType.Structured, in which case it becomes AddressType.Conflicting.
|
|
59
|
+
This field is only used for combined elements addresses and is optional.
|
|
60
|
+
@return:The address line 1.
|
|
61
|
+
"""
|
|
62
|
+
v = self._get_java_class().getAddressLine1()
|
|
63
|
+
return str(v) if v is not None else None
|
|
64
|
+
|
|
65
|
+
@address_line1.setter
|
|
66
|
+
def address_line1(self, value: Optional[str]) -> None:
|
|
67
|
+
"""!
|
|
68
|
+
Sets the address line 1.
|
|
69
|
+
Address line 1 contains street name, house number or P.O. box.
|
|
70
|
+
Setting this field sets the address type to AddressType.CombinedElements unless it's already
|
|
71
|
+
AddressType.Structured, in which case it becomes AddressType.Conflicting.
|
|
72
|
+
This field is only used for combined elements addresses and is optional.
|
|
73
|
+
@param:The address line 1.
|
|
74
|
+
"""
|
|
75
|
+
self._get_java_class().setAddressLine1(value)
|
|
76
|
+
|
|
77
|
+
# --- address_line2 ---
|
|
78
|
+
@property
|
|
79
|
+
def address_line2(self) -> Optional[str]:
|
|
80
|
+
"""!
|
|
81
|
+
Gets the address line 2.
|
|
82
|
+
Address line 2 contains postal code and town.
|
|
83
|
+
Setting this field sets the address type to AddressType.CombinedElements unless it's already
|
|
84
|
+
AddressType.Structured, in which case it becomes AddressType.Conflicting.
|
|
85
|
+
This field is only used for combined elements addresses. For this type, it's mandatory.
|
|
86
|
+
@return: The address line 2.
|
|
87
|
+
"""
|
|
88
|
+
v = self._get_java_class().getAddressLine2()
|
|
89
|
+
return str(v) if v is not None else None
|
|
90
|
+
|
|
91
|
+
@address_line2.setter
|
|
92
|
+
def address_line2(self, value: Optional[str]) -> None:
|
|
93
|
+
"""!
|
|
94
|
+
Sets the address line 2.
|
|
95
|
+
Address line 2 contains postal code and town.
|
|
96
|
+
Setting this field sets the address type to AddressType.CombinedElements unless it's already
|
|
97
|
+
AddressType.Structured, in which case it becomes AddressType.Conflicting.
|
|
98
|
+
This field is only used for combined elements addresses. For this type, it's mandatory.
|
|
99
|
+
@param:The address line 2.
|
|
100
|
+
"""
|
|
101
|
+
self._get_java_class().setAddressLine2(value)
|
|
102
|
+
|
|
103
|
+
# --- street ---
|
|
104
|
+
@property
|
|
105
|
+
def street(self) -> Optional[str]:
|
|
106
|
+
"""!
|
|
107
|
+
Gets the street.
|
|
108
|
+
The street must be speicfied without house number.
|
|
109
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
110
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
111
|
+
This field is only used for structured addresses and is optional.
|
|
112
|
+
@return:The street.
|
|
113
|
+
"""
|
|
114
|
+
v = self._get_java_class().getStreet()
|
|
115
|
+
return str(v) if v is not None else None
|
|
116
|
+
|
|
117
|
+
@street.setter
|
|
118
|
+
def street(self, value: Optional[str]) -> None:
|
|
119
|
+
"""!
|
|
120
|
+
Sets the street.
|
|
121
|
+
The street must be speicfied without house number.
|
|
122
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
123
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
124
|
+
This field is only used for structured addresses and is optional.
|
|
125
|
+
@param:The street.
|
|
126
|
+
"""
|
|
127
|
+
self._get_java_class().setStreet(value)
|
|
128
|
+
|
|
129
|
+
# --- house_no ---
|
|
130
|
+
@property
|
|
131
|
+
def house_no(self) -> Optional[str]:
|
|
132
|
+
"""!
|
|
133
|
+
Gets the house number.
|
|
134
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
135
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
136
|
+
This field is only used for structured addresses and is optional.
|
|
137
|
+
@return:The house number.
|
|
138
|
+
"""
|
|
139
|
+
v = self._get_java_class().getHouseNo()
|
|
140
|
+
return str(v) if v is not None else None
|
|
141
|
+
|
|
142
|
+
@house_no.setter
|
|
143
|
+
def house_no(self, value: Optional[str]) -> None:
|
|
144
|
+
"""!
|
|
145
|
+
Sets the house number.
|
|
146
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
147
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
148
|
+
This field is only used for structured addresses and is optional.
|
|
149
|
+
@param:The house number.
|
|
150
|
+
"""
|
|
151
|
+
self._get_java_class().setHouseNo(value)
|
|
152
|
+
|
|
153
|
+
# --- postal_code ---
|
|
154
|
+
@property
|
|
155
|
+
def postal_code(self) -> Optional[str]:
|
|
156
|
+
"""!
|
|
157
|
+
Gets the postal code.
|
|
158
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
159
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
160
|
+
This field is only used for structured addresses. For this type, it's mandatory.
|
|
161
|
+
@return:The postal code.
|
|
162
|
+
"""
|
|
163
|
+
v = self._get_java_class().getPostalCode()
|
|
164
|
+
return str(v) if v is not None else None
|
|
165
|
+
|
|
166
|
+
@postal_code.setter
|
|
167
|
+
def postal_code(self, value: Optional[str]) -> None:
|
|
168
|
+
"""!
|
|
169
|
+
Sets the postal code.
|
|
170
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
171
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
172
|
+
This field is only used for structured addresses. For this type, it's mandatory.
|
|
173
|
+
@param:The postal code.
|
|
174
|
+
"""
|
|
175
|
+
self._get_java_class().setPostalCode(value)
|
|
176
|
+
|
|
177
|
+
# --- town ---
|
|
178
|
+
@property
|
|
179
|
+
def town(self) -> Optional[str]:
|
|
180
|
+
"""!
|
|
181
|
+
Gets the town or city.
|
|
182
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
183
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
184
|
+
This field is only used for structured addresses. For this type, it's mandatory.
|
|
185
|
+
@return:The town or city.
|
|
186
|
+
"""
|
|
187
|
+
v = self._get_java_class().getTown()
|
|
188
|
+
return str(v) if v is not None else None
|
|
189
|
+
|
|
190
|
+
@town.setter
|
|
191
|
+
def town(self, value: Optional[str]) -> None:
|
|
192
|
+
"""!
|
|
193
|
+
Sets the town or city.
|
|
194
|
+
Setting this field sets the address type to AddressType.Structured unless it's already
|
|
195
|
+
AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
|
|
196
|
+
This field is only used for structured addresses. For this type, it's mandatory.
|
|
197
|
+
@param:The town or city.
|
|
198
|
+
"""
|
|
199
|
+
self._get_java_class().setTown(value)
|
|
200
|
+
# --- country_code ---
|
|
201
|
+
@property
|
|
202
|
+
def country_code(self) -> Optional[str]:
|
|
203
|
+
"""!
|
|
204
|
+
Gets the two-letter ISO country code.
|
|
205
|
+
The country code is mandatory unless the entire address contains None or emtpy values.
|
|
206
|
+
@return:The ISO country code.
|
|
207
|
+
"""
|
|
208
|
+
v = self._get_java_class().getCountryCode()
|
|
209
|
+
return str(v) if v is not None else None
|
|
210
|
+
|
|
211
|
+
@country_code.setter
|
|
212
|
+
def country_code(self, value: Optional[str]) -> None:
|
|
213
|
+
"""!
|
|
214
|
+
Sets the two-letter ISO country code.
|
|
215
|
+
The country code is mandatory unless the entire address contains None or emtpy values.
|
|
216
|
+
@param:The ISO country code.
|
|
217
|
+
"""
|
|
218
|
+
self._get_java_class().setCountryCode(value)
|
|
219
|
+
|
|
220
|
+
def clear(self) -> None:
|
|
221
|
+
"""!
|
|
222
|
+
Clears all fields and sets the type to AddressType.Undetermined.
|
|
223
|
+
"""
|
|
224
|
+
self.name = (None)
|
|
225
|
+
self.address_line1 = (None)
|
|
226
|
+
self.address_line2 = (None)
|
|
227
|
+
self.street = (None)
|
|
228
|
+
self.house_no = (None)
|
|
229
|
+
self.postal_code = (None)
|
|
230
|
+
self.town = (None)
|
|
231
|
+
self.country_code = (None)
|
|
232
|
+
|
|
233
|
+
def __eq__(self, other: Address) -> bool:
|
|
234
|
+
"""!
|
|
235
|
+
Determines whether the specified object is equal to the current object.
|
|
236
|
+
@return True if the specified object is equal to the current object; otherwise, false.
|
|
237
|
+
@param obj The object to compare with the current object.
|
|
238
|
+
"""
|
|
239
|
+
if other is None:
|
|
240
|
+
return False
|
|
241
|
+
if not isinstance(other, Address):
|
|
242
|
+
return NotImplemented
|
|
243
|
+
return bool(self._get_java_class().equals(other._get_java_class()))
|
|
244
|
+
|
|
245
|
+
def __hash__(self) -> int:
|
|
246
|
+
"""!
|
|
247
|
+
Returns the hash code for the current instance.
|
|
248
|
+
@return A hash code for the current object.
|
|
249
|
+
"""
|
|
250
|
+
return int(self._get_java_class().hashCode())
|
|
251
|
+
|
|
252
|
+
def _initialize(self) -> None:
|
|
253
|
+
return
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from enum import Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AddressType(Enum):
|
|
7
|
+
"""!
|
|
8
|
+
Address type
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
# Undetermined
|
|
12
|
+
UNDETERMINED = 0
|
|
13
|
+
|
|
14
|
+
# Structured address
|
|
15
|
+
STRUCTURED = 1
|
|
16
|
+
|
|
17
|
+
# Combined address elements
|
|
18
|
+
COMBINED_ELEMENTS = 2
|
|
19
|
+
|
|
20
|
+
# Conflicting
|
|
21
|
+
CONFLICTING = 3
|
aspose_barcode_for_python_via_java-26.2.0/aspose_barcode/complex_barcode/alternative_scheme.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ..core import _MwWrapper
|
|
4
|
+
from typing import Optional
|
|
5
|
+
|
|
6
|
+
from .._java._java_barcode._java_compex_barcode import _MW_AlternativeScheme
|
|
7
|
+
|
|
8
|
+
class AlternativeScheme(_MwWrapper):
|
|
9
|
+
"""!
|
|
10
|
+
Alternative payment scheme instructions
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, instruction: str) -> None:
|
|
14
|
+
super().__init__(_MW_AlternativeScheme(instruction))
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def instruction(self) -> Optional[str]:
|
|
18
|
+
"""!
|
|
19
|
+
Gets the payment instruction for a given bill.
|
|
20
|
+
The instruction consists of a two letter abbreviation for the scheme, a separator characters
|
|
21
|
+
and a sequence of parameters(separated by the character at index 2).
|
|
22
|
+
@return:The payment instruction.
|
|
23
|
+
"""
|
|
24
|
+
v = self._get_java_class().getInstruction()
|
|
25
|
+
return str(v) if v is not None else None
|
|
26
|
+
|
|
27
|
+
@instruction.setter
|
|
28
|
+
def instruction(self, value: str) -> None:
|
|
29
|
+
"""!
|
|
30
|
+
Gets the payment instruction for a given bill.
|
|
31
|
+
The instruction consists of a two letter abbreviation for the scheme, a separator characters
|
|
32
|
+
and a sequence of parameters(separated by the character at index 2).
|
|
33
|
+
@param:The payment instruction.
|
|
34
|
+
"""
|
|
35
|
+
self._get_java_class().setInstruction(value)
|
|
36
|
+
|
|
37
|
+
def __eq__(self, other: AlternativeScheme) -> bool:
|
|
38
|
+
"""!
|
|
39
|
+
Determines whether the specified object is equal to the current object.
|
|
40
|
+
@return True if the specified object is equal to the current object; otherwise, false.
|
|
41
|
+
@param obj The object to compare with the current object.
|
|
42
|
+
"""
|
|
43
|
+
if other is None:
|
|
44
|
+
return False
|
|
45
|
+
if not isinstance(other, AlternativeScheme):
|
|
46
|
+
return NotImplemented
|
|
47
|
+
return bool(self._get_java_class().equals(other._get_java_class()))
|
|
48
|
+
|
|
49
|
+
def __hash__(self) -> int:
|
|
50
|
+
"""!
|
|
51
|
+
Returns the hash code for the current instance.
|
|
52
|
+
@return a hash code for the current object.
|
|
53
|
+
"""
|
|
54
|
+
return int(self._get_java_class().hashCode())
|
|
55
|
+
|
|
56
|
+
def _initialize(self) -> None:
|
|
57
|
+
return
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
from PIL import Image
|
|
5
|
+
from ..core import _MwWrapper, BarCodeException
|
|
6
|
+
from .i_complex_codetext import IComplexCodetext
|
|
7
|
+
|
|
8
|
+
import base64,io
|
|
9
|
+
|
|
10
|
+
from .._java._java_barcode._java_compex_barcode import _MW_ComplexBarcodeGenerator
|
|
11
|
+
|
|
12
|
+
from aspose_barcode.generation import BaseGenerationParameters, BarCodeImageFormat
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ComplexBarcodeGenerator(_MwWrapper):
|
|
16
|
+
"""!
|
|
17
|
+
ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.
|
|
18
|
+
This sample shows how to create and save a SwissQR image.
|
|
19
|
+
\code
|
|
20
|
+
swiss_qr_codetext = SwissQRCodetext(None)
|
|
21
|
+
bill = swiss_qr_codetext.bill
|
|
22
|
+
bill.account = "CH450023023099999999A"
|
|
23
|
+
bill.bill_information = "BillInformation"
|
|
24
|
+
bill.amount = 1024
|
|
25
|
+
|
|
26
|
+
creditor = bill.creditor
|
|
27
|
+
creditor.name = "Creditor.Name"
|
|
28
|
+
creditor.address_line1 = "Creditor.AddressLine1"
|
|
29
|
+
creditor.address_line2 = "Creditor.AddressLine2"
|
|
30
|
+
creditor.country_code = "Nl"
|
|
31
|
+
|
|
32
|
+
bill.unstructured_message = "UnstructuredMessage"
|
|
33
|
+
bill.reference = "Reference"
|
|
34
|
+
bill.alternative_schemes = [AlternativeScheme("AlternativeSchemeInstruction1"), AlternativeScheme("AlternativeSchemeInstruction2"),]
|
|
35
|
+
|
|
36
|
+
bill.debtor = Address()
|
|
37
|
+
debtor = bill.debtor
|
|
38
|
+
debtor.name = "Debtor.Name"
|
|
39
|
+
debtor.address_line1 = "Debtor.AddressLine1"
|
|
40
|
+
debtor.address_line2 = "Debtor.AddressLine2"
|
|
41
|
+
debtor.country_code = "LU"
|
|
42
|
+
|
|
43
|
+
cg = ComplexBarcodeGenerator(swiss_qr_codetext)
|
|
44
|
+
res = cg.generate_barcode_image()
|
|
45
|
+
\endcode
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def _initialize(self) -> None:
|
|
49
|
+
self._parameters: BaseGenerationParameters = BaseGenerationParameters(self._get_java_class().getParameters())
|
|
50
|
+
|
|
51
|
+
def __init__(self, complexCodetext: IComplexCodetext):
|
|
52
|
+
"""!
|
|
53
|
+
Creates an instance of ComplexBarcodeGenerator.
|
|
54
|
+
@param complexCodetext Complex codetext
|
|
55
|
+
"""
|
|
56
|
+
try:
|
|
57
|
+
self._parameters = None
|
|
58
|
+
super().__init__(_MW_ComplexBarcodeGenerator(complexCodetext._get_java_class()))
|
|
59
|
+
except Exception as e:
|
|
60
|
+
raise BarCodeException(e)
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def parameters(self) -> BaseGenerationParameters:
|
|
64
|
+
"""!
|
|
65
|
+
Generation parameters.
|
|
66
|
+
"""
|
|
67
|
+
return self._parameters
|
|
68
|
+
|
|
69
|
+
def generate_barcode_image(self) -> "Image.Image":
|
|
70
|
+
"""!
|
|
71
|
+
Generates complex barcode image under current settings.
|
|
72
|
+
@param value of BarCodeImageFormat (PNG, BMP, JPEG, GIF, TIFF)
|
|
73
|
+
default value is BarCodeImageFormat.PNG
|
|
74
|
+
@return Pillow Image object of barcode image
|
|
75
|
+
"""
|
|
76
|
+
bytes_data = base64.b64decode(str(self._get_java_class().generateBarCodeImage(BarCodeImageFormat.PNG.value)))
|
|
77
|
+
buf = io.BytesIO(bytes_data)
|
|
78
|
+
return Image.open(buf)
|
|
79
|
+
|
|
80
|
+
def save(self, image_source: Union[str, io.BytesIO], image_format: BarCodeImageFormat) -> None:
|
|
81
|
+
"""!
|
|
82
|
+
Save barcode image to specific file in specific format.
|
|
83
|
+
@param imagePath Path to save to.
|
|
84
|
+
@param imageFormat of BarCodeImageFormat enum (PNG, BMP, JPEG, GIF, TIFF)
|
|
85
|
+
\code
|
|
86
|
+
generator = BarcodeGenerator(EncodeTypes.CODE_128, "12345678")
|
|
87
|
+
generator.save(path_to_save, BarCodeImageFormat.PNG)
|
|
88
|
+
\endcode
|
|
89
|
+
"""
|
|
90
|
+
if not isinstance(image_source, (str, io.BytesIO)):
|
|
91
|
+
raise ValueError("image_source must be a string path or a BytesIO object")
|
|
92
|
+
try:
|
|
93
|
+
img = self.generate_barcode_image()
|
|
94
|
+
img.save(image_source, image_format.name)
|
|
95
|
+
except Exception as e:
|
|
96
|
+
raise IOError(f"Failed to save the image: {e}")
|