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

Free Support Forum - aspose.com

HTML to PDF <p> tag issue

Hi,


We are converting HTMl to PDF and we are experiencing strange behaviour where the

tags are not stacking up well as normal paragraph text.


The html has two divs next to each other, if the div on the left hand side has multiple

tags, the text is appearing in columns over the right hand side div instead of stacking up in the same div.


Can you please let me know if you encountered this issue before and what information you would need to assist me please?

thanks
Matthew



Hi Mattew,


We are sorry for the inconvenience caused. We will appreciate it if you please share your sample HTML text here, so we will test the scenario and provide you information accordingly.

Best Regards,

Hi,


The html is as below. I also attached two screenshot showing the result we are getting as html and therefore how we would like it to appear and a second screenshot showing how it actually outputs the PDF

thanks
Matthew

Below is the HTML:<o:p></o:p>

s tgh dsg jsadfhsfhs fhshdsg fhsdgf skdhg kfygsd fksdfgsdfg sdkfg sdkfsgd fksdyh ghf fgh gh fgh fg hfg hfgh fgh fhgsdfksjgfskdjfghkd abz

test mat

jsadfhsfhs fhshdsg fhsdgf skdhg kfygsd fksdfgsdfg sdkfg sdkfsgd fksdyh gfksdfg sdkfg hsdf ksdfg sdfkhgd sfkshdg fsdfg sdhfg sdfk sdkfhgjskfhgsdfksjgfskdjfghkdf  sdjhgf sdfsdf d fdf g dsf g dsfg sd gd sfg ds fg d fg  rg df rgd rg dg ds gds g dg dsg sdrt gde gh trhg dsgh

sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd line return 1
sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd line return 2

sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd line return 3
sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd double line return

sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd sdgv sd gvs gv sd





Hi Metthew,


Thanks for sharing HTML text, I have tested the scenario with new approach of HTML to PDF conversion and unable to notice any issue, resultant PDF is same as HTML. Please download latest release of Aspose.Pdf for .NET and try new DOM approach, it will resolve the issue.

We are sorry for the inconvenience caused.

Best Regards,