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,
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.