Hi all,
I’m trying to export html text in a pdf page, doing this:
HtmlFragment htmlFragment = new HtmlFragment(html);
// initialize text state
htmlFragment.TextState = new TextState();
// create FloatingBox object to contain HTML Fragment object
FloatingBox floatingBox = new FloatingBox(260, 78)
{
Top = 100,
Left = 0
};
// adding a text padding of 7 points for left and right (~0.25cm)
// and 10 points for top and bottom (~0.35cm)
floatingBox.Padding = new MarginInfo(7, 10, 7, 10);
floatingBox.Paragraphs.Add(htmlFragment);
page.Paragraphs.Add(floatingBox);
I tried putting an html content that overflows the floating box width and height and it is not cut off as I would expect. The html overflows the floating box boundaries and the exceeding part is not hidden.
So I tried the overfow: hidden
; css property in the html but with no luck.
Regards,