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:
- Load DXF drawing file using the Image.load factory method.
- Create an object of the CadRasterizationOptions class and set the page_height & page_width properties.
- Create an object of the PdfOptions class and set the VectorRasterizationOptions property.
- 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:
- Aligned Dimension
- Angular Dimension
- Arc
- Attribute
- Block Reference
- Circle
- Diameter Dimension
- Ellipse
- Hatch
- Line
- Multiline Text
- Ordinate Dimension
- Point
- Polyline
- Radial Dimension
- Ray
- Rotated Dimension
- Table
- Text
- 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:
- Load DXF drawing file using the Image.load factory method.
- Create an object of the CadRasterizationOptions class and load PDF files.
- set the page_height & Ppage_width properties.
- Call Image.save and save file.