Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to force a new page? 1

Status
Not open for further replies.

Hemo

Programmer
Apr 9, 2003
190
US
I want to generate a postscript document that will print out two pages.

I keep getting one.

Is there a postscript command or method I can place in a .ps document that will basically say 'Ok, done with this page, print it and lets start on a new page'.

code:
Code:
/DB { 	/boxury exch def
	/boxurx exch def
	/boxlly exch def
	/boxllx exch def
	boxllx boxlly moveto
	boxllx boxury lineto
	boxurx boxury lineto
	boxurx boxlly lineto
	closepath
	boxurx boxury moveto
} def
10 10 100 100 DB stroke
%commands/method to print this page
%and now start on a new page
15 15 150 150 DB fill

 
oh geez. I don't have to tell you how stupid I feel, do I?

It appears at some point I inadvertantly moved the line printing 'showpage' to a point outside of the loop that is processing my pages. I'm using perl to parse a file and then create the postscript on the fly and sent it to the printer.

I never went line-by-line through my output and counted showpage commands. Here I thought I was doing a showpage at the end of every page and it wasn't working and that there had to be 'something else' that I just couldn't find in the reference books.

I moved my 'showpage' back within my page processing loop and it seems to be quite content. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top