DWF Drawings

Exporting DWF Drawings to PDF

Aspose.CAD provides the feature to load AutoCAD DWF drawing entities and render them as an entire drawing to PDF format. DWF to PDF conversion approach works as follows:

  1. Load DWF 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

The code sample below shows how to convert a file using default settings.

Extract Layers from DWF Drawing

Aspose.CAD provides the feature to load AutoCAD DWF drawing entities and render them as an entire drawing to JPEG format.

  1. Load DWF drawing file using the Image.Load factory method.
  2. Create an object of the JPEGOptions class.
  3. Create an object of the CadRasterizationOptions class.
  4. Extract layers name using the JPEG object.
  5. Call Image.Save while passing an object of JPEGOptions as the second parameter.

Sample Code

The code sample below shows how to convert a file using default settings.

Support of Layers in DWF

Aspose.CAD provides the feature to load AutoCAD DWF drawing entities and render them as an entire drawing to JPEG format.

  1. Load DWF drawing file using the Image.Load factory method.
  2. Create an object of the CadRasterizationOptions class.
  3. Add desired layers.
  4. Call Image.Save while passing an object of JPEGOptions as the second parameter.

Sample Code

The code sample below shows how to convert a file using default settings.

Exporting DWF Drawings to BMP

Aspose.CAD provides the feature to load AutoCAD DWF drawing entities and render them as an entire drawing to BMP format. DWF to BMP conversion approach works as follows:

  1. Load DWF 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 BmpOptions class and set the VectorRasterizationOptions property.
  4. Call Image.Save while passing an object of BmpOptions as the second parameter.

Sample Code

The code sample below shows how to convert a DWF file to BMP using default settings.