[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-dev
Subject: RE: Printing landscape pages using AWTRenderer
From: Anthony Dodd <AnthonyDodd () synergy-fs ! com>
Date: 2001-05-31 7:56:22
[Download RAW message or body]
Hi Martin
Did we discuss this problem yesterday, and if so did you get
anything that worked.
Regards
Tony
-----Original Message-----
From: Martin Batty [mailto:battym@synergy-fs.com]
Sent: 30 May 2001 16:23
To: 'fop-dev@xml.apache.org'
Subject: Printing landscape pages using AWTRenderer
Hi,
I'm using the AWTRenderer to print documents. Portrait pages are fine but
I'm having problems with landscape pages.
I have a very basic Printable subclass that calls the AWTRenderer's
printing methods.
If the pageHeight < pageWidth I'd like to rotate the page 90 degrees.
The 'transform' method seems to be a utility to do just that.
public int print(Graphics g,java.awt.print.PageFormat pf, int pageIndex)
throws java.awt.print.PrinterException {
if (pageHeight < pageWidth) {
transform ( (Graphics2D)g, 100, 90);
}
return super.print(g,pf,pageIndex);
}
But this does not change anything. The method manipulates the g2d's
AffineTransform, would it be expected to work in this context?
Any help is appreciated,
Regards,
Martin Batty
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic