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

Free Support Forum - aspose.com

Character limit issue in column's title of table while converting Excel to PDF and Word

Hello Aspose team,

We are trying to generate a PDF and Word file from excel template with character limit for column’s title equals to 50. However, PDF and Word file truncates the character even though excel template has all 50 characters.

Code used:
Workbook workbook = new Workbook(io);
workbook.calculateFormula();
workbook.save(“myresult.pdf”);

The excel file is attached herewith. TestTemplate.zip (12.4 KB)
(48.6 KB) in zip format.

I have attached screenshot of PDF Export:
Screenshot from 2020-05-18 18-41-45.png (7.0 KB)

@prekshukla,

Thanks for your template file, sample code segment and screenshot.

I do not find any issue with the output PDF file generated by Aspose.Cells, see the attached output PDF file using your code segment, it works as expected. For confirmation, you may open the template file into MS Excel manually and take the print preview of the sheet, you may see it is same as per the output content/pages in the PDF file.
myresult.pdf (34.9 KB)

Do you see any issue? Please provide your output file by Aspose.Cells. Also provide your expected PDF file, we will check it soon.