Thanks for your inquiry.
Sorry that we doesn't understand your need, could you please describe your needs in detail? BTW, You could use the following method to convert Excel to PDF,
- Code: Select all
Workbook workbook = new Workbook();
workbook.LoadFromFile(your excel file);
PdfDocument pdfdoc = new PdfDocument();
var converter = new PdfConverter(workbook);
var setting = new PdfConverterSettings
{
EmbedFonts = true,
TemplateDocument = pdfdoc,
FitSheetToOnePage = FitToPageType.NoScale
};
pdfdoc = converter.Convert(setting);
pdfdoc.SaveToFile(string filename);
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team