We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Odd behavior since 4.1.1 upgrade

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

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.


Board of Governors of the Federal Reserve System

Federal Reserve Bank of Boston

Office of Thrift Supervision

Office of the Comptroller of the Currency

Massachusetts Division of Banks

Federal Deposit Insurance Corporation

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;


pdf1.Save(pdfTitle, SaveType.OpenInAcrobat, response);

FYI: #$NL is actually appearing in every location a html tag is placed

Hello Jonathan,

Thanks for considering Aspose.

I've tested the scenario with Aspose.Pdf for .NET 4.1.1 and I'm unable to notice the problem. The resultant PDF does not contain #$NL and for your reference, I've also attached the PDF document that I've generated. Please take a look.

Can you please share some more details regarding your working environment.

Hello Jonathan,

We've recently launched a hotfix in which similar issues were correct. You can try using it, may be it can resolve your problem. The hotfix is in attachment.

In case you still face any problem, please feel free to contact.

This worked, thank you.

FYI: I only downloaded the 4.1.1 dlls on Saturday, so your latest release does not include this fix.

Thanks for the help

After a further review, it now seems that I have significant spacing between each html

paragraph using them same code. setting the margin of the text is not helping.

i worked around this by altering the html in the string:

sDesc = sDesc.Replace("

", string.Empty);

sDesc = sDesc.Replace("

", string.Empty);

sDesc = sDesc.Replace("

", "


sDesc = sDesc.Replace("

", "


This isn't an ideal solution though

No, this still isn't working. the double breakline is causing additional line space on the last line of the paragraph.

Ideally i shouldn't need to do anything. Text wrapped in a

should only have a single line between paragraphs by default. Please Help!


I have tested the issue and I’m able to reproduce the problem that a significant spacing between each html

paragraph is being added. I have logged it in our issue tracking system as PDFNET-13399. We will investigate this issue in detail and will keep you updated on the status of a correction.

We apologize for your inconvenience.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks Nayyer.

Do you have any idea of a turnaround time? This is delaying a major change on our production website.

Many thanks


Do you have any updates on this issue?

Hello Jonathan,

Sorry for replying you so late.

In fact, I've been waiting for a response from development team regarding the resolution of this problem and after initial investigation, we've concluded that the hotfix will be available by the end of this week or early next week. But still it’s not a promise. We're trying our level best to get it resolved ASAP.

I know it’s causing an inconvenience at your end, but I would again request you to be little more patient and wait for the hotfix. Thanks for your cooperation.

It's been over a week since i reported this issue. Do you have any update on when we might see a fix? It is delaying a fix to our production website.



Hello Jonathan,

Thanks for considering Aspose.

I'm pleased to inform you that the issue reported earlier has been resolved. Currently we're testing the HotFix, and it will be provided shortly.

Your patience and comprehension is greatly appreciated in this regard. We apologize for your inconvenience.

That's good news. Let me know as soon as it is available.



Hello Jon,

I'm pleased to inform you that the issue reported earlier "Significant spacing between each html

paragraph " has been fixed in the attached HotFix. Please try using it and in case you still face any problem, please feel free to contact.

Thanks for your cooperation.

The issues you have found earlier (filed as 13399) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.