Trying to convert an eps image to a pdf using the file path, but it is throwing an exception. I tried with the latest version of Aspose.Imaging (22.12.0.0)
Here is my code -
Public void ConvertImageFileToPdf()
{
string filePath = @“D:\ED_Fig1.eps”;
string pdfFile = @“D:\ED_Fig1.pdf”;
using (var img = Aspose.Imaging.Image.Load(filePath))
{
PdfOptions exportOptions = new PdfOptions();
exportOptions.PdfDocumentInfo = new Aspose.Imaging.FileFormats.Pdf.PdfDocumentInfo();
img.Save(pdfFile, exportOptions);
}
}
ED_Fig1.zip (2.0 MB)