What is the replacement for Chunk.NEWLINE in itext7

China☆狼群 提交于 2019-12-13 17:12:35

问题


Chunk.NEWLINE adds an new line in iText 5. But iText 7 do not support Chunk. How do I add a new line using iText 7?


回答1:


Please refer to this answer about replacement of Chunk in iText7. Now to add a new line you should use new Text("\n") and put it to a paragraph.



来源:https://stackoverflow.com/questions/50818091/what-is-the-replacement-for-chunk-newline-in-itext7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!