void heading_tags() { new[] { 1, 2, 3, 4, 5, 6 }.Do(x => { context["heading{0} tag".With(x)] = () => { pdf = new Section(); pdf.AddHtml("<h{0}></h{0}>".With(x)); it["adds a paragraph with the style 'Heading{0}'".With(x)] = () => pdf.LastParagraph.Style = "Heading{0}".With(x); }; }); }
void act_each() { pdf.AddHtml(html); }