If you want to add more space before a Paragraph
, you can do this:
paragraph.SpacingBefore = 10;
If you want to add more space after a Paragraph
, you can do this:
paragraph.SpacingAfter = 10;
Note that the value of these properties are expressing in user units. By default 1 inch equals 72 user units.
If you want to change the distance between the lines of a Paragraph
, change the leading: Changing text line spacing
Update:
In the comment, you are describing a situation in which you need to decide to add the full Paragraph
in case it fits, or to move it to another column in case it doesn't fit.
The only way to achieve this, is to use ColumnText
in simulation mode. Simulation mode means that you're not using ColumnText
to actually add the content to the page. You are only adding the content to check whether or not the content was fully added, or to get the number of lines that were added, or to find out the Y position after adding the content. This principle has been explained many times before: