pdf中的文本超出边框
我在 php 中使用 tcpdf 创建了一个 pdf。我有一张一行一列的表格。当我将内容从文本区域的表单中放入时,表单中的内容流出表格边框。我怎样才能使它包含在边界本身中???
I have created a pdf using tcpdf in php. i have a table with one row and one column. when i put the content from a form which is a textarea, the content in the form flows out of the table border. how can i make it so that it is contained in the border itslef???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你用什么方法来写表格?
TCPDF 网站上有第 48 号示例,我发现换行符效果很好:
http://www.tecnick.com/pagefiles/tcpdf/example_048.pdf
http://www.tecnick.com/pagefiles/tcpdf/example_048.phps
他们使用 writeHTML:
http://www.tecnick.com/ pagefiles/tcpdf/doc/com-tecnick-tcpdf/TCPDF.html#methodwriteHTML
换行不起作用的众多原因中的两个可能是:
& ;nbsp;
)Which method do you use for writing the table?
On TCPDF website there is example no.48, where I see line breaks working well:
http://www.tecnick.com/pagefiles/tcpdf/example_048.pdf
http://www.tecnick.com/pagefiles/tcpdf/example_048.phps
They use writeHTML:
http://www.tecnick.com/pagefiles/tcpdf/doc/com-tecnick-tcpdf/TCPDF.html#methodwriteHTML
Two of many reasons why line-breaking does not work could be: