Hello, I am new to groupdocs. I am trying to convert eps file to tif image file in .Net Core WPF.
I have tried basic steps but I got an exception, GroupDocs.Conversion.Exceptions.GroupDocsConversionException: ‘Object must implement IConvertible.’.
My example codes were:
-
var converter = new GroupDocs.Conversion.Converter(epsFilePath); var convertOptions = converter.GetPossibleConversions()["tif"].ConvertOptions; converter.Convert(writeFolderPath + "\\" + "output.tif", convertOptions);
var outputFile = writeFolderPath + “\” + “output.tif”;
SavePageStream getPageStream = page => new FileStream(string.Format(outputFile, page), FileMode.Create);
using (GroupDocs.Conversion.Converter converter = new GroupDocs.Conversion.Converter(epsFilePath))
{
ImageConvertOptions options = new ImageConvertOptions
{
Format = ImageFileType.Tif,
Height = 1024,
Width = 768
};
converter.Convert(getPageStream, options);
}
Can someone help me where I can implement IConvertible.
Note: Jpg to Tif conversion is working just fine.
Thanks in advance.