Two-page PostScript output [message #28720] |
Thu, 03 January 2002 12:35 |
David Shadovitz
Messages: 19 Registered: September 2000
|
Junior Member |
|
|
I'd be thrilled if anyone could help on this one...
I'm trying to write a two-page PostScript file, with one image per
page. The following code almost works; it writes both images
superimposed on one page.
Set_Plot, 'PS', /Copy
Device, filename='C:\file1.ps'
for iImage=0,1 do begin
Contour, imageData(iImage), ...
endfor
Device, /Close
Device has an Output keyword which lets you specify device-specific
commands, and thought that I could use that to force a page break. So I
added this line right after the call to Contour:
if (iImage eq 0) then Device, Output='{ gsave} { showpage} { grestore} {
newpath}'
I got those PS commands from a multi-page PS file created outside of
IDL. But that did not work.
So, how do I put a page break into a PostScript file?
Thanks.
David Shadovitz
Sr. Software Engineer, XonTech, Inc.
|
|
|