In my company, we're looking for a way to convert a PDF document into a PCL (Printer Command Language) file in Java.
This is our workflow:
- Generate a PDF document in memory (meaning it's stored as a byte array)
- Convert the byte array into PCL, in memory or as a file
- Send that PCL file via FTP to a network printer
Issue Faced:
We cannot find a Java Library or native functionality to convert a byte array into a PCL file. How can this issue be overcome?
I know GhostScript is an option and it works fairly well on our own machines, but we won't be able to use that on the machine we're deploying on.
If there's some kind of library that can convert a PDF file or byte array into a PCL byte array or file, it would be of great help.