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 }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM