Hi Guys,
Can anyone advice or provide some code snippet on how to convert word to pcl?
Thank you.
Hi Guys,
Can anyone advice or provide some code snippet on how to convert word to pcl?
Thank you.
Hi!
We have a global network (worldwide) with a potential of +4000 printers as target printers that all support the PCL format.
Our implementation of Aspose.Words is from a WCF service that sends PCL streams to the printer through the TcpClient (LPD protocol).
I know you have added PS as output, but we really would like to see PCL as output as well.
Is PCL a part of the future roadmap for Aspose.Words and eventually when will it be added to a new release?
Best Regards,
Harald Nakstad
- DNB DSGI
Hi Harald,
You can now use the latest versions of Aspose.Words for .NET and Aspose.Words for Java APIs to convert Word documents directly to Printer Command Language (PCL) file format. We had implemented support for rendering into PCL (PCL 6 Enhanced or PCL XL) format back in Aspose.Words’ 17.7 release.
For example, the following C# .NET code will set whether or not to rasterize complex Word document elements before saving to PCL:
Document doc = new Document("Rendering.docx");
PclSaveOptions saveOptions = new PclSaveOptions
{
SaveFormat = SaveFormat.Pcl,
RasterizeTransformedElements = true
};
doc.Save("PclSaveOptions.RasterizeElements.pcl", saveOptions);
You can use PclSaveOptions Class to specify additional options when saving a Word document (such as DOCX, DOC, RTF, ODT etc) into the PCL (Printer Command Language) format.
A simple C# code example of how to convert Word DOCX document to PCL file format is as follows:
Document doc = new Document("Example.docx");
PclSaveOptions saveOptions = new PclSaveOptions();
doc.Save("Example.pcl", saveOptions);