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

Free Support Forum - aspose.com

Convert Word Document to PCL5 PCL6 Enhanced or PCL XL File Format using Java | DOCX to PCL

Hi,


can you please tell me if it is the possible to create PCL5 / PCL6 files with Aspose for Java.
If it is, please post sample code.

Thanks in advance.
Hi Lyuben,

Thanks for your inquiry. We have an existing request to support rendering documents to PCL printer formats. I have linked your request to the appropriate issue (WORDSNET-6118) in our issue tracking system. We will inform you as soon as this feature is supported in Aspose.Words.

Best regards,

@ly_at,

You can now convert Word documents directly to Printer Command Language (PCL) file format by using the latest version of Aspose.Words for Java API. We had implemented rendering into PCL (PCL 6 Enhanced or PCL XL) format back in Aspose.Words’ 17.7 release. For example, the following Java 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();
saveOptions.setSaveFormat(SaveFormat.PCL);
saveOptions.setRasterizeTransformedElements(true);
doc.save("PclSaveOptions.RasterizeElements.pcl", saveOptions);

The PclSaveOptions Java Class can be used to specify additional options when saving a Word document (such as DOCX, DOC, RTF, ODT etc) into the PCL (Printer Command Language) format.