翻譯|使用教程|編輯:李顯亮|2021-03-19 09:38:46.523|閱讀 278 次
概述:該文將介紹如何使用Spire.Presentation for .NET將OpenDocument 演示文稿(.odp)另存為PDF格式。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
Spire.Presentation for .NET 是專業的 PowerPoint組件,開發者可以在 .NET 平臺上對 PPT文檔進行生成、修改、轉換和打印等操作,而無需安裝 Microsoft PowerPoint。
該文將介紹如何使用Spire.Presentation for .NET將OpenDocument 演示文稿(.odp)另存為PDF格式。可點擊此處下載最新版測試。
C#
using Spire.Presentation; namespace odptoPDF { class Program { static void Main(string[] args) { //加載示例文檔 Presentation presentation = new Presentation(); presentation.LoadFromFile("Sample.odp",FileFormat.ODP); presentation.SaveToFile("OdptoPDF.pdf",FileFormat.PDF); } } }
VB.NET
Imports Spire.Presentation Namespace odptoPDF Class Program Private Shared Sub Main(ByVal args() As String) '加載示例文檔 Dim presentation As Presentation = New Presentation presentation.LoadFromFile("Sample.odp", FileFormat.ODP) presentation.SaveToFile("OdptoPDF.pdf", FileFormat.PDF) End Sub End Class End Namespace
效果圖:
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn