手机
当前位置:查字典教程网 >编程开发 >C#教程 >C# 利用Aspose.Words.dll将 Word 转成PDF
C# 利用Aspose.Words.dll将 Word 转成PDF
摘要:只要把aspose.words.dll在bin中添加引用即可。复制代码代码如下:usingSystem;usingSystem.Collec...

只要把aspose.words.dll 在bin中添加引用即可。

复制代码 代码如下:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using Aspose.Words;

using Aspose.Words.Saving;

using System.IO;

namespace NewConvertBook

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

//读取doc文档

Document doc = new Document(@"C:UsersAdministratorDesktop流调系统存在问题 .doc");

//保存为PDF文件,此处的SaveFormat支持很多种格式,如图片,epub,rtf 等等

doc.Save("temp.pdf", SaveFormat.Pdf);

}

}

}

对了还要再说一下,这个dll是有水印的。如果需要无水印的。请购买正版的dll。或者使用破解版(不推荐,请支持作者权益)

Aspose.Words.dll 官网http://www.aspose.com/。具体其他用法可以参考api及文档。

【C# 利用Aspose.Words.dll将 Word 转成PDF】相关文章:

C#利用com操作excel释放进程的解决方法

C#给picturebox控件加图片选中状态的2个方法

解决用Aspose.Words,在word文档中创建表格的实现方法

C#实现窗体淡入淡出效果的方法总结

利用Aspose.Word控件实现Word文档的操作

c# winform 关闭窗体时同时结束线程实现思路

xml 中的冒号 读取问题的解决

深入分析C#键盘勾子(Hook)拦截器,屏蔽键盘活动的详解

深入Unix时间戳与C# DateTime时间类型互换的详解

C# SendInput 模拟鼠标操作的实现方法

精品推荐
分类导航