I have the same problem.
Did you find a solution ?

Otherwise, I made attempts with ghostscript 7.04 but there are the other
problems... The landscape does not work

-----Message d'origine-----
De : Wayne Elliott [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 avril 2002 14:29
Objet : Fopping and batch printing


Anyone know of the best way to batch FOP generated PDF
documents for printing. In our scenario documents are
queued for generation, followed by printing, using threads.

We print from both a Windows 2000 GUI application and
Unix server, by spawning a shell command through
Runtime.exec. The commands we use are along the lines
of (I'm not at work


  "c:/Program Files/Adobe/Acrobat 5.0/Reader/AcroRd32.exe " +
  "/t " +
  file + " " +
  printerName + " " +
  driverName + " " +

Unix: cat blah.pdf | acroread -toPostScript | lpr

The trouble we are having is tracking the print job and knowing
when to kill it. In the Dos version we can't get no exit status.
In fact we currently count to 10 then kill the process.

I think using Acrobat Reader to launch a print job is loony tunes,
but am struggling to find a better way. Does anyone know of a better
way, either to better control the shell command, or to fire PDF at
a printer from Java.

Also seeing some corruptiion of the margins in the Unix case. Any
Unix gurus know if lpr or acroread need some flags to shrink the
margin or set the page size. So many variables...

Prob this is all slightly off topic. Not sure. Seems printing is a
reasonable thing to do with a PDF so maybe we have all floundered
a bit in this area.

When not Fopping, can be found floundering with style.

Reply via email to