Free Support Forum - aspose.com

Column-Count not been applied in HTML to PDF converstion

I am using the following code in Aspose PDF:
var htmlFragment = new HtmlFragment(html);
floatingBox.Paragraphs.Add(htmlFragment);
page.Paragraphs.Add(floatingBox);

Where HTML is:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vel molestie dolor. Nam at diam semper, auctor nulla eget, aliquet urna. Morbi vel pulvinar nibh. Quisque suscipit sed dui ut malesuada. Duis orci urna, ultricies non urna eget, ultricies tempus velit. Praesent tempus eget elit eu tristique. Praesent hendrerit felis eu felis dignissim facilisis. Suspendisse gravida sapien vel velit tempus, non molestie ligula sodales. Praesent sed accumsan tortor, vel semper justo. Nullam volutpat blandit scelerisque.

Praesent ac porttitor libero. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed egestas, velit ut efficitur sollicitudin, justo mi vestibulum ante, in dictum sapien tellus sed ex. Integer a augue lobortis, faucibus neque quis, mollis sapien. Integer condimentum massa sit amet molestie porttitor. Ut scelerisque tellus sem, vitae pretium ligula pulvinar quis. Aenean id dolor enim. Aenean interdum ex libero, ut sollicitudin sem pharetra et. Ut consectetur ligula eu euismod porttitor. Quisque condimentum blandit dui, non commodo tellus consectetur ut. Nulla vitae placerat tellus, at tincidunt elit.

Pellentesque ac mi sagittis, rutrum velit sed, malesuada mauris. Vestibulum odio tortor, vestibulum quis tempus fringilla, sollicitudin vitae nisl. Nunc hendrerit justo ut lacus convallis commodo. Aenean in ullamcorper enim. Sed sagittis mattis rutrum. Aliquam erat volutpat. Proin at arcu et elit egestas interdum. Nulla vestibulum, magna a fermentum aliquam, arcu ipsum tempus odio, vitae tincidunt tellus mi a purus. Quisque aliquam lacus id metus rhoncus mattis. Maecenas ultricies aliquet eros, vel posuere metus fermentum sit amet.

The text columns appear to be ignored. Is there a reason for this?
Thanks

Html.zip (1.0 KB)

@paul.dell

Thanks for contacting support.

We have managed to replicate the issue in our environment while using following complete code snippet. Therefore, we have logged this issue as PDFNET-44740 in our issue tracking system. We will further investigate this behavior of the API and keep you posted with the status of its correction. Please be patient and spare us little time.

Document doc = new Document();
Page page = doc.Pages.Add();
FloatingBox floatingBox = new FloatingBox();
string html = File.ReadAllText(dataDir + "Html.html");
var htmlFragment = new HtmlFragment(html);
floatingBox.Paragraphs.Add(htmlFragment);
page.Paragraphs.Add(floatingBox);
doc.Save(dataDir + "HTMLFragmentinFloatingBoxv.pdf"); 

We are sorry for the inconvenience.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan