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

Free Support Forum - aspose.com

Image file dragging static table's column width in PDF instead of fitting inside it

We are trying to fit an image inside a column of static table.

We are successfully able to do it in HTML but when we convert the same HTML into PDF using Aspose 20.4, it drags the column width according to the size of image instead of adjusting the image inside the column according to column’s width.

Aspose PDF is successfully able to adjust and fit images inside simple div container but not when the image is inside the static table.

We are attaching two images, 1st image named “HTML Result” shows how the image is adjusting in both cases (inside static table, outside static table). 2nd image named “PDF Result” shows the PDF result where the image is adjusting itself accurately outside static table, but not inside of it. Its dragging the column width since the image is not fitting inside.

We are also attaching our sample application link which you can use to generate the same PDF by just running the project (PDF will generate in the same application folder). The application folder also contains the file ColumnIssue.txt which is used to generate PDF and ColumnIssue.html which can be used to compare PDF results with the HTML result. You can note the difference in both.

We want PDF to match the HTML result. Kindly advise a solution to this issue.

Thank you.

HTML Result.JPG (11.1 KB)
PDF Result.JPG (12.7 KB)

@ovais

I have been able to reproduce the issue on our end. A ticket with ID PDFNET-49940 has been created in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

@mudassir.fayyaz

Please also let us know if there is a word around to make it work.

Thanks.

@ovais

We will be able to share any update once the issue is investigated. Please be patient and spare us some time.

@mudassir.fayyaz Do we have an ETA for this?

@ovais

Please note that it was recently logged in free support model and will be investigated and resolved on a first come first serve basis. We will surely inform you a soon as we make some definite progress towards its resolution. Please be patient and spare us some time.

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