iTextSharp - calculating phrase/paragraph height before adding to column
I am creating PDF work orders that have a varying amount of items and
notes. I am using ColumnText.SetSimpleColumn(phrase, x, y, x2, y2, height,
alignment) to add text to a single column.
I can get the ColumnText.YLine value, but only after applying it to the
ColumnText object with the Go() method.
What I want to do is to either pre-calculate the final YLine value or undo
the adding of a phrase if the YLine is past mjy bottom threshold so I can
manually add another page and continue. Is this possible?
No comments:
Post a Comment