comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Two-page PostScript output
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Two-page PostScript output [message #28720] Thu, 03 January 2002 12:35
David Shadovitz is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Running PV-Wave-Files in IDL?
Next Topic: Create a buffer zone

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:15:44 PDT 2025

Total time taken to generate the page: 0.00449 seconds