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

Home » Public Forums » archive » Re: Two-page PostScript output
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Two-page PostScript output [message #28716 is a reply to message #28713] Thu, 03 January 2002 13:02 Go to previous messageGo to previous message
Dave Greenwood is currently offline  Dave Greenwood
Messages: 33
Registered: October 2000
Member
David Shadovitz <david_shadovitz@xontech.com> wrote:
> 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?

Have you tried ERASE? My docs say it "starts a new page if the device
is a printer". I'd assume PostScript is a "printer". Don't know if RSI
makes the same assumption...

Dave
--------------
Dave Greenwood Email: Greenwoodde@ORNL.GOV
Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: textbox value on destroy?
Next Topic: Reporting routines called

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

Current Time: Thu Oct 09 08:27:27 PDT 2025

Total time taken to generate the page: 1.68229 seconds