itext7 中 Chunk.NEWLINE 的替代品是什么

What is the replacement for Chunk.NEWLINE in itext7

Chunk.NEWLINE 在 iText 5 中添加了一个新行。但是 iText 7 不支持 Chunk。如何使用 iText 7 添加新行?

请参考 关于在 iText7 中替换 Chunk 的回答。现在要添加新行,您应该使用 new Text("\n") 并将其放入段落。