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 = "
Helping you serve your communities and your customers
At Foley Hoag, our Banking lawyers have a great appreciation for the broad spectrum of issues confronting banks, as you deal with rapidly
changing competitive, technological and economic environments. We understand the role banks must play in the community, the needs they
attempt to serve, and the special difficulties they face in competing in today's increasingly competitive marketplace.
We have represented both acquirers and targets in negotiating and obtaining shareholder and regulatory approval of bank merger and
acquisition transactions. Clients rely on us to devise novel strategies for ensuring the success of an acquisition.
We regularly prepare bank and holding company securities disclosure documents, securities offering circulars and prospectuses, and
proxy materials. For our banking clients, our lawyers have obtained settlement of claims for reimbursement of losses under blanket bonds, and
have handled complex securities and lender liability litigation. We have formed mutual holding companies for our mutual bank clients; formed,
and dissolved, bank holding companies; converted banks from mutual to stock form; and helped purchase and sell branch offices and other
assets.
In addition, we regularly advise our clients on a multitude of regulatory issues, including the Community Reinvestment Act, Truth in
Lending, and recent fair-lending initiatives.
Foley Hoag’s Banking lawyers have acted as general and special regulatory and acquisitions counsel for New England-based community
banks, both state-chartered and federally chartered. We have also represented a number of money-center banks in specialized areas.
Links
Board of Governors of the Federal Reserve System
<a
href="http://www.federalreserve.gov/">http://www.federalreserve.gov/</p>
Federal Reserve Bank of Boston
http://www.bos.frb.org/">http://www.bos.frb.org/</p>
Office of Thrift Supervision
http://www.ots.treas.gov/">http://www.ots.treas.gov/</p>
Office of the Comptroller of the Currency
http://www.occ.treas.gov/">http://www.occ.treas.gov/</p>
Massachusetts Division of Banks
http://www.state.ma.us/dob">http://www.state.ma.us/dob</p>
Federal Deposit Insurance Corporation
http://www.fdic.gov/index.html">http://www.fdic.gov/index.html</p>"
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);