Hello Team,
I have a question about the new save format “PCL”. My need is to be able to generate generic PCL6 (PCL XL) so that a Word document can be routed to any number of Laser printers. When I save to PCL, Aspose.Words creates the file, however when I route it to a printer… nothing prints (or blank page prints).
For comparison, I setup a generic HP LaserJet printer driver on a Windows machine. I open the document in MS Word and print-to-file using this generic printer driver. It generates PCL XL *.prn file. The file generated in this way will print on any of our printers, while the PCL XL file that is generated by Aspose.Words will NOT print on any of them.
My theory is this… the PCL generated via HP print driver embeds the font, where as the PCL generated by Aspose.Words relies on the font being installed on the individual hardware??? Is that correct? If so, is there any future plans for Aspose.Words to be able to embed the fonts into the PCL file?
I will try to attach the original document and the two PCL files.
The code I’m using is from your example:
Document document = new Document(rtfPath);
PclSaveOptions saveOptions = new PclSaveOptions();
saveOptions.setSaveFormat(SaveFormat.PCL);
saveOptions.setRasterizeTransformedElements(false);
document.save(pclPath, saveOptions);
Thank you,
Ken Kennedy
document.png (28.7 KB)
pcl-aspose.png (37.4 KB)
pcl-hppcl6-printdriver.png (66.3 KB)