Free Support Forum - aspose.com

Broken underline found in pdf

When a workbook, contains cell(s) with format “underlined” together with the cell(s) is/are right-aligned,
is saved by using:
workbook.save (, SaveFormat.PDF)

, broken underline will be found in the output pdf.

For my example, the sheet contains a cell with text as “appendix 1”, the underline is broken under the letter “x”.

@dexterng1

Thanks for using Aspose APIs.

We tested your issue with the sample Excel file and it generated the correct output Pdf. We tested the issue with the most recent version i.e. Aspose.Cells for Java (Latest Version) Please use the most recent version and it should fix your issue.

If your issue still occurs, then please provide us your Excel file and converted Pdf, we will look into it further and help you asap.

Download Link:
Sample Excel File and Output Pdf.zip (15.3 KB)

Java

Workbook wb = new Workbook(dirPath + "sample.xlsx");
wb.save(dirPath + "out.pdf", SaveFormat.PDF);