Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active April 15, 2022 18:39
Convert IFC to PDF Programmatically in C# .NET .NET Core
// Load the input IFC file
Image image = Image.Load("input.ifc");
// Initialize CadRasterizationOptions class object
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.PageWidth =1200;
rasterizationOptions.PageHeight = 1400;
// Create an object of PdfOptions class
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.VectorRasterizationOptions = rasterizationOptions;
// Save output PDF file
image.Save("output.pdf", pdfOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment