问题
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