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.