Convert Word DOCX to PCL File or Stream & Use WCF Service to Send to Printer for Printing | TcpClient LPD Protocol | C# .NET

Hi Guys,

Can anyone advice or provide some code snippet on how to convert word to pcl?

Thank you.

Hi there,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we had already logged this feature request as WORDSNET-6118 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

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,


Thanks for your inquiry. Unfortunately, currently we have no plans for PCL support in foreseeable future. This is a complex issue and implementation of this feature has been postponed. However, the support of rendering Word document to PCL may definitely come onto the product roadmap in the future. We will inform you via this thread as soon as this is supported. We apologize for your inconvenience.

Best regards,

@csgan97, @dnbnor,

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);