Free Support Forum -

2D IGES File Image.Load error (Why is Aspose IGES file support very problematic?)

I just wonder if exporting to IGES file is really supported by Aspose.
Because loading an IGES file doesn’t seem to work.
Please take a look at this Iges file -> (15.1 KB)

Below is code I used:

public static void main(String[] args)
    String dataDir = Utils.getDataDir(ExportIGEStoPDF.class) + "IGESDrawings\\";
    String IGESPathToFile = dataDir + "2d_iges_ds25_3758_r02.igs";
    Image image = (IgesImage)Image.load(IGESPathToFile);
    //Setting PDF Options
    PdfOptions pdfOptions = new PdfOptions();
    CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
    //Saving to PDF"figa2.pdf", pdfOptions);


Below is the exception:

Exception in thread "main" class com.aspose.cad.cadexceptions.ImageLoadException: Image loading failed: Invalid format string ---> class com.aspose.cad.internal.Exceptions.FormatException: Invalid format string
com.aspose.cad.internal.F.Q.a(Unknown Source)
com.aspose.cad.internal.F.Q.a(Unknown Source)
com.aspose.cad.internal.F.Q.a(Unknown Source)
com.aspose.cad.internal.F.Q.a(Unknown Source)
com.aspose.cad.internal.hE.r.a(Unknown Source)
com.aspose.cad.internal.hE.r.a(Unknown Source)
com.aspose.cad.internal.hE.q.d(Unknown Source)
com.aspose.cad.internal.hE.q.a(Unknown Source)
com.aspose.cad.internal.jc.k.b(Unknown Source)
com.aspose.cad.internal.jc.a.a(Unknown Source)
com.aspose.cad.internal.eM.Y.a(Unknown Source)
com.aspose.cad.internal.eM.Y.b(Unknown Source)
com.aspose.cad.internal.eM.Y.b(Unknown Source)
com.aspose.cad.Image.a(Unknown Source)
com.aspose.cad.Image.load(Unknown Source)


I have created an issue with ID CADJAVA-10155 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

1 Like