Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active April 15, 2022 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/5fab5307b9ff85f80a7acc60e75ad335 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/5fab5307b9ff85f80a7acc60e75ad335 to your computer and use it in GitHub Desktop.
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