I have an excel file with some graphs and tables and when I try to convert it to pdf, the content is not perfectly fit and two tables at the end of the file is not being shown.
I attached the samples I'm using, both the excel and the pdf generated.
Following is the code I'm using:
- Code: Select all
Spire.Xls.Workbook workbook = new Spire.Xls.Workbook();
workbook.LoadFromFile(path);
//save only the first sheet as pdf
Spire.Xls.Worksheet sheet = workbook.Worksheets[0];
sheet.SaveToPdf(pathPdf);
Thanks in advance!
Fernando.