We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception while converting eps to pdf

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)

Hello, @amolm,
I have run your code. The ticket for the fix was created, so you can see the progress.

Any update on this?

Hello, @amolm
There is no updates yet. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.