📄 pdf417.java
字号:
0x17836, 0x10578, 0x182be, 0x1053c, 0x1051e, 0x105be, 0x10d70, 0x186bc, 0x10d38, 0x1869e,
0x10d1c, 0x10d0e, 0x104bc, 0x10dbc, 0x1049e, 0x10d9e, 0x11d60, 0x18eb8, 0x1c75e, 0x11d30,
0x18e9c, 0x11d18, 0x18e8e, 0x11d0c, 0x11d06, 0x10cb8, 0x1865e, 0x11db8, 0x10c9c, 0x11d9c,
0x10c8e, 0x11d8e, 0x1045e, 0x10cde, 0x11dde, 0x13d40, 0x19eb0, 0x1cf5c, 0x13d20, 0x19e98,
0x1cf4e, 0x13d10, 0x19e8c, 0x13d08, 0x19e86, 0x13d04, 0x13d02, 0x11cb0, 0x18e5c, 0x13db0,
0x11c98, 0x18e4e, 0x13d98, 0x19ece, 0x13d8c, 0x11c86, 0x13d86, 0x10c5c, 0x11cdc, 0x10c4e,
0x13ddc, 0x11cce, 0x13dce, 0x1bea0, 0x1df58, 0x1efae, 0x1be90, 0x1df4c, 0x1be88, 0x1df46,
0x1be84, 0x1be82, 0x13ca0, 0x19e58, 0x1cf2e, 0x17da0, 0x13c90, 0x19e4c, 0x17d90, 0x1becc,
0x19e46, 0x17d88, 0x13c84, 0x17d84, 0x13c82, 0x17d82, 0x11c58, 0x18e2e, 0x13cd8, 0x11c4c,
0x17dd8, 0x13ccc, 0x11c46, 0x17dcc, 0x13cc6, 0x17dc6, 0x10c2e, 0x11c6e, 0x13cee, 0x17dee,
0x1be50, 0x1df2c, 0x1be48, 0x1df26, 0x1be44, 0x1be42, 0x13c50, 0x19e2c, 0x17cd0, 0x13c48,
0x19e26, 0x17cc8, 0x1be66, 0x17cc4, 0x13c42, 0x17cc2, 0x11c2c, 0x13c6c, 0x11c26, 0x17cec,
0x13c66, 0x17ce6, 0x1be28, 0x1df16, 0x1be24, 0x1be22, 0x13c28, 0x19e16, 0x17c68, 0x13c24,
0x17c64, 0x13c22, 0x17c62, 0x11c16, 0x13c36, 0x17c76, 0x1be14, 0x1be12, 0x13c14, 0x17c34,
0x13c12, 0x17c32, 0x102bc, 0x1029e, 0x106b8, 0x1835e, 0x1069c, 0x1068e, 0x1025e, 0x106de,
0x10eb0, 0x1875c, 0x10e98, 0x1874e, 0x10e8c, 0x10e86, 0x1065c, 0x10edc, 0x1064e, 0x10ece,
0x11ea0, 0x18f58, 0x1c7ae, 0x11e90, 0x18f4c, 0x11e88, 0x18f46, 0x11e84, 0x11e82, 0x10e58,
0x1872e, 0x11ed8, 0x18f6e, 0x11ecc, 0x10e46, 0x11ec6, 0x1062e, 0x10e6e, 0x11eee, 0x19f50,
0x1cfac, 0x19f48, 0x1cfa6, 0x19f44, 0x19f42, 0x11e50, 0x18f2c, 0x13ed0, 0x19f6c, 0x18f26,
0x13ec8, 0x11e44, 0x13ec4, 0x11e42, 0x13ec2, 0x10e2c, 0x11e6c, 0x10e26, 0x13eec, 0x11e66,
0x13ee6, 0x1dfa8, 0x1efd6, 0x1dfa4, 0x1dfa2, 0x19f28, 0x1cf96, 0x1bf68, 0x19f24, 0x1bf64,
0x19f22, 0x1bf62, 0x11e28, 0x18f16, 0x13e68, 0x11e24, 0x17ee8, 0x13e64, 0x11e22, 0x17ee4,
0x13e62, 0x17ee2, 0x10e16, 0x11e36, 0x13e76, 0x17ef6, 0x1df94, 0x1df92, 0x19f14, 0x1bf34,
0x19f12, 0x1bf32, 0x11e14, 0x13e34, 0x11e12, 0x17e74, 0x13e32, 0x17e72, 0x1df8a, 0x19f0a,
0x1bf1a, 0x11e0a, 0x13e1a, 0x17e3a, 0x1035c, 0x1034e, 0x10758, 0x183ae, 0x1074c, 0x10746,
0x1032e, 0x1076e, 0x10f50, 0x187ac, 0x10f48, 0x187a6, 0x10f44, 0x10f42, 0x1072c, 0x10f6c,
0x10726, 0x10f66, 0x18fa8, 0x1c7d6, 0x18fa4, 0x18fa2, 0x10f28, 0x18796, 0x11f68, 0x18fb6,
0x11f64, 0x10f22, 0x11f62, 0x10716, 0x10f36, 0x11f76, 0x1cfd4, 0x1cfd2, 0x18f94, 0x19fb4,
0x18f92, 0x19fb2, 0x10f14, 0x11f34, 0x10f12, 0x13f74, 0x11f32, 0x13f72, 0x1cfca, 0x18f8a,
0x19f9a, 0x10f0a, 0x11f1a, 0x13f3a, 0x103ac, 0x103a6, 0x107a8, 0x183d6, 0x107a4, 0x107a2,
0x10396, 0x107b6, 0x187d4, 0x187d2, 0x10794, 0x10fb4, 0x10792, 0x10fb2, 0x1c7ea
}
};
public int PDFRows;
private int runtimeRows;
public int PDFColumns;
public int PDFECLevel;
public int PDFMode;
public static final int PDF_BINARY = 0;
public static final int PDF_TEXT = 1;
public static final int PDF_NUMERIC = 2;
protected int currentX;
protected int currentY;
private int extraHeight;
public PDF417()
{
code = "NO DATA";
binaryCode = null;
processTilde = true;
leftMarginCM = 0.20000000000000001D;
topMarginCM = 0.20000000000000001D;
leftMarginPixels = 0;
topMarginPixels = 0;
endOfCode = 0;
backColor = Color.white;
codeText = "";
narrowBarPixels = 0;
widthBarPixels = 0;
narrowBarCM = 0.0D;
widthBarCM = 0.0D;
resolution = 38;
barHeightPixels = 0;
N = 2D;
X = 0.029999999999999999D;
XtoYRatio = 3D;
barHeightCM = XtoYRatio * X;
truncated = false;
width = 170;
height = 70;
pWidth = width;
pHeight = height;
autoSize = true;
textFont = new Font("Arial", 0, 11);
fontColor = Color.black;
barColor = Color.black;
I = 1.0D;
H = 0.45000000000000001D;
L = 0.0D;
rotate = 0;
PDFRows = 0;
runtimeRows = 0;
PDFColumns = 5;
PDFECLevel = 2;
PDFMode = 0;
currentX = 0;
currentY = 0;
extraHeight = 0;
}
public void setDataToEncode(String s)
{
code = s;
binaryCode = null;
invalidate();
}
public String getDataToEncode()
{
return code;
}
public boolean getProcessTilde()
{
return processTilde;
}
public void setProcessTilde(boolean flag)
{
processTilde = flag;
}
public void setLeftMarginCM(double d1)
{
leftMarginCM = d1;
invalidate();
}
public double getLeftMarginCM()
{
return leftMarginCM;
}
public void setTopMarginCM(double d1)
{
topMarginCM = d1;
invalidate();
}
public double getTopMarginCM()
{
return topMarginCM;
}
public void setBackground(Color color)
{
backColor = color;
invalidate();
}
public Color getBackground()
{
return backColor;
}
public void setPixelsPerCM(int i)
{
resolution = i;
invalidate();
}
public int getPixelsPerCM()
{
return resolution;
}
public void setXDimensionCM(double d1)
{
X = d1;
invalidate();
}
public double getXDimensionCM()
{
return X;
}
public void setXtoYRatio(double d1)
{
if(d1 < 0.20000000000000001D)
d1 = 0.20000000000000001D;
if(d1 > 10D)
d1 = 10D;
XtoYRatio = d1;
invalidate();
}
public double getXtoYRatio()
{
return XtoYRatio;
}
public void setTruncated(boolean flag)
{
truncated = flag;
invalidate();
}
public boolean getTruncated()
{
return truncated;
}
public void setAutoSize(boolean flag)
{
autoSize = flag;
invalidate();
}
public boolean getAutoSize()
{
return autoSize;
}
public Dimension getPreferredSize()
{
return new Dimension(pWidth, pHeight);
}
public Dimension getMinimumSize()
{
Dimension dimension = new Dimension(10, 10);
return dimension;
}
public void setFont(Font font)
{
textFont = font;
invalidate();
}
public Font getFont()
{
return textFont;
}
public void setTextFontColor(Color color)
{
fontColor = color;
invalidate();
}
public Color getTextFontColor()
{
return fontColor;
}
public void setForeground(Color color)
{
barColor = color;
invalidate();
}
public Color getForeground()
{
return barColor;
}
public void setRotationAngle(int i)
{
rotate = i;
invalidate();
}
public int getRotationAngle()
{
return rotate;
}
public void setPDFRows(int i)
{
PDFRows = i;
invalidate();
}
public int getPDFRows()
{
return PDFRows;
}
public void setPDFColumns(int i)
{
PDFColumns = i;
invalidate();
}
public int getPDFColumns()
{
return PDFColumns;
}
public void setPDFErrorCorrection(int i)
{
PDFECLevel = i;
invalidate();
}
public int getPDFErrorCorrection()
{
return PDFECLevel;
}
public void setPDFMode(int i)
{
PDFMode = i;
invalidate();
}
public int getPDFMode()
{
return PDFMode;
}
protected int findChar(String as[][], String s)
{
for(int i = 0; i < as.length; i++)
if(s.compareTo(as[i][0]) == 0)
return i;
return -1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -