FOP 2.0.5 PSRenderer Landscape Settings

  • Thread starter Stuart Weitzman
  • Start date
S

Stuart Weitzman

All,

I'm trying to figure out how to generate a PostScript file using FOP 2.0.5.
I've got all the right elements in place, however, the spec is not fully
implemented yet.

Here's some code:

PSRenderer ps = new PSRenderer();
Driver driver = new Driver();
driver.setRenderer(ps);

Now, according to the spec, you should be able to do a couple of things:

ps.setAutoRotateLandscape(true);

Unfortunately, in the latest build this and isAutoRotateLandscape() are not
available for some reason.

So, i started looking at the setOptions() tag. Does anyone know how to
implement this? if so, where can I find a valid list of options to set?

The ultimate goal here is to generate a PostScript file in landscape format.
While the FOP docs state that all you have to do is switch the layout width
and height measurements, all that does is rotate the image, not the paper
size.

Thanks,
Stu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top