newFilePath.LastIndexOf( " / " ) + 1 ); if (! Directory.Exi
Aspose.Words将word转成pdf
/// <summary> /// word转pdf /// </summary> /// <param>文件地点</param> /// <param>转换后的文件地点</param> /// <returns></returns> public static void WordToPdf(string path, string newFilePath) { var dir = newFilePath.Substring(0, newFilePath.LastIndexOf("/") + 1); if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); } Aspose.Words.Document doc = new Aspose.Words.Document(path); doc.Save(newFilePath); }
,温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32579.html