翻譯|使用教程|編輯:胡濤|2022-03-24 09:53:56.267|閱讀 172 次
概述:本文主要介紹了如何使用Spire.Doc 將 Word 轉(zhuǎn)換為 PCL,歡迎查閱!
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
PCL 文件是以打印機(jī)命令語(yǔ)言(通常稱為 PCL)頁(yè)面描述語(yǔ)言創(chuàng)建的數(shù)字打印文檔。從v7.1.19 開始,Spire.Doc 支持將 word 文檔轉(zhuǎn)換為 PCL。PCL文件的標(biāo)準(zhǔn)有很多種;這里的 PCL 是指 PCL 6(PCL 6 Enhanced 或 PCL XL)。本文將向您展示如何僅通過(guò)三行代碼將 C# 和 VB.NET 中的 Word 文檔保存到 PCL 中。
以下將直接展示代碼:
[C#]
using Spire.Doc; namespace DOCPCL { class Program { static void Main(string[] args) { //load the sample document Document doc = new Document(); doc.LoadFromFile("Sample.docx", FileFormat.Docx2010); //save the document as a PCL file doc.SaveToFile("Result.pcl", FileFormat.PCL); } } }
[VB.NET]
using Spire.Doc; namespace DOCPCL { class Program { static void Main(string[] args) { //load the sample document Document doc = new Document(); doc.LoadFromFile("Sample.docx", FileFormat.Docx2010); //save the document as a PCL file doc.SaveToFile("Result.pcl", FileFormat.PCL); } } }
歡迎下載|體驗(yàn)更多E-iceblue產(chǎn)品
如需獲取更多產(chǎn)品相關(guān)信息請(qǐng)咨詢
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn