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

Free Support Forum - aspose.com

setIndent is lost when saving as pdf

I have used .setIndent ( ) which renders indentation fine when file is saved as excel is but indentation is lost when file is saved as PDF.

I am setting the indent on the style and applying the style to a cell

Thanks in advance for help


Thanks for reporting this problem.

I was able to reproduce this bug using the latest version: Aspose.Cells
for .NET v6.0.0.6

Below is my code and I have attached the output xlsx and pdf files and screenshot for a reference.

This issue has been logged as CELLSJAVA-29259.


Workbook workbook = new Workbook();

Worksheet worksheet = workbook.getWorksheets().getSheet(0);

Cell a1 = worksheet.getCells().getCell(“A1”);

a1.setValue(“Some Text”);

Style myStyle = a1.getStyle();



workbook.save(“F:\Shak-Data-RW\Downloads\Output.xlsx”, FileFormatType.XLSX);
workbook.save(“F:\Shak-Data-RW\Downloads\Output.pdf”, FileFormatType.PDF);


We have fixed the issue of indent. Please download the latest version: Aspose.Cells for Java v2.5.4.14

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

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