5

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?

Sai Garimella
  • 53
  • 1
  • 1
  • 4
  • 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 Answers1

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