DXF Drawings

Exporting DXF Drawings to PDF

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

  1. Load DXF drawing file using the Image.load factory method.
  2. Create an object of the CadRasterizationOptions class and set the page_height & page_width 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.

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

Supported Formats

At the moment we fully support AutoCAD DXF 2010 file formats. The previous DXF versions are not guaranteed to be 100% valid. We are planning to include more formats and features in future Aspose.CAD versions.

Supported Entities

At the moment we support all widespread 2D entities and their basic default parameters as follow:

  1. Aligned Dimension
  2. Angular Dimension
  3. Arc
  4. Attribute
  5. Block Reference
  6. Circle
  7. Diameter Dimension
  8. Ellipse
  9. Hatch
  10. Line
  11. Multiline Text
  12. Ordinate Dimension
  13. Point
  14. Polyline
  15. Radial Dimension
  16. Ray
  17. Rotated Dimension
  18. Table
  19. Text
  20. Xline

Export embedded DGN underlay for DXF format

Aspose.CAD provides the feature to load AutoCAD DXF files and export embedded DGN underlay for DXF format.

The code sample below shows how to achieve specified requirements.

Support for Saving DXF Files

Aspose.CAD provides the feature to load AutoCAD DXF files and make changes in it and save it again as a DXF file.

The code sample below shows how to achieve specified requirements.

Export DXF to WMF

This approach works as follow:

  1. Load DXF drawing file using the Image.load factory method.
  2. Create an object of the CadRasterizationOptions class and load PDF files.
  3. set the page_height & Ppage_width properties.
  4. Call Image.save and save file.