I am using a telerik RAD editor control to collect user-formatted text (they're writing a report with bullets, underlining, italics, etc.) The RAD editor stores this formatting as HTML tags in the text.
I am taking that text, combining it using a stringbuilder object, and then outputting that into an aspose.pdf file, like so:
var pdf = new Pdf();
var section = pdf.Sections.Add();
Aspose.Pdf.Generator.Text t = new Text(sb.ToString());
t.ID = "ROI";
t.IsHtmlTagSupported = true;
section.Paragraphs.Add(t);
return pdf;
The issue I have is I need page breaks in the pdf document. I'm doing this by using replaceable symbols (specifically, #$NP).
When I experiment, setting IsHtmlTagSupported = true results in the #$NP symbol being outputted to the final document. Setting it to false causes them to disappear (presumably being turned into page breaks although at the moment my test doc isn't long enough for that to show up).
How do I go about getting page breaks and HTML formatting to live together in the same pdf?
I am taking that text, combining it using a stringbuilder object, and then outputting that into an aspose.pdf file, like so:
var pdf = new Pdf();
var section = pdf.Sections.Add();
Aspose.Pdf.Generator.Text t = new Text(sb.ToString());
t.ID = "ROI";
t.IsHtmlTagSupported = true;
section.Paragraphs.Add(t);
return pdf;
The issue I have is I need page breaks in the pdf document. I'm doing this by using replaceable symbols (specifically, #$NP).
When I experiment, setting IsHtmlTagSupported = true results in the #$NP symbol being outputted to the final document. Setting it to false causes them to disappear (presumably being turned into page breaks although at the moment my test doc isn't long enough for that to show up).
How do I go about getting page breaks and HTML formatting to live together in the same pdf?