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: https://we.tl/t-usxdGB8MvU
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

@Verthosa,

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.

The issues you have found earlier (filed as CONVERSIONNET-3535) have been fixed in this update. This message was posted using Bugs notification tool by nikola.yankov

1 Like