Re: counting postscript pages
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 the Subject.
Re: counting postscript pages
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? >> -- == Dominic Mitchell Email: [EMAIL PROTECTED] Department of Economics mailto:[EMAIL PROTECTED] Queen's University Kingston, OntarioThe XXI century starts on 2001-01-01! Canada, K7L 3N6 Le XXI siècle débute le 2001-01-01! == -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: counting postscript pages
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. > > Thanks anyway. > > David. One possibility would be to send it to a file and view it with gv or something. Yes, it _IS_ a printed version. But it is _NOT_ printed to the printer. -- ~ is where the heart is. -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: counting postscript pages
"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 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. > => > => -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: counting postscript pages
>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 other toys? Lisa: They must have programmed it to eliminate the competition. Bart: You mean like Microsoft? Lisa: Exactly. [The Simpsons - 12/18/99] Visit - URL:http://www.vidiot.com/ (Your link to Star Trek and UPN) -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: counting postscript pages
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 Jan 2000, 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. => => -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: counting postscript pages
>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 pages it will print. A simple one line piece of code could print as little as one page when it is run or thousands the next time it is run. A DSC compliant PostScript file could have the %%Pages comment checked, but that could be wrong if the person used a page extraction program that doesn't update that comment. That means you need to check the %%Page comments and see how many there are in the file. But, if the person manipulated the file, even that could be wrong. So, in a nutshell, if the PostScript file is DSC compliant and hasn't been screwed with by anyone, yes. For all other situations, no. So, what do you do? You query the printer AFTER the job has been printed to determine the ACTUAL page count. Most printers have a page logging facility that can be used. MB -- e-mail: [EMAIL PROTECTED] Bart: Hey, why is it destroying other toys? Lisa: They must have programmed it to eliminate the competition. Bart: You mean like Microsoft? Lisa: Exactly. [The Simpsons - 12/18/99] Visit - URL:http://www.vidiot.com/ (Your link to Star Trek and UPN) -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: counting postscript pages
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 count the number of "showpage" commands in the document? Hidong -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
counting postscript pages
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.