🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.postscript
3 messages
3 total messages Started by Nilo STOLTE Sun, 15 Nov 1992 19:15
RE: Finding out the real page counter.
#5670
Author: Nilo STOLTE
Date: Sun, 15 Nov 1992 19:15
10 lines
654 bytes
Hi antoon!
You say:
...
>>problem. (I.e. a program that determines the number of pages in a any
>>given PS-file)

  Simply count the number of "%%Page:" that there is in your PostScript file. You
can write easily a program to do that...

Nilo.
Re: Finding out the real page counter.
#5693
Author: Chris Lewis
Date: Tue, 17 Nov 1992 02:10
17 lines
1081 bytes
In article <2600@irit.irit.fr> stolte@irit.irit.fr (Nilo STOLTE) writes:
><somebody said>
>>>problem. (I.e. a program that determines the number of pages in a any
>>>given PS-file)

>  Simply count the number of "%%Page:" that there is in your PostScript file. You
>can write easily a program to do that...

Please read the PostScript FAQ.  This doesn't work, in general, because
not all PostScript has %%Page: comments in them.

The original poster should be able to delay the pagecount evaluation until
end of the job.
-- 
Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
Ferret list: ferret-request@ferret.ocunix.on.ca
Re: Finding out the real page counter.
#5696
Author: Sean Lamont
Date: Tue, 17 Nov 1992 08:59
29 lines
1419 bytes
In article <2600@irit.irit.fr> stolte@irit.irit.fr (Nilo STOLTE) writes:
>Hi antoon!
>You say:
>...
>>>problem. (I.e. a program that determines the number of pages in a any
>>>given PS-file)
>
>  Simply count the number of "%%Page:" that there is in your PostScript file. You
>can write easily a program to do that...

this is assuming that the document follows proper DSC. Consider the following

%!PS
/Helvetica findfont 20 scalefont setfont
100 100 moveto (spam) show
showpage

This has no instances of %Page in the document, and yet it will print on
99% of the valid postscript devices out there.





-- 
Sean T. Lamont                           |   "Don't oppress me, It's
zeno@genetics.washington.edu             |    'computer of color!' "
lamont@abstractsoft.com                  |_______________________________
Abstract Software                                                         
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads