使用 iTextSharp 填充大型文本字段

发布于 2024-11-07 23:18:10 字数 215 浏览 5 评论 0原文

我正在使用可能少量或大量的文本填充现有的 PDF MultiLine TextField。我有两个文本字段,它们分隔在两个页面上。有没有办法在第一个文本字段填满后让文本溢出到第二个文本字段中。

我知道将字体大小设置为 0 将使 iTextSharp 尝试适应文本,但在某些情况下文本太多,需要在第二页上继续。

据我所知,我什至无法弄清楚现有的文本字段是否已溢出。

谢谢

I'm populating an already existing PDF MultiLine TextField with possibly a small or large amount of text. I have two textfields that are separated across two pages. Is there a way to have text overflow into the second textfield after the first is filled up.

I know that setting the font size to 0 will make iTextSharp to try and fit the text, but there some instances where there is to much text and it needs to continue on a second page.

As far as I can tell, I cant even figure out if the existing textfield has overflowed or not.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥醉 2024-11-14 23:18:10

为什么不直接编写自己的 jquery / javascript 脚本来在第一个值的长度达到一定长度后更改文本框 Foxus 呢?

Why not just write your own jquery / javascript script to change the textbox foxus after the length of the first value reaches a certain length?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文