.NET APIs to Convert AutoCAD Files

Convert DWG and DXF files to PDF and Raster Images without any AutoCAD dependencies.

  Download Free Trial
Aspose.CAD for .NET

Aspose.CAD for .NET


Aspose.CAD for .NET allows developers to convert AutoCAD DWG and DXF files to PDF and Raster images. It is a native API and does not require AutoCAD or any other software to be installed.

You can also convert the selected layers and layouts from the AutoCAD files. The conversion to PDF and Raster images is of very high quality.


Advanced API Features



Supports the latest versions of AutoCAD DWG and DXF files


Convert the AutoCAD files to high quality PDF


Convert the AutoCAD files to high quality Raster images


Select and convert specific layouts


Select and convert specific layers


Track the file conversion process

CAD to PDF Format Conversion

Aspose.CAD for .NET provides the ability to convert supported CAD drawings to PDF format. The conversion process is highly customizable, allowing you to configure the rendering aspects, such as page size, background color, draw color, scale mode and so on.

Save CAD in PDF format - C#

// load the drawing to be converted
using (var image = Aspose.CAD.Image.Load(dir + "template.dwg"))
    // create an instance of CadRasterizationOptions & set resultant page size
    var rasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions()
        PageSize = new Aspose.CAD.SizeF(1200, 1200),
    // save resultant PDF
    image.Save(dir + "output.pdf", new Aspose.CAD.ImageOptions.PdfOptions() { VectorRasterizationOptions = rasterizationOptions });

Render CAD Drawings in Raster Image Formats

Aspose.CAD for .NET also offers high fidelity rendering engine at its core which can convert CAD drawings to most commonly used raster image formats including GIF, TIFF, BMP, PNG & JPEG without requiring any additional software or tool.


Support and Learning Resources


Aspose.CAD offers individual native APIs for other popular development environments as listed below: