Stuart Weitzman
Usenet Archive
- Joined
- Nov 7, 2003
- Messages
- 1
- Reaction score
- 0
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
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