Hi, I am currently working on the code below:
var htmlFragment = new HtmlFragment(htmlString);
htmlFragment.Margin.Top = 240;
htmlFragment.TextState = new TextState();
htmlFragment.TextState.Font = FontRepository.FindFont("Verdana");
htmlFragment.TextState.FontSize = 10.0F;
htmlFragment.TextState.ForegroundColor = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.DimGray);
page.Paragraphs.Add(htmlFragment);
I need to specify the top margin on the first page as I have other content at the top of it. My issue is that when this htmlfragment content overflows to the next page, the content also starts the same as in the first page where the Margin.Top = 240. Is there a way for me to specify that this paragraph on overflow pages should start at a particular margin.top?
Thanks for your help,
Ruby