I have two Sections in a PDF. Each section has one Text object which has 4 Segments. When 'IsHtmlTagSupported' is set to false, all the segments appear on the same line. When 'IsHtmlTagSupported' is set to true, each segment appears on a different line. I require html support to be turned on so I can parse encoded chars eg. '"' and also require the segments to appear on the same line.
The code I used to generate the PDF is as follows:
Pdf pdf = new Pdf();
Section section = pdf.Sections.Add();
section.IsNewPage = false;
Text text1 = new Text();
section.Paragraphs.Add(text1);
text1.IsHtmlTagSupported = false;
text1.Segments.Add("html support off ");
text1.Segments.Add("one ");
text1.Segments.Add("two ");
text1.Segments.Add("three");
section = pdf.Sections.Add();
section.IsNewPage = false;
Text text2 = new Text();
section.Paragraphs.Add(text2);
text2.IsHtmlTagSupported = true;
text2.Segments.Add("html support on ");
text2.Segments.Add("one ");
text2.Segments.Add("two ");
text2.Segments.Add("three");