DWG - PDF
Posted: 09 Jan 2021, 22:20
Please let me know how i could convert a DWG to PDF file ?
Thanks for alot.
Thanks for alot.
CADSoftTools - AutoCAD DWG DXF HPGL (PLT) SVG CGM STEP IGES STL SAT viewers, converters and developer tools. Delphi and C# source code.
https://cadsofttools.com/forum/
Code: Select all
public static void ConvertDWGtoPDF(string dwgFilePath, string pdfFilePath)
{
CADImage cadImage = CADImage.CreateImageByExtension(dwgFilePath);
cadImage.IsWithoutMargins = true;
cadImage.LoadFromFile(dwgFilePath);
Export.CADToPDF pdf = new Export.CADToPDF(cadImage);
pdf.SaveToFile(pdfFilePath);
}