This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/conversion/cad-to-pdf.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. DWG/DXF to PDF in C# .NET: Accurately convert CAD files | Nutrient .NET SDK

Nutrient .NET SDK converts DXF and DWG files to PDF or PDF/A.

Download sample

Prepare the project

Register the SDK license before running conversion operations. For setup details, refer to the getting started with .NET SDK guide.

using GdPicture14;
LicenseManager license = new LicenseManager();
license.RegisterKEY("");
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
GdPictureStatus status = converter.LoadFromFile("input.dxf", GdPicture14.DocumentFormat.DocumentFormatDXF);
if (status != GdPictureStatus.OK)
{
throw new Exception(status.ToString());
}
status = converter.SaveAsPDF("output.pdf", PdfConformance.PDF);
if (status != GdPictureStatus.OK)
{
throw new Exception(status.ToString());
}

For DWG input, use a .dwg file and the matching CAD document format.