I have recently updated by aspose.pdf from 3.x to 4.1.1. As a result a lot of the margins where affected, which i have now corrected. The issue i currently have is for IsHtmlTagSupported text. For some reason i'm getting '#$NL' before every paragraph (see pdf attached).
The string below is the html:
string sDesc = "<em>Helping you serve your communities and your customers</em><BR></p><BR><p>At Foley Hoag, our Banking lawyers have a great appreciation for the broad spectrum of issues confronting banks, as you deal with rapidly<BR>changing competitive, technological and economic environments. We understand the role banks must play in the community, the needs they<BR>attempt to serve, and the special difficulties they face in competing in today's increasingly competitive marketplace.</p><BR><p>We have represented both acquirers and targets in negotiating and obtaining shareholder and regulatory approval of bank merger and<BR>acquisition transactions. Clients rely on us to devise novel strategies for ensuring the success of an acquisition.</p><BR><p>We regularly prepare bank and holding company securities disclosure documents, securities offering circulars and prospectuses, and<BR>proxy materials. For our banking clients, our lawyers have obtained settlement of claims for reimbursement of losses under blanket bonds, and<BR>have handled complex securities and lender liability litigation. We have formed mutual holding companies for our mutual bank clients; formed,<BR>and dissolved, bank holding companies; converted banks from mutual to stock form; and helped purchase and sell branch offices and other<BR>assets.</p><BR><p>In addition, we regularly advise our clients on a multitude of regulatory issues, including the Community Reinvestment Act, Truth in<BR>Lending, and recent fair-lending initiatives.</p><BR><p>Foley Hoag’s Banking lawyers have acted as general and special regulatory and acquisitions counsel for New England-based community<BR>banks, both state-chartered and federally chartered. We have also represented a number of money-center banks in specialized areas.</p><BR><p><strong>Links </strong></p><BR><p>Board of Governors of the Federal Reserve System <br /><a<BR>href="</FONT><A href="http://www.federalreserve.gov/%22%3Ehttp://www.federalreserve.gov/%3C/a%3E%3C/p"><FONT color=#ff0000>http://www.federalreserve.gov/">http://www.federalreserve.gov/</a></p</FONT></A><FONT color=#ff0000>><BR><p>Federal Reserve Bank of Boston <br /><a href="</FONT><A href="http://www.bos.frb.org/%22%3Ehttp://www.bos.frb.org/%3C/a%3E%3C/p"><FONT color=#ff0000>http://www.bos.frb.org/">http://www.bos.frb.org/</a></p</FONT></A><FONT color=#ff0000>><BR><p>Office of Thrift Supervision <br /><a href="</FONT><A href="http://www.ots.treas.gov/%22%3Ehttp://www.ots.treas.gov/%3C/a%3E%3C/p"><FONT color=#ff0000>http://www.ots.treas.gov/">http://www.ots.treas.gov/</a></p</FONT></A><FONT color=#ff0000>><BR><p>Office of the Comptroller of the Currency <br /><a href="</FONT><A href="http://www.occ.treas.gov/%22%3Ehttp://www.occ.treas.gov/%3C/a%3E%3C/p"><FONT color=#ff0000>http://www.occ.treas.gov/">http://www.occ.treas.gov/</a></p</FONT></A><FONT color=#ff0000>><BR><p>Massachusetts Division of Banks <br /><a href="</FONT><A href="http://www.state.ma.us/dob%22%3Ehttp://www.state.ma.us/dob%3C/a%3E%3C/p"><FONT color=#ff0000>http://www.state.ma.us/dob">http://www.state.ma.us/dob</a></p</FONT></A><FONT color=#ff0000>><BR><p>Federal Deposit Insurance Corporation <br /><a href="</FONT><A href="http://www.fdic.gov/index.html%22%3Ehttp://www.fdic.gov/index.html%3C/a%3E%3C/p"><FONT color=#ff0000>http://www.fdic.gov/index.html">http://www.fdic.gov/index.html</a></p</FONT></A><FONT color=#ff0000>>"
Here is the code to populate the PDF:
Pdf pdf1 = new Pdf();
Section sec1 = pdf1.Sections.Add();
Text titleText = new Text(sDesc, style);
titleText.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(titleText);
pdf1.Save(pdfTitle, SaveType.OpenInAcrobat, response);