英文:
How to generate a barcode (code 128) with 44 characters and width equals 7.9 centimeters (223,937 points) in java?
问题
我可以生成宽度为300的条形码,但无论我使用哪个Java库,我都无法找出如何生成较小尺寸的条形码。如果我尝试调整条形码的大小,它会失去质量,并且在线扫描仪无法读取它(https://zxing.org/w/decode.jspx)。我已经尝试使用了barcode4j、barbecue、zxing、keepdynamic和IDAutomation等库。
我想使用的字符串是:22200435041996000168550010000001321731592625
所生成的条形码应与下方图像中的矩形内的条形码相同,该矩形宽度为7.9厘米。
这是一个PDF格式的条形码。
英文:
I can generate barcodes with 300 width, but no matter java library i use , i can't figure out how to generate one with smaller sises. If i try to resize the barcode it loses its quality and the online scaners don't reead it (https://zxing.org/w/decode.jspx).
i already tryed using barcode4j, barbiecue, xzing, keepdynamic and IDAutomation libraries.
The string i want to use is this 22200435041996000168550010000001321731592625
The barcode should be as in the image below inside the rect thas has 7.9 centimeters.
It's a pdf.
Can someone help me?
专注分享java语言的经验与见解,让所有开发者获益!
评论