DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5654>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5654 PS rendering doesn't seem to support landscape pages [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Windows NT/2K |All ------- Additional Comments From [EMAIL PROTECTED] 2003-03-24 17:02 ------- Ok, now that I've been hit with a cluestick (and noted that the fix I mentioned below won't work for some cases, included the one that I am using), I've done some hacking. :-) I used fop.sh test.fo -awt to display the text, then I printed it to a file in landscape mode. I noticed that this did some very generic things to make landscape work, so I tried to incorporate them into FOP. That didn't totally work, I got a mirror image of what I wanted. So I did some more PostScript Googling/Hacking and came up with some slight changes to fix the mirror effect. The following works for me, but I would appreciate it if someone who is a bit more clueful about Postscript could point out any potential pitfalls: write("%%Page: " + page.getNumber() + " " + page.getNumber()); if (page.getHeight() > page.getWidth()) { // Assume Portrait mode and do nothing (relying on the defaults) write("%%PageBoundingBox: 0 0 " + Math.round(page.getWidth() / 1000f) + " " + Math.round(page.getHeight() / 1000f)); } else { write("/pgSave save def"); write("0 0.0 translate 1 -1 scale[72 300 div 0 0 72 300 div 0 0]concat"); write("1 -1 scale"); write("gsave"); write("[0.0 -4.166666666666667 4.166666666666667 0.0 0.0 3300.0000000000005] concat"); write("newpath"); write("%%PageBoundingBox: 0 0 " + Math.round(page.getHeight() / 1000f) + " " + Math.round(page.getWidth() / 1000f)); } write("%%BeginPageSetup"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
