Brian K. White wrote:
Sorry I thought you knew about the the ghostpdl package I have on OBS since you were familiar with pdftk which I also maintain, but pdftk is in the actual distro and ghostpdl isn't so I guess that wasn't a given.
http://software.opensuse.org/download.html?project=home:aljex&package=ghostpdl
I think I did in fact find ghostpdl, but I skipped it after a while because it would only do pjl -> other which isn't quite what I'm after.
It does take in PCL (PCL5 and lower) and PXL (PCL6) and output ps, pdf, png, jpg, tiffg3, tiffg4, a handful of others I don't remember but all I ever use is pdf and tiffg3.
In other words it's optimized for non-interactive headless use in print/fax/email filters and web cgi's etc.
You shouldn't have to strip the PJL from your print files. Many of my own print jobs include PJL routinely. ghostpcl interprets it at least as far as I've encountered. Any new print job that hasn't actually been tried yet may include commands or constructs that the interpreter fails to handle, but in general it understands pjl, pcl and I think hpgl too. "PCL" and "hplaser" usually actually means all three together.
The cups filter I'm working on will use: ps2pdf to convert the cups print job to a pdf. use pdftk to add a letterhead (option background) then convert back to ps with pdftops. I would prefer not having to convert to PDF, but I haven't found a way of only working with postscript for overlaying the letterhead. The above fails because ps2pdf doesn't understand PJL, so can't produce a PDF. I see I can use pcl2pdf to produce the pdf, but how would I go about retaining the PJL for passing on to the printer? -- Per Jessen, Zürich (1.4°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org