Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3194
| From | ken <ken@spamcop.net> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: Page number of page currently being painted |
| Date | 2017-11-16 07:55 +0000 |
| Message-ID | <MPG.347754df9f0208ac98991f@usenet.plus.net> (permalink) |
| References | <b3557aa7-a1ff-4e62-9f04-e283c1d66389@googlegroups.com> <80f0efdb-4bec-4d97-a0e2-b684ff87060a@googlegroups.com> |
In article <80f0efdb-4bec-4d97-a0e2-b684ff87060a@googlegroups.com>, luser.droog@gmail.com says... > > On Wednesday, November 15, 2017 at 5:04:48 PM UTC-6, jdaw1 wrote: > > Word produces RGB colours, even though CMYK can be wanted. So a pre-amble has been written that takes a look-up table, RGB?CMYK, and changes the meaning of setrgbcolor to do the obvious. This was ?discussed? in http://groups.google.com/forum/#!topic/comp.lang.postscript/6JW6VamdVlw > > > > The pre-amble?s new setrgbcolor reports when an unlisted RGB has been requested. As the file is 641 pages, it would much help to show the page number. ¿Is there any accessible parameter that reveals the page number of the page currently being painted? > > > > Ideally it would work in both Distiller and Ghostscript, but beggars, choosers, etc. > > > > Thank you. > > Probably the most portable way is to use the BeginPage or EndPage > hooks with setpagedevice. You can increment a counter variable > and then access the variable in the report function. EndPage is called with a count of pages so far, so you could use that. Except note that this is defeated if you execute setpagedevice which resets the count. Most PostScript produced from Windows includes setpagedevice on every page. Ken
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Page number of page currently being painted jdaw1 <jdawiseman@gmail.com> - 2017-11-15 15:04 -0800
Re: Page number of page currently being painted luser droog <luser.droog@gmail.com> - 2017-11-15 19:08 -0800
Re: Page number of page currently being painted ken <ken@spamcop.net> - 2017-11-16 07:55 +0000
Re: Page number of page currently being painted jdaw1 <jdawiseman@gmail.com> - 2017-11-16 15:56 -0800
Re: Page number of page currently being painted jdaw1 <jdawiseman@gmail.com> - 2017-11-17 00:35 -0800
csiph-web