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

Free Support Forum - aspose.com

Shapes placed incorrectly after conversion to HTML and PDF

Hi,

we noticed a few bugs when converting an excel document to pdf or html. Some shapes are placed at a wrong position or rotated.

Here are a few example screenshots (left screenshot always is the excel original, right version the broken one in html/pdf):
Excel to PDF
Arrow is roated:
image.png (36.4 KB)

Excel to HTML
Arrow is aligned incorrect in its cell:
image.png (42.9 KB)
image.png (16.6 KB)

Arrow starts / ends at wrong location / cell (this probably just is the same as before just with the other arrow type looking different):
image.png (74.7 KB)

Arrow also rotated again:
image.png (40.1 KB)

One arrow disappears:
image.png (4.2 KB)

Additionally, the HTML has some cells at the bottom which are not visible in the xlsx (and also not the pdf):
image.png (60.2 KB)

Code for reprodction:

            var lic = new License();
            lic.SetLicense(@"S:\Aspose.Total.lic");

            var wb = new Workbook(@"S:\tmp\in.xlsx");

            wb.Save(@"S:\tmp\out.xlsx");
            wb.Save(@"S:\tmp\out.pdf");
            wb.Save(@"S:\tmp\out.html");

Test input and output files:
files.zip (81.5 KB)

Thanks for your support

@Serraniel,

Thanks for the template file and screenshots.

Please notice, I am able to reproduce the issues you described regarding Excel to HTML (issues seen when opening the output HTML file in Google chrome) and Excel to PDF renderings. The following two tickets are logged for your issues into our database:

  • CELLSNET-48192 - Arrow shapes placed incorrectly after conversion to HTML
  • CELLSNET-48193 - Arrow shapes placed incorrectly after conversion to PDF

We will evaluate your issues thoroughly and try to figure these out soon.

Once we have an update on any of the issues, we will let you know.