翻譯|使用教程|編輯:李顯亮|2021-03-19 09:38:46.523|閱讀 278 次
概述:該文將介紹如何使用Spire.Presentation for .NET將OpenDocument 演示文稿(.odp)另存為PDF格式。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Spire.Presentation for .NET 是專業(yè)的 PowerPoint組件,開發(fā)者可以在 .NET 平臺(tái)上對(duì) PPT文檔進(jìn)行生成、修改、轉(zhuǎn)換和打印等操作,而無需安裝 Microsoft PowerPoint。
該文將介紹如何使用Spire.Presentation for .NET將OpenDocument 演示文稿(.odp)另存為PDF格式。可點(diǎn)擊此處下載最新版測(cè)試。
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
效果圖:
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn