We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert DOCX to PCL (Printer Command Language) & Send to Networked HP LaserJet Printer for Printing using C# .NET

Using C# I need to print word documents docx to networked HP Laserjet printers which use PCL language

Will ASPOSE Word help me

Hi Peter,


Thanks for your inquiry. We have an existing feature request WORDSNET-6118 in our issue tracking system to ‘Support rendering document to PCL format’.
This forum thread has now been linked to the appropriate feature
request. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

@peterbos,

Word document to PCL (Printer Command Language) file conversion is now supported by the latest version of Aspose.Words for .NET API. Rendering to PCL (PCL 6 Enhanced or PCL XL) was introduced back in Aspose.Words’ 17.7 release.

A simple C# code example of converting 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);

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.

The following C# 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);