I'm generating an xlsx file, and at the end I'm converting this file to a pdf. In the xlsx file, I'm putting 1 image.
When I convert to pdf, the image is not present.
Do you know why it's happening?
This is how I convert xlsx to pdf:
- Code: Select all
public string XlsxToPdf(string filename)
{
var filenamePdf = Path.ChangeExtension(filename, ".pdf");
Workbook workbook = new Workbook();
workbook.LoadFromFile(filename);
workbook.SaveToFile(filenamePdf, FileFormat.PDF);
return filenamePdf;
}
Thank you