Drawings SDK supports exporting a .dwg or DGN file to a Portable Document Format (PDF) file.
Working with Other File Formats