C# Dxf 转PDF 别人不开源

private void button1_Click(object sender, EventArgs e)
{

string dpath = @"E:\j9-FwfeplGMIpixSqiD9d.dxf";
string ppath = @"E:\j9-FwfeplGMIpixSqiD9d.pdf";
createPdf(dpath, ppath);
}


private static void createPdf(string dxfPath, string pdfPath)
{
BackSlashPath documentConverter = new BackSlashPath(dxfPath);
BackSlashPath outputDocument = new BackSlashPath(pdfPath);
var outputFormat = (DocumentFormat)Enum.Parse(typeof(DocumentFormat), "Pdf");
var result = GleamTech.DocumentUltimate.DocumentConverter.Convert(documentConverter, outputDocument, outputFormat);
}

 

 

 

项目地址 https://download.csdn.net/download/bosslizhiyong/12400169

posted @ 2020-05-08 14:42  上帝视角  阅读(725)  评论(0编辑  收藏  举报