WORD转pdf 添加引用 using Spire.Doc;
Document doc = new Document(); try { doc.LoadFromFile(pdfpath); doc.SaveToFile(wordpath, FileFormat.PDF); System.Diagnostics.Process.Start(wordpath); doc.Close(); doc = null; } catch (Exception ex) { MessageBox.Show(ex.ToString()); }
pdf转word 添加引用 using Spire.Pdf;
PdfDocument doc = new PdfDocument(); try { doc.LoadFromFile(pdfpath); doc.SaveToFile(wordpath, FileFormat.DOC); System.Diagnostics.Process.Start(wordpath); doc.Close(); doc = null; } catch (Exception ex){ MessageBox.Show(ex.ToString()); }