iTextSharp 自动换行

发布于 2024-07-30 06:29:16 字数 135 浏览 2 评论 0原文

我目前正在使用 iTextSharp 将动态文本/图像内容从模板添加到 PDF。

我想知道当我需要自动换行功能时最好使用哪种结构?

例如,我接受的描述最长可达 30 个单词,并且会跨越多行。

谢谢

I am currently using iTextSharp to add dynamic text/image content to a PDF from a template.

I was wondering what construct is best to use when I need a word-wrap feature?

For example, I take in a description which can be up to 30 words long and it will span multiple lines.

Thanks

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

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

发布评论

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

评论(1

初相遇 2024-08-06 06:29:16

似乎简单的列文本就是答案;)也可以使用 PDFPTable 来实现。

愚蠢的 VS2008 只需要重新启动即可工作 -.-

Seems simple column text was the answer ;) Can also be achieve using PDFPTable too.

Silly VS2008 just needed a restart for it to work -.-

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