Just verified with several printer drivers (HP LaserJet 4 PCL, Brother
HL-1250, HP LaserJet IIP PS) on Windows XP and I don't see any serious
displacements of the documents when using "-print". Not sure what's
wrong on your side. Try other printers or printer drivers. Otherwise,
and if Chris' work-arounds don't work for you, please state what
operating system you're on and what printer and printer driver you use.
The Java version will also be important.

On 01.06.2006 12:31:33 Jeremias Maerki wrote:
> While Chris is right that the -print output can never be 100% the same
> as from PDF or PS, a difference of 2cm rather sounds like a print margin
> problem. I haven't had time to look into this, yet, but I'm pretty sure
> it's that. Chris' work-arounds are certainly correct.
> 
> On 01.06.2006 12:22:59 Chris Bowditch wrote:
> > Rick Roen wrote:
> > 
> > > FOP 0.92b + Saxon 8
> > > 
> > > I’m getting different results with the attached files when I do the 
> > > following:
> > > 
> > > 1) FOP –xml test.xml –xsl test.xsl –pdf test.pdf
> > > 
> > > And
> > >             2) FOP –xml test.xml –xsl test.xsl –print
> > > 
> > > The first one produces a normal pdf which prints ok.
> > > 
> > > The second one sends the output directly to the printer, however the top 
> > > block is offset up and to the left by about 2cm. The balance of the 
> > > pages print normally.
> > 
> > The reason for the difference between -pdf and -print is because FOP 
> > uses the AWT renderer when printing directly to the Printer. The output 
> > from AWT varies greatly depending on o/s and JDK version. If you need to 
> > print a document then the recommended approach is to generate Postscript 
> > using the PS Renderer (output will be identical to the PDF Renderer) and 
> > pipe that directly to the printer using LPR or similar OS tool.
> > 
> > Chris
> > 
> > <snip/>


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to