Convert IGES File to PDF Programmatically with Java

Convert IGES to PDF

IGES files are used to exchange design information between computer-aided design (CAD) applications. You can convert IGES files to PDF programmatically using Java. The following use cases discuss the topic in detail:

IGES to PDF File Converter – Java API Installation

Aspose.CAD for Java API supports working with IGES, STL, DWG, and several other file formats. You can configure the API by downloading the JAR file from the Downloads section, or with the following configurations in the pom.xml file of your Maven-based project:

Repository

<repositories>
    <repository>
        <id>AsposeJavaAPI</id>
        <name>Aspose Java API</name>
        <url>http://repository.aspose.com/repo/</url>
    </repository>
</repositories>

Dependency

 <dependencies>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-cad</artifactId>
        <version>21.2</version>        
   </dependency>
</dependencies>

Convert IGES to PDF File Programmatically using Java

You can convert the IGES file to a PDF document with the below steps:

  1. Load input IGES file using Image class.
  2. Initialize PdfOptions class object.
  3. Save the output PDF file.

The following code explains how to convert IGES file to PDF document programmatically using Java:

Convert IGES to PDF with Advanced Options Programmatically in Java

PDF file format offers many useful features for document manipulation. For instance, you can set vector rasterization options like the height and width of the page as well as the CAD draw type. You can perform the advanced conversion of IGES file to PDF with the following steps:

  1. Load input IGES file.
  2. Set output PDF options using CadRasterizationOptions class.
  3. Specify advanced options with PdfOptions class.
  4. Save the output PDF file with Save method.

The code below shows how to convert IGS file to a PDF document with advanced options programmatically with Java:

Get Free License

You can evaluate the API in its full capacity by requesting a Free Temporary License.

Conclusion

In conclusion, you have learned how to convert an IGS or IGES file to a PDF document programmatically using Java. Moreover, the API supports advanced conversion options where you can specify different rendering options like the page size of the output PDF file. Furthermore, you can explore other features of the API by visiting the Documentation. In case of any queries, please feel free to contact us at the Free Support Forum.

See Also

Convert DWG/DXF CAD File to JPG, PNG, GIF Image with Java