Hello,
i have an Excel-File that I convert to PDF (or PDF/A) using your products and some code along those lines:
private const string inputFile = @“c:\killme\input.xlsx”;
private const string outputFile = @“c:\killme\output.pdf”;
private static void Main(string[] args)
{
Program.ConvertToPDf(inputFile, outputFile);
}
<span style=“font-family: “Courier New”;”> private static void ConvertToPDf(string sourcePath, string targetPath)
{
Aspose.Cells.License cellsLicense = new Aspose.Cells.License();
cellsLicense.SetLicense(“lib\Aspose.Total.lic”);
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(sourcePath);
workbook.Save(targetPath);
}
My cells are using a Font named “Gill Sans MT Light” and the text is aligned to be centered in the cell. Each cell has a thin border.
Now, looking at my output-file i see that:
1. the border is thicker than in the Excel-file
2. the text is no longer centered in the cell. Using different Fonds sometimes leads to less obvious results. MS Reference Sans Serif also works.
I hope you can help us to fix both those issues.
Thank you in advance,
Uwe