Re: Postscript output mods [message #33659 is a reply to message #33421] |
Fri, 10 January 2003 12:57   |
fardal
Messages: 3 Registered: January 1996
|
Junior Member |
|
|
"S. Penzes" <Steven.Penzes@drdc-rddc.gc.ca> wrote in message news:<1041884260.331402@coyote>...
> Sorry people. I meant 180 degrees ... he says hoping to forestall all
> the comments about using Portrait.
Don't know how to do this in IDL. It sure is annoying when all your
other programs think it should be oriented the other way. You didn't
say what your platform was... If you have the pstops command (common on
linux) you can say
pstops '0U(8.5in,11in)' infile.ps outfile.ps
There is probably a program on any platform to do something similar,
or you can write it yourself with the advice here:
http://www.physics.ohio-state.edu/~faqomatic/fom-serve/cache /140.html
I would use a hack like the one below to automate the rotation (type dclose
instead of device,/close to finish the file).
Mark Fardal
University of Victoria
;returns currently open ps file
;THIS IS DANGEROUS--RSI MAY CHANGE HELP FORMAT
function getpsfile
on_error, 2
if (!d.name ne 'PS') then message, 'Not in PS device.'
help,/device,output=helptxt
file = (strsplit( strcompress( strtrim( helptxt[2], 2 ) ), ' ' ,/extract))[1]
if (file eq '<none>') then file = 'idl.ps'
return, file
end
pro dclose
filename = getpsfile()
device,/close
spawn, 'pstops "0U(8.5in,11in)" '+filename+' idl_tmp.ps'
spawn, 'mv -f idl_tmp.ps ' + filename
return
end
|
|
|