odd behavior since 4.1.1 upgrade

Last post 02-04-2010, 4:37 AM by aspose.notifier. 16 replies.
Page 1 of 2 (17 items)   1 2 Next >
Sort Posts: Previous Next
  •  01-11-2010, 9:49 AM 216477

    odd behavior since 4.1.1 upgrade .NET

    Attachment: Present (inaccessible)

    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 = "<p>
    <em>Helping you serve your communities and your customers</em>
    </p>
    <p>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.</p>
    <p>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.</p>
    <p>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.</p>
    <p>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.</p>
    <p>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.</p>
    <p><strong>Links </strong></p>
    <p>Board of Governors of the Federal Reserve System <br /><a
    href="
    http://www.federalreserve.gov/">http://www.federalreserve.gov/</a></p>
    <p>Federal Reserve Bank of Boston <br /><a href="
    http://www.bos.frb.org/">http://www.bos.frb.org/</a></p>
    <p>Office of Thrift Supervision <br /><a href="
    http://www.ots.treas.gov/">http://www.ots.treas.gov/</a></p>
    <p>Office of the Comptroller of the Currency <br /><a href="
    http://www.occ.treas.gov/">http://www.occ.treas.gov/</a></p>
    <p>Massachusetts Division of Banks <br /><a href="
    http://www.state.ma.us/dob">http://www.state.ma.us/dob</a></p>
    <p>Federal Deposit Insurance Corporation <br /><a href="
    http://www.fdic.gov/index.html">http://www.fdic.gov/index.html</a></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);

     

     
  •  01-11-2010, 11:36 AM 216493 in reply to 216477

    Re: odd behavior since 4.1.1 upgrade

    FYI: #$NL is actually appearing in every location a html tag is placed
     
  •  01-11-2010, 12:07 PM 216497 in reply to 216493

    Re: odd behavior since 4.1.1 upgrade

    Attachment: Present (inaccessible)

    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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  01-11-2010, 12:28 PM 216500 in reply to 216493

    Re: odd behavior since 4.1.1 upgrade

    Attachment: Present (inaccessible)

    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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  01-11-2010, 1:18 PM 216512 in reply to 216500

    Re: odd behavior since 4.1.1 upgrade

    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

     
  •  01-11-2010, 1:55 PM 216520 in reply to 216512

    Re: odd behavior since 4.1.1 upgrade

    After a further review, it now seems that I have significant spacing between each html <P> paragraph using them same code. setting the margin of the text is not helping.
     
  •  01-11-2010, 3:10 PM 216532 in reply to 216520

    Re: odd behavior since 4.1.1 upgrade

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

    sDesc = sDesc.Replace("<p>", string.Empty);

    sDesc = sDesc.Replace("<P>", string.Empty);

    sDesc = sDesc.Replace("</p>", "<br /><br />");

    sDesc = sDesc.Replace("</P>", "<br /><br />");

    This isn't an ideal solution though

     
  •  01-11-2010, 3:58 PM 216538 in reply to 216532

    Re: odd behavior since 4.1.1 upgrade

    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 <P></P> should only have a single line between paragraphs by default. Please Help!

     
  •  01-12-2010, 1:25 AM 216595 in reply to 216538

    Re: odd behavior since 4.1.1 upgrade

    Hi,

    I have tested the issue and I’m able to reproduce the problem that a significant spacing between each html <P> 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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  01-12-2010, 7:31 AM 216671 in reply to 216595

    Re: odd behavior since 4.1.1 upgrade

    Thanks Nayyer.

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

    Many thanks

    Jon

     
  •  01-13-2010, 10:35 AM 216910 in reply to 216671

    Re: odd behavior since 4.1.1 upgrade

    Do you have any updates on this issue?
     
  •  01-13-2010, 11:45 AM 216918 in reply to 216910

    Re: odd behavior since 4.1.1 upgrade

    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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  01-19-2010, 7:55 AM 217780 in reply to 216918

    Re: odd behavior since 4.1.1 upgrade

    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.

    Thanks

    Jon

     
  •  01-20-2010, 5:43 AM 218150 in reply to 217780

    Re: odd behavior since 4.1.1 upgrade

    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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  01-20-2010, 10:52 AM 218214 in reply to 218150

    Re: odd behavior since 4.1.1 upgrade

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

    Thanks

    Jon

     
Page 1 of 2 (17 items)   1 2 Next >
View as RSS news feed in XML