Using C# I need to print word documents docx to networked HP Laserjet printers which use PCL language
Will ASPOSE Word help me
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,
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);