java 如何使用java生成条形码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4703318/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 07:36:23  来源:igfitidea点击:

how to generate barcodes using java

javabarcode

提问by mani

Is it possible to generate barcodes using java? If so how can i do that? Appreciate any information.

是否可以使用java生成条形码?如果是这样,我该怎么做?欣赏任何信息。

回答by Brian Clapper

There are some existing components out there that'll help. For instance:

有一些现有的组件会有所帮助。例如:

回答by Sean Owen

ZXinggenerates QR codes, EAN-8, EAN-13, UPC-A, Code 128, and Code 39.

ZXing生成二维码,EAN-8、EAN-13、UPC-A、Code 128、Code 39。

回答by gonella

Take a look in this how to, using ZXing. http://www.vineetmanohar.com/2010/09/java-barcode-api/

看看这个如何,使用 ZXing。http://www.vineetmanohar.com/2010/09/java-barcode-api/

Maven dependency:

Maven 依赖:

<dependency>
        <groupId>com.google.zxing</groupId>
        <artifactId>core</artifactId>
        <version>3.2.0</version>
    </dependency>
    <dependency>
        <groupId>com.google.zxing</groupId>
        <artifactId>javase</artifactId>
        <version>3.2.0</version>
    </dependency>