ABCPDF Stamp() 不支持字段上的字体设置
检查附加到 doc.Form 的各个字段的信息后,我看到了预期的字体设置。然而,一旦调用 Stamp() 并且 PDF 渲染完成,字体大小就不会保留,尽管字体本身和一些相对大小会保留。
版本:7 和 8
此外,尽管
- doc.Form.NeedAppearances
- doc.Form.GenerateAppearances
- doc.Form.FormatFields
设置为 true,但系统似乎会忽略 Adobe JavaScript,例如:
getField('MyField').textSize = 12
After inspecting the information of individual fields attached to the doc.Form I see the expected font settings. However, once Stamp() is called and the PDF rendering completes the font size is not retained, although the font itself and some relative sizing is.
Versions: 7 and 8
Additionally, despite having :
- doc.Form.NeedAppearances
- doc.Form.GenerateAppearances
- doc.Form.FormatFields
set true, the system appears to ignore Adobe JavaScript such as:
getField('MyField').textSize = 12
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果其他人遇到此错误,您应该首先检查您正在填写的 PDF 上的字段大小。如果字段大小不足以容纳您选择的字体,则 ABCPDF 会将字体缩放到其选择的大小。一旦字段足够大以包含字体,根据 ABC 的标准,字体大小将受到您选择的设置的限制。在这种情况下,您应该尽可能扩大您的字段。
Should anyone else encounter this error, you should start by checking the size of the fields on the PDF you are filling. If the field sizes are not deemed large enough to hold your selected font then ABCPDF scales the font to a size of its choosing. Once the fields are large enough to contain the font, by ABC's standards, then the font size will be limited by the settings you choose. In this case you should oversize your fields whenever possible.