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
myStyle.setIndent(2);
Worksheet.getCells().getCell(1514,13).setStyle(myStyle);


Thanks in advance for help

Hi,

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.

Java


Workbook workbook = new Workbook();

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


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

a1.setValue(“Some Text”);

Style myStyle = a1.getStyle();

myStyle.setIndent(2);

a1.setStyle(myStyle);

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


Screenshot:
Hi,

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.