Free Support Forum -

How to convert an autocad document to PDF using C#

We are still testing the capabilities fo GroupDocs in all its facets and today we had an issue with an AutoCad document to convert to PDF. The resulting PDF seems really zoomed out and does not represent the existing content of the autocad file.

This is the file we are trying to convert:
Using following code (API 19.11):

 using (var converter = new Converter(() => inputStream))
            using (MemoryStream output = new MemoryStream())
                // Convert using GroupsDocs Converter
                ConverterSettings cs = new ConverterSettings();

                converter.Convert(new SaveDocumentStream(() => output), new PdfConvertOptions()
                    MarginBottom = 0,
                    MarginLeft = 0,
                    MarginRight = 0,
                    MarginTop = 0,
                    PdfOptions = {
                            PdfFormat = PdfFormats.v1_7,
                            OptimizationOptions = {
                                CompressImages = false,

                return output.ToArray();

Would you have any suggestions how to fix this?

1 Like


This issue is reproduced at our end. We’ve logged it in our internal issue tracking system with ID : CONVERSIONNET-3535. We are now investigating it. As there is any update, you’ll be notified.