We are experiencing lots of errors when trying to convert pcl to pdf using apose.pdf in java.
For very simple pcl the conversion is fine however when there are multiple pages and varying formatting the conversion is simply not working and more often than not throwing exceptions.
i have attached an example of the failing pcl and the code i am using to convert is below. When running on linux i set the font path and have copied any truetype fonts required into this directory.
String PCLFile = “20170215102450_65702421”;
PclLoadOptions loadoptions = new PclLoadOptions();
// Create Document object
String longPCLfile = “/opt/sdx/ceg/queue/pcl/” + PCLFile + “.pcl”;
String longPDFfile = “/opt/sdx/ceg/queue/pdf/” + PCLFile + “.pdf”;
//Document doc = new Document(longPCLfile, loadoptions);
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(longPCLfile,loadoptions);
// Save the resultant PDF document
doc.save(longPDFfile);
i have also attached the output (conversion.log) when running the program.
Any help resolving this would be much appreciated.