Re: counting postscript pages

2000-01-05 Thread David Taylor
Thanks to everyone for the suggestions. It appears that I can't determine the number of pages that postscript will consume without printing. I will have to settle for getting this information after printing. Thanks. -- David -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as t

Re: counting postscript pages

2000-01-04 Thread Dominic Mitchell
This could do it: grep -c %%Page: file.ps Cheers, Dominic. > "hk" == Hidong Kim <[EMAIL PROTECTED]> writes: hk> David Taylor wrote: >> >> I'm wondering, is there a tool available for determining the number of >> pages that a postscript file would consume without actually printing it? >

Re: counting postscript pages

2000-01-04 Thread Uncle Meat
On 05-Jan-00 David Taylor opined: > "Rick L. Mantooth" wrote: >> >> mpage -o PostScript.ps_file | tail -1 > > But doesn't this try to print to the default printer? I don't want to > print. I just want to determine how many pages the postscript file > would consume *if* it was printed. > > Th

Re: counting postscript pages

2000-01-04 Thread David Taylor
"Rick L. Mantooth" wrote: > > mpage -o PostScript.ps_file | tail -1 But doesn't this try to print to the default printer? I don't want to print. I just want to determine how many pages the postscript file would consume *if* it was printed. Thanks anyway. David. > On Wed, 5 Jan 2000, David T

Re: counting postscript pages

2000-01-04 Thread Vidiot
>Could you count the number of "showpage" commands in the document? >Hidong Nope. Most Postcript files are written in such a way that the showpage is part of a user defined procedure, i.e., it only appears once in the file. MB -- e-mail: [EMAIL PROTECTED] Bart: Hey, why is it destroying ot

Re: counting postscript pages

2000-01-04 Thread Rick L. Mantooth
Caution, Long Shot: mpage -o PostScript.ps_file | tail -1 ie: (/)thebeast@rickdman# mpage -o /usr/doc/gawk-3.0.4/awkcard.ps | tail -1 %%Pages: 3 Told you it was a long shot... ;-) Have fun, -- Rick L. Mantooth [EMAIL PROTECTED] According to my calculations the problem doesn't exist. On Wed, 5

Re: counting postscript pages

2000-01-04 Thread Vidiot
>I'm wondering, is there a tool available for determining the number of >pages that a postscript file would consume without actually printing it? >David This question, or ones like it, never seem to go away :-) PostScript files cannot be checked to determine, with 100% accuracy, the number of pa

Re: counting postscript pages

2000-01-04 Thread Hidong Kim
David Taylor wrote: > > I'm wondering, is there a tool available for determining the number of > pages that a postscript file would consume without actually printing it? > > TIA. > > -- > David > > -- > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" > as the Subject. Could you cou

counting postscript pages

2000-01-04 Thread David Taylor
I'm wondering, is there a tool available for determining the number of pages that a postscript file would consume without actually printing it? TIA. -- David -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.