翻譯|使用教程|編輯:胡濤|2022-03-23 13:52:58.380|閱讀 187 次
概述:本文主要介紹了如何在 C# 中將 Word 轉(zhuǎn)換為 PostScript,歡迎查閱!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
PostScript 是一種頁面描述語言,是用于輸出高分辨率文本和圖形的行業(yè)標(biāo)準(zhǔn)。從版本 6.11.2 開始,Spire.Doc 支持在 WinForm 應(yīng)用程序和 ASP.NET 應(yīng)用程序中將 doc/docx 轉(zhuǎn)換為 postscript 文件。本文將演示如何在 C# 和 VB.NET 中將 word 轉(zhuǎn)換為 PostScript。
首先,查看示例word文檔:
[C#]
using Spire.Doc; namespace Word { class Program { static void Main(string[] args) { Document doc = new Document(); doc.LoadFromFile("Sample.docx", FileFormat.Docx2010); doc.SaveToFile("Result.ps", FileFormat.PostScript); } } }
[VB.NET]
Imports Spire.Doc Namespace Word Class Program Private Shared Sub Main(ByVal args As String()) Dim doc As Document = New Document() doc.LoadFromFile("Sample.docx", FileFormat.Docx2010) doc.SaveToFile("Result.ps", FileFormat.PostScript) End Sub End Class End Namespace
從 .docx 文檔轉(zhuǎn)換而來的 PostScript 文件的有效截圖:
歡迎下載|體驗更多E-iceblue產(chǎn)品
如需獲取更多產(chǎn)品相關(guān)信息請咨詢
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn