翻譯|使用教程|編輯:胡濤|2022-03-24 09:53:56.267|閱讀 172 次
概述:本文主要介紹了如何使用Spire.Doc 將 Word 轉換為 PCL,歡迎查閱!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
PCL 文件是以打印機命令語言(通常稱為 PCL)頁面描述語言創建的數字打印文檔。從v7.1.19 開始,Spire.Doc 支持將 word 文檔轉換為 PCL。PCL文件的標準有很多種;這里的 PCL 是指 PCL 6(PCL 6 Enhanced 或 PCL XL)。本文將向您展示如何僅通過三行代碼將 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); } } }
歡迎下載|體驗更多E-iceblue產品
如需獲取更多產品相關信息請咨詢
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn