Question 1:
With the below code to put text in a PDF…..
var headingText = new Label(HeadingText, MarginX, MarginY, page.Dimensions.Width - MarginX, 20, HeadingTextFont, HeadingTextPoints, HeadingTextColor);
I have the hard coded 20 for “Height”. Is there anyway for this value to be dynamic based on the amount of text? If not, how can I calculate “height” that is based on only what is needed for the text?
Question 2:
Is there anyway to detect if text will run off the side or bottom of the document (or not) due to the fact the page is not long or wide enough ?
Thanks