This simple tutorial entails how to convert IGES to PDF in C# by encompassing all the application configuration steps to use the library and develop the application. In the following example, a sample code to change the IGES file to PDF in C# has been provided, whereby we have used the options to set the output PDF page size and other related options.
Steps to Convert a File From IGES to PDF in C#
- Configure your project to add the Aspose.CAD for .NET from the NuGet package manager
- Load the source IGES file using the Image class object
- Instantiate an object of the CadRasterizationOptions class to customize the rasterization of the IGES file
- Initialize the PdfOptions class object to configure the output PDF options
- Convert the IGES to PDF using the Save method
The above steps entail the process that can convert IGES file to PDF in C#. The process is commenced by loading the source IGES file using the Image class object and saving that as a PDF file by using the PdfOptions object as an argument having the default settings. You can customize the rasterization of the IGES file by using the CadRasterizationOptions class object to set the properties like setting the background, page size and scaling of the output PDF.
Code to Convert IGES to PDF in C#
This code example can be used to develop an IGES to PDF converter software in C# by using a simple API interface. The CadRasterizationOptions class is employed to customize the rasterization process by setting the page size, background color, layouts in rendered PDF, draw type, pen options, draw color and quality.
In this example, we have learnt to export from IGES to PDF in C#. If you are interested in the process of converting DGN to PDF refer to the article on how to Convert DGN to PDF in C#.