IFC files are Industry Foundation Classes files that are used for enhancing compatibility properties between different software applications. These files are usually used to create a model of a facility or a building as they can contain different shapes, materials as well as spatial elements. Sometimes you might need to convert an IFC file to PDF format because only a limited number of applications support viewing the IFC files. Accordingly, this article covers how to convert an IFC file to PDF format programmatically in C#.
IFC to PDF Converter – C# API Installation
Aspose.CAD for .NET API supports working with IFC file format. However, please note that it currently supports the IFC2X3 dialect of the file format. You can quickly access the API by downloading the latest version of its DLL files from the Downloads section, or using the NuGet installations command below:
PM> Install-Package Aspose.CAD
Convert IFC to PDF Programmatically in C#
You can convert an IFC file to PDF format with the following steps:
- Load the source IFC file.
- Initialize CadRasterizationOptions class object.
- Initialize a PdfOptions class instance.
- Save the output PDF file.
The following code snippet demonstrates how to convert an IFC file to a PDF document using C#:
Explore More Features
You can learn many other features included in the API by visiting the documentation section.
In this article, you have learned how to convert an IFC file to a PDF file format. Where the supported dialect at the moment is IFC2X3. In case you want us to support other dialects as well then please write to us at the forum. We look forward to getting in touch with you.