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 -> 2d_iges_ds25_3758_r02.zip (15.1 KB)

Below is code I used:

public static void main(String[] args)
{ 
   //ExStart:ExportIGEStoPDF  
    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();
    cadRasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
    cadRasterizationOptions.setPageHeight(1000);
    cadRasterizationOptions.setPageWidth(1000);
  
    pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
   
    //Saving to PDF
    image.save(dataDir+"figa2.pdf", pdfOptions);

//ExEnd:ExportIGEStoPDF
}
}

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)
```java

@franciss

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

@mudassir.fayyaz

Hi.

Any update on this issue?

I saw CADJAVA-10155 ---- Status : Closed
What does this mean? There is no link to the issue.

Can you help me how to go to the issue link?
Thanks.

@franciss

It has been marked as closed for upcoming version and we will share the notification with you once it will be shared online.

@mudassir.fayyaz

By close, does this mean the issue is resolved?

@mudassir.fayyaz

By ‘Close’, does this mean the issue about IGES is resolved?

@franciss

Yes, this issue has been fixed and closed.

1 Like

@mudassir.fayyaz

Thank you.