Use C# .NET AutoCAD to PDF converter to convert DWG or DXF to PDF in C#. You can convert DWG, DWF, DWT and DXF to PDF, JPEG, PNG, BMP, GIF and TIFF in C# .NET as well.... Set/change the size of the image using...background. These settings can be changed with CadRasterizationOpti.BackgroundColor...