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

Free Support Forum - aspose.com

PDF export - layout issue

I’ve noticed problem with converting wide columns to PDF. - margines are ignored.
You can see it after exporting SME2.xls file (pages 4-6).

Thanks in advance for help.


I was able to reproduce this issue with the latest version Aspose.Cells for Java v2.5.4.10 and found margins are being ignored for the wide columns.

For elaboration, I have created a screenshot. I have logged this issue in our database. We will fix it and let you know asap.

Please see the code below and the output pdf.

This issue has been logged as CELLSJAVA-28848.


String path=“F:\Shak-Data-RW\Downloads\Files\SME2.xls”;

Workbook workbook = new Workbook();


workbook.save(path + “.out.pdf”, FileFormatType.PDF);



We have fixed following issues in the new fix. Please download: Aspose.Cells for Java v2.5.4.11

We have fixed the issue that right margin exceeds output page’s range. But
for the right border, we cannot plot it as same with the print preview
in ms excel. In fact the cell’s width has exceeded output page’s range
and currently we cannot handle this situation. We will try to enhance it
in later versions.

The issues you have found earlier (filed as 28848) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.