Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
iText 7.0.0
我有一个由 Adobe LiveCycle ES 10 创建的 PDF,它生成一个带有
/DA /Arial-BoldMT 9.00 Tf 0.000 0.000 1.000 rg
这会导致 PdfFormField.regenerateField() 失败,它期望文本字体大小为整数(我在 PDF 规范中没有看到任何具体提及这是真的)
对于我的特殊情况,一个可接受的解决方法似乎只是在字典中设置 /V,但奇怪的是为什么 setValue() 工作这么努力?
这在 iText 7.0.1 中已修复。字体大小现在作为十进制值处理,并在整个 API 中作为浮点数公开