Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3193
| Newsgroups | comp.lang.postscript |
|---|---|
| Date | 2017-11-15 19:08 -0800 |
| References | <b3557aa7-a1ff-4e62-9f04-e283c1d66389@googlegroups.com> |
| Message-ID | <80f0efdb-4bec-4d97-a0e2-b684ff87060a@googlegroups.com> (permalink) |
| Subject | Re: Page number of page currently being painted |
| From | luser droog <luser.droog@gmail.com> |
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. Another possibly useful datum is the value of `currentfile fileposition`. fileposition should work fine with disk files in both interpreters but possibly not with pipes or network streams. It conceivably could signal an ioerror.
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
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