问题描述
如何为带有 boxable 的 pdfbox 解决这个问题.
我进入 table.draw
Helvetica 字体中没有 U+000D 的字形
怎么办.我正在用可装箱的东西搭建桌子
该错误告诉您用于填充表格的字符串包含 CR(回车)字符.
不要在这些字符串中使用控制字符(如 CR、LF、TAB、...),因为您的软件堆栈不会将它们解释为换行符之类的意思;相反,它试图将其解释为它失败的字体中的字形.
如果您需要在可装箱的表格中换行,请尝试使用 或
代替.根据他们的README,他们支持
单元格内容中的 HTML 标签(不是全部! 、、、
)
、、
、
How to solve this for pdfbox with boxable.
I am getting in table.draw as
No glyph for U+000D in font Helvetica
What to do.I am building table with boxable
That error tells you that your strings you use to fill the tables contain CR (carriage return) characters.
Do not use control characters (like CR, LF, TAB, ...) in those string as your software stack does not interpret them to mean something like a line break; instead it tries to interpret it as a glyph in the font which it fails doing.
If you need to break lines in boxable tables, try using <p>
or <br>
instead. According to their README, they support
这篇关于字体 Helvetica 中没有 U+000D 的字形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!