COLLADA Drawings

Exporting COLLADA Format To PDF

Aspose.CAD for .NET allows developers to export an COLLADA file to PDF format. COLLADA to PDF conversion approach works as follows:

  1. Load COLLADA drawing file using the Image.Load factory method.
  2. Create an object of the CadRasterizationOptions class and set the PageHeight & PageWidth properties.
  3. Create an object of the PdfOptions class and set the VectorRasterizationOptions property.
  4. Call Image.Save while passing an object of PdfOptions as the second parameter.

Sample Code

string inputFile ="file.dae";
using (Image image = Image.Load(inputFile))
{
// Initialize PdfOptions class object
PdfOptions options = new PdfOptions();
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
cadRasterizationOptions.PageHeight = 500;
cadRasterizationOptions.PageWidth = 500;
options.VectorRasterizationOptions = cadRasterizationOptions;
// Export COLLADA to PDF
string outPath = "output.pdf";
image.Save(outPath, options);
}