ICO to PDF conversion failing in Java

I am using version 25.2.1 of GroupDocs.Conversion. When I attempt to convert a ICO file to PDF, I get the following stack trace:

java.lang.RuntimeException: class com.groupdocs.conversion.exceptions.FileTypeNotSupportedException: Can not save ico to pdf
com.groupdocs.conversion.savers.NullSaver.save(Unknown Source)
com.groupdocs.conversion.savers.Saver.save(Unknown Source)
com.groupdocs.conversion.documents.k.save(Unknown Source)
com.groupdocs.conversion.c.a(Unknown Source)
com.groupdocs.conversion.b.convert(Unknown Source)
com.groupdocs.conversion.Converter.convert(Unknown Source)
com.groupdocs.conversion.Converter.convert(Unknown Source)

I tested if this is a valid conversion, and this is the output:

**Source format**: Icon File (ico)
**Primary conversions**: [tiff, tif, jpg, jpeg, png, gif, bmp, ico, psd, wmf, emf, dcm, dicom, webp, jp2, emz, wmz, svgz, tga, psb, heic, ppt, pps, pptx, ppsx, odp, otp, potx, potm, pptm, ppsm, fodp, ps, pcl, svg]
**Secondary conversions**: [epub, mobi, azw3, eps, xps, tex, pdf, xls, xlsx, xlsm, xlsb, ods, xltx, xlt, xltm, xlam, fods, dif, sxc, htm, html, mhtml, mht, doc, docm, docx, dot, dotm, dotx, rtf, odt, ott, txt, md, ml]

The implementation I am using works for several other extension to PDF combinations. (.pptx, .docx, .png, .jpeg to name a few).

Hello @mayatyner ,

Thank you for contacting us.
You are absolutely right — conversion from ICO to PDF should be supported.
Unfortunately, it is currently not working in GroupDocs.Conversion for Java 25.2.1, as well as in newer versions up to 25.6.

We have logged this issue in our internal tracking system under ID CONVERSIONJAVA-2920, and we’ll do our best to fix it as soon as possible.

Please rest assured — you will be notified once the issue is resolved and included in a future release.
We apologize for the inconvenience caused.

1 Like