【发布时间】:2023-12-14 22:22:01
【问题描述】:
我创建了一个生成 PDF417 二维条码的工具。输出 png 文件为 290x78 像素。
此宽度和高度背后的原因是用于创建此符号的公式,以便条形码扫描仪正确读取。
我的符号是 13 列 39 行。
这个公式是:
Width = ((17 * # of columns) + 69) X + 2 (size of quiet zone)
Height = (# of rows) (row height) + 2 (size of quiet zone)
所以:
17 * 13 + 69 = 290px
39 * 2 = 78px
我的问题是我用来创建这些条码的软件允许您将文件保存到这个大小,但以不同的大小打印。
这些打印参数结果如下,但我不知道如何计算它们:
X Dimension (in) :0.0067
Y Dimension (in) :0.0133
Height x Width (in) :0.52 x 1.93
Height x Width (mm) :13.21 x 49.11
Rows x Columns : 39 x 13
Error Correction Level :5
Bytes Encoded :257
SLD Codeword :1
Data Codewords :157
Pad Codewords :285
MPDF Codewords :0
EC Codewords :64
Total Codewords :507
这是我目前使用的程序的快照:
【问题讨论】:
-
我已经编辑了你的标题。请参阅“Should questions include “tags” in their titles?”,其中的共识是“不,他们不应该”。
-
不知道是什么问题,请问软件作者解决这个怎么样?
-
没有问题。解决方案是数学。我的问题是如何在 1.93 英寸处打印 290 像素和在 0.52 英寸处打印 78 像素。