HTML to PDF Dom approach : Text around images

Hi Tilal,

While generating pdf from html content we are facing an issue in which the text which is besides an image (in html file) is getting wrapped below the image in pdf.
We have seen these below mentiond links on Aspose knowledge base, but the examples given in these links doesn’t seems to solve our problem.

The reasons are :

  1. Our html page is created dynamically.
  2. We are not sure about how much lines of text will be around an image (there could be single line or multiple lines of text besides an image)
  3. We are having multiple images with different size in our html page and we cannot fix the height and width of the image.

We are also not able to achieve this programmatically, the text is still wrapping below the image.

http://www.aspose.com/docs/display/pdfnet/Placing+a+text+around+an+image

http://www.aspose.com/docs/display/pdfnet/Text+and+Image+as+InLine+paragraph

Thanks in advance.

Hi Siddesh,


Thanks for your inquiry. We will appreciate it if you please share a sample HTML document here. We will look into it and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi Tilal,

I am attaching our sample html file along with CSS that is required.
We are facing an issue of text getting wrapped below images.
We have a very dynamic HTML i.e. we cannot fix the size of image, then we are not aware about the size of text around the image and also we are unaware of number of lines of text around the image.
Can your team help us in this issue…so that our text dosn’t gets wrap below the image.

Regards,
Siddesh

Hi Siddesh,

Thanks for your inquiry. I have tested your scenario with your shared documents using Aspose.Pdf for .NET 10.2.0 and managed to observe the reported issue of text around images. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-38360 and also linked your request to it. We will keep you update via this thread regarding the issue status.

Please feel free to contact us for any further assistance.

Best Regards

The issues you have found earlier (filed as PDFNET-38360) have been fixed in Aspose.PDF for .NET 23.2.