Fernando wrote: > I have some slideshow presentations created using StarOffice, and I'd > like to convert them to PDF. Looks easy -- just print to file and run > ps2pdf from gostscript. > > But the end result is that all slides get rotated by 90 degrees. If I > use xpdf or gv, that's easy -- just set the view mode to landscape. But > Acrobat reader do not have this feature.
I would also be interested in an easy way, but I can tell you the hard way, which I have used numerous times :-) The postscript file is plain text, and if you look in it, somewhere near the beginning you will find a section that looks like (created with the "generic postscript" driver in staroffice): %%BeginFeature: *PageSize Letter <</PageSize [612 792] /ImagingBBox null>> setpagedevice %%EndFeature %%EndSetup %%Page: 1 1 %%BeginPageSetup /#copies 1 def sv 90 rotate 1.0 -1.0 sl 18.0 18.0 tl %%EndPageSetup Change the "PageSize [612 792]" to "PageSize [612 792]", the "90 rotate" to "0 rotate" and the "18.0 18.0 tl" to "18.0 -590.0 tl" (tl is short for translate). This will have to be done for every "page" within the postscript file. Or use a short script. I created an executable file called "mkpdf", that looks like this: #! /bin/sh for file in *.ps do sed -e s/"90 rotate"/"0 rotate"/ -e s/"18.0 tl"/"-590.0 tl"/ -e s/"PageSize \[612 792"/"PageSize \[792 612"/ $file | ps2pdf - ${file%%.*}.pdf done Note that the stuff between "do" and "done" is a single long line, so undo the wordwrap. If for some reason your postsript file is slightly different, you might have to play with the values slightly, but it likely should work fine. Duane _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list