0

I am trying to make pdf to look like this

enter image description here

First column it fill until the end of the page then go to next column. When the page is fill then break into new page. Its that possible with ITextSharp ? Or is there any simple plugin that would work better for my current situation.

I try using PdfpTable but i don't know how i can get information about my last element in the column then jump to next column.

DarkVision
  • 1,373
  • 3
  • 20
  • 33

1 Answers1

1

For a basic simple PdfPTable the answer is no. A table's height is determined by the sum of each row's height which is determined by the max height of each cell in that row.

However, in your case you want to know the table's height in the first column which is before the table's row's cells have been completed. If iText actually answered the question of the row's height in the first column before further cells were added, new cells in that row would have to be forced to fit and could get cutoff.

That said, if you can fix every cell's height to a value you feel comrotable with you can use general transposition to swap rows for columns.

Community
  • 1
  • 1
Chris Haas
  • 53,986
  • 12
  • 141
  • 274