HtmlArea generates duplicate lines

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v10)  /  HtmlArea generates duplicate lines

DynamicPDF CoreSuite for .NET (v10) Forum

 Sep 13 2018 4:59 AM
Upgrading from the version 9.0 to the version 10.0 we came across an issue. When we use the GetOverflowHtmlArea method and then the GetRequiredHeight method the generated pdf is wrongly formatted. If the text requires more than a single line, to be printed in the pdf, then the second line is printed more than once and this continues with the third, fourth, etc line.

Here is the C# code we use. It's almost identical to the one you have is your documentation.

Document document = new Document();
Uri uri = new Uri(@"c:\temp\temp-html-a4a33026-85a1-4afb-9d9e-7f88d9ce2504.html");
HtmlArea htmlArea = new HtmlArea(uri, 0, 0, 500, 650);
Page page = new Page(PageSize.A4);
var htmlArea2 = htmlArea.GetOverflowHtmlArea();    // <--------------
var requiredHeight = htmlArea.GetRequiredHeight(); // <--------------
page.Elements.Add(htmlArea);
document.Pages.Add(page);
document.DrawToWeb("SampleHtml.pdf");
And here is the html file we use. We formatted some of the tags to be able to post it here.

html  head  title Temporary Html  /title /head  body
ol
        li something /li
        li is wrong /li
        li Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi aliquam, ipsum quis blandit sollicitudin, libero turpis vehicula neque, at condimentum orci enim placerat est. /li
/ol
/body /html
Posted by a ceTe Software moderator
Hello,

Thanks for proving this information. We are able to reproduce the issue and forwarded this information to our development team for further analysis. An update will be posted here as soon as we have more information.

Thanks,
ceTe Software Support Team.
Posted by a ceTe Software moderator
Hello,

The above issue with rendering HTML text in the PDF is fixed. You can download latest DynamicPDF for .NET product installer file by logging into our CustomerArea using your v10 DynamicPDF product serial number. Install the product  and then remove reference for the older DLL file and reference the latest DLL file which includes fix in your application.

If you are evaluating the product then you can download latest product installer file by clicking on ‘START DOWNLOAD’  button from our website here.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 11:24 AM.