What is the best way to generate a PCL output file from an existing PDF file in java?
+1
A:
It depends on how much you want to invest, and how robust the solution needs to be. For quick and dirty, you can print from Adobe Acrobat to a file, using a PCL driver (look, mom, no Java ...).
The Java Print Service API can process PDF. Use StreamPrintService and write the stream to a file, using PCL for the output format.
If you need to have more control over the content, maybe modify it or add to it, you can use a PDF parser (this one, for instance) and print the resulting HTML from a browser that your application starts, by adding some Javascript, for example.
cdonner
2009-03-11 01:35:38
Do you have experience with the PDF or PS input flavours for this?
Thorbjørn Ravn Andersen
2010-03-24 16:21:15
I don't. I was just brainstorming.
cdonner
2010-03-24 18:44:14
A:
The StreamPrintService from JDK 6 does only support PS. I am still searching for a StreamPrintService which supports PCL.
Kai
2010-03-24 16:08:05