You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Michael Wentzel <Mi...@aswethink.com> on 2001/03/08 16:58:43 UTC

RE: Landscape flag?

> Is there a landscape mode in FOP?  I am setting the 
> width/height of the page
> to the values used in a landscape document.  However, I need 
> to print my
> PDFs programatically.  Right now, all PDFs are printed in 
> portrait mode
> (unless I open Acrobat Reader and print them).  Does anybody know of a
> solution to printing PDFs from code?  I was wondering if there is a
> Landscape flag that should be set to give the print driver a clue.

You could always programmatically use your own landscape flag.  This is
what I did in our existing system, which was built around JClass PageLayout
but have discovered that JClass is TOO SLOW on large docs, by building
pages using dimensions and setting the appropriate dimensions based on
a flag indicating orientation.  This doesn't retain the Objective nature
of the FOP architecture in keeping this aspect more closely tied to
the Document code but it works.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:wentzel@aswethink.com

- Punisher of those who cannot spell dumb!

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


How to Find your own answers (WAS Landscape flag?)

Posted by Alex McLintock <al...@yahoo.com>.
--- Daniel Bradby <da...@bjs.com.au> wrote: > 
> > > Is there a landscape mode in FOP?  
> 
> Java printing can certainly programatically change to landscape and if
> the FOP FAQ states to swap page-height and page-width, then would it be
> reasonable to switch orientations if width > height?
> 
> Daniel

When that answer went into the FAQ it was the generally held opinion that all you
needed to do was swap the values for width and height and taddah - landscape mode.

However more recently I saw there was some comment about actual fields you need to 
change.

http://www.OWAL.co.uk:8090/asf/fop.jsp   has an interactive FAQ you can search and add to.

It also mentions the mailing list archives at

http://marc.theaimsgroup.com/ 

and 

http://marc.theaimsgroup.com/?l=fop-dev&w=2&r=1&s=landscape&q=b

will search for mentions of landscape.

This helped me find the answer:

>       if you want to rotate the entire report (landscape page) you need to
>put the reference-orientation into the fo:region-body of the page (inside
>the sequence) that you want to rotate.
>
>                                       Fabio

The reference-orientation probably needs to be 90 as in ninety degrees of rotation.

But it also tells me this didn't work for everybody - some versions of FOP don't 
seem understand the reference-orientation tag

Goodluck!

Remember to check the FAQ - otherwise I will be rather upset I bothered to set it up.

(Of course remember that the FAQ can be used to create proper documentation as 
done by Fotis later on so add any useful info you have)

http://www.OWAL.co.uk:8090/asf/fop.jsp 


Alex


=====
Alex McLintock
http://www.galactic-guide.com/    http://www.DiverseBooks.com/
 Project Galactic Guide           So Many Books, So Little Time
Humourous And Useful Nonsense

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Landscape flag?

Posted by Daniel Bradby <da...@bjs.com.au>.
> > Is there a landscape mode in FOP?  

Java printing can certainly programatically change to landscape and if
the FOP FAQ states to swap page-height and page-width, then would it be
reasonable to switch orientations if width > height?

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org