C# 利用Aspose.Slides.dll将本地ppt文档转化成pdf(完美破解版 无水印 无中文乱码)

下载Aspose.Slides.dll   http://pan.baidu.com/s/1kVPjnzL

添加引用C#代码、

 1 using System;
 2 using System.Collections.Generic;
 3 using System.ComponentModel;
 4 using System.Data;
 5 using System.Drawing;
 6 using System.Text;
 7 using System.Linq;
 8 using System.Windows.Forms;
 9 using System.IO;
10 using Aspose.Slides;
11 
12 namespace ppttopdf
13 {
14     public partial class Form1 : Form
15     {
16         public Form1()
17         {
18             InitializeComponent();
19         }
20 
21         private void button1_Click(object sender, EventArgs e)
22         {
23 
24             //PPT
25             Presentation ppt = new Presentation(@"E:\work\dll\officetopdf\file1\123.ppt");
26             ppt.Save(@"E:\work\dll\officetopdf\file2\temp3.pdf", Aspose.Slides.Export.SaveFormat.Pdf);
27 
28 
29         }
30     }
31 }

 

posted @ 2016-09-24 09:51  小雨滴答  阅读(9835)  评论(10编辑  收藏  举报