I have some code and some sample DWG files that were downloaded from AutoDesk website. The code I am using looks at the PlotPaperSize.Width and PlotPaperSize.Height specified in the default layout (“Model”) and sets the PDF PageWidth and PageHeight using these values to convert from millimeters to inches.
AutoCad1.dwg produces a PDF with page size 199.? x 129.? inches. This should be 17 x 11 inches. This was unexpected.
AutoCad2.dwg produces a PDF with page size 11 x 8.5 inches as expected.
I have several other DWG examples that produce the correct page size using this code if you need them, but this one file (AutoCad1.dwg) seems to produce a PDF with a huge page size.
I have included a .Net solution file using Aspose.CAD 17.12 and Aspose.PDF 18.1. If you run the example it will produce in bin/Debug the two PDF files pdf1.pdf and pdf2.pdf that correspond to the DWG example files that I have supplied.
What can I do to resolve this issue?