文檔半島外圍網(wǎng)上直營>>E-iceblue中文文檔>>將 Word 轉(zhuǎn)換為 PCL
                將 Word 轉(zhuǎn)換為 PCL
PCL 文件是以打印機(jī)命令語言(通常稱為 PCL)頁面描述語言創(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)。本文將向您展示如何僅通過三行代碼將 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)信息請咨詢


 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網(wǎng)安備
            50010702500608號
渝公網(wǎng)安備
            50010702500608號
             
            
 客服熱線
客服熱線