using System;
using System.Runtime.InteropServices;
using Spire.Xls;
namespace ClassLibrary2
{
public interface IClass
{
void ConvertToPdf(string inputFilePath, string outputFilePath);
}
[ClassInterface(ClassInterfaceType.None)]
public class Class : IClass
{
public void ConvertToPdf(string inputFilePath, string outputFilePath)
{
Workbook workbook = new Workbook();
workbook.LoadFromFile(inputFilePath);
workbook.SaveToFile(outputFilePath, FileFormat.PDF);
workbook.Dispose();
}
}
}