How to generate a barcode (code 128) with 44 characters and width equals 7.9 centimeters (223,937 points) in java?

huangapple 未分类评论50阅读模式
英文:

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格式的条形码。

How to generate a barcode (code 128) with 44 characters and width equals 7.9 centimeters (223,937 points) in java?

英文:

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.

How to generate a barcode (code 128) with 44 characters and width equals 7.9 centimeters (223,937 points) in java?

Can someone help me?

huangapple
  • 本文由 发表于 2020年5月4日 06:43:29
  • 转载请务必保留本文链接:https://java.coder-hub.com/61582600.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定