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

Free Support Forum - aspose.com

Unable to convert any image format to PDF

I tried to convert bmp, jpeg, png, and tiff to pdf using Imaging. This is listed as a supported feature but the error code I get back says it is not supported:

System.ArgumentException : Cannot save to the specified format as it is not supported at the moment.

I am using the following code:

using (var original = Image.Load(“ColorGif.gif”))
var pdfOptions = new PdfOptions();
original.Save(“result.pdf”, pdfOptions);

Hi Michael,

Thank you for contacting Aspose support.

I am afraid, raster image format to PDF conversion is not supported by the Aspose.Imaging APIs, and we do not have this feature on our road map as well. Reason being, Aspose.Pdf APIs provide the equivalent features therefore it would be redundant to implement the same in Aspose.Imaging APIs.

The PdfOptions class is to be used only for CAD to PDF conversion. Please note, Aspose.Imaging APIs currently support loading the DWG & DXF drawings for possible conversion to PDF & raster image formats.