excel 转换成pdf 总结

excl 转换成pdf  

1.freespire   只能转换前三页

// 使用此组件 只能转换前3页
//需要引用 如下命名空间
//using Spire.Doc;

//Document doc = new Document();
//doc.LoadFromFile(filePath);
//doc.SaveToFile(string.Concat(path + fileName, ".pdf"), FileFormat.PDF);
//doc.Close();

2.aspose  转换的有水印

Aspose.Words.Document doc = new Aspose.Words.Document(filePath);
doc.Save(string.Concat(path + fileName, ".pdf"), Aspose.Words.SaveFormat.Pdf);

3.iTextSharp

原文地址:https://www.cnblogs.com/llhhll/p/12050353.html