I'm using Aspose Cells for Java 126.96.36.199.
On an Excel file, font size was smaller when i saved the file as PDF with Aspose rather than save as PDF with Excel.
According to this post :
I changed my code :
1- change the default font of the workbook in Excel
2- set the font directory with CellsHelper.setFontDir
3- save the file in PDF format using
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
wb.save(repertoire + File.separator + filename, pdfSaveOptions);
And now font size in pdf file saved with Aspose is little bit bigger than font size in pdf file saved with Excel.
For example :
Font size of cells N10 and S15 (file Template.xlsx) are correct the generated pdf with Excel (Template_SAVEAS_EXCEL.pdf).
But fonts are little bit bigger in generated pdf file with Aspose (Template_SAVEAS_ASPOSE.pdf)
Another example, cell D8:9 is down truncated in Aspose generated pdf file (Template2.xlsx, Template2_SAVEAS_EXCEL.pdf, Template2_SAVEAS_ASPOSE.pdf)
Developpment Software Engineer