文檔金喜正規(guī)買(mǎi)球>>E-iceblue中文文檔>>將 Word 轉(zhuǎn)換為 PCL
將 Word 轉(zhuǎn)換為 PCL
PCL 文件是以打印機(jī)命令語(yǔ)言(通常稱(chēng)為 PCL)頁(yè)面描述語(yǔ)言創(chuàng)建的數(shù)字打印文檔。從v7.1.19 開(kāi)始,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)咨詢(xún)