Hi,
I have a radiobuotton list with many items located near the bottom of pages.
Each item will be located under the previous and when one of them reach the bound of pages instead to display on the next page, it will be draw at the top of page.
Is there a method in the API to change the page of each single item?
I guess I will find same issue also for PddfCheckBoxList
This is an extract from my source code:
PdfRadioButtonListField questionRadioList = new PdfRadioButtonListField(pdfPage, "question" + crfQuestion.Id);
Answers.ForEach(ans =>
{
var startPoint = new PointF();
startPoint.X = _marginLeft;
startPoint.Y = lastResult.Bounds.Top + (first ? 0 : 20);
var rbtAns = new PdfRadioButtonListItem(ans.Text);
rbtAns.Bounds = new RectangleF(startPoint.X, startPoint.Y, 10, 10);
questionRadioList.Items.Add(rbtAns);
var answer = new PdfTextElement(ans.Text);
answer.Font = new PdfTrueTypeFont(f12);
answer.StringFormat = format;
});
In attachment there is a pdf generated and in page 4 you could see the problem: at the top there is the radiobutton item coupled to the radiobutton present at the bottom.
Thanks
Attachment:
sample_957e2f43.zip