tag at the end . But both the strings are getting concatenated without any space. Please help me to resolve my problem. Please let me know if my code is wrong anywhere.
Thanks for your request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.
But as a workaround you can try removing tag from the beginning of the html string.
// Open document
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
string s1 = "Some text
string s2 = "Some Text 2";
builder.InsertHtml(s1 + s2);
All styles you can try putting to the separate string and insert at the beginning of the document.