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/7edbf4b07eaacfa2b66dea39265646cd to your computer and use it in GitHub Desktop.
Save aspose-com-gists/7edbf4b07eaacfa2b66dea39265646cd to your computer and use it in GitHub Desktop.
Convert IFC to PDF Programmatically in Java
// Load the input IFC file
Image image = Image.load("input.ifc");
// Initialize CadRasterizationOptions class object
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setPageWidth(1200);
rasterizationOptions.setPageHeight(1400);
// Create an object of PdfOptions class
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
// Convert IFC to 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