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?
Asked
Active
Viewed 1.0k times
5
-
One of these answers (not the highest voted) may help: https://stackoverflow.com/questions/4158336/how-to-insert-blank-lines-in-pdf – achAmháin Jun 12 '18 at 13:14
-
Possible duplicate of [How to insert blank lines in PDF?](https://stackoverflow.com/questions/4158336/how-to-insert-blank-lines-in-pdf) – Luuklag Jun 12 '18 at 13:17
1 Answers
15
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.

Alexey Subach
- 11,903
- 7
- 34
- 60