Thanks
Let's clarify myself.
First I am used to write PS code for PS Rip like GS,Harlequin, or Jaws. As procset or pagefeature, or driver init procs.
But distiller is a close but different beast, and I can't use it the way I need.
As an example I need to track rather unusual comments values like
%%Page: (Logo CRAZY STARS\(new\)) 17
or
%%Page: logoPRESENCE.eps 45
or
%%PlateColor: PANTONE S 257-3
Distiller do it's own interpretation of theses values to feeds PDF PageLabelDict /St /D, /P.
BUT I need the original strings. I can't only use the PDF page label, which would require anyway a post processing to catch theses infos.
I am used to catch them on 5D Jaws and Harlequin Scriptworks within procsets I successfully wrote.
Theses 2 products have a special dictionary where I can define a comment to catch using /Key {proc} pair, then they interpret the comments and call my procs with a string as arguments.
Then I can do whatever I need to do with it (store it to a file in my case)
For example on Harlequin ScriptWorks typically this work like
They use (%%string) in place of /key to allow %%, for interpreter it's same beast.
(%%dict) load (%%actions) get begin
/Page: {(Page: Found , value is <) print print (>)=} def
/ PlateColor: {(PlateColor: Found , value is <) print print (>)=} def
end
output on stdout would then be
"Page: Found , value is <Logo CRAZY STARS(new) 1>"
In fact procs I do is more elaborate in order for my own procs to be concatenated to any already existing procs that another procset may have already setup.
Once that said.
How can I do to setup "something" in distiller to have my own procs being called each time this comments is found.
Best would be that I can get the arguments directly as a string as I can do with Jaws and HQ rip..
Otherwise I plan to seek within currentfile to seek back fetch the line and reseek to saved position to resume interpretation (tedious..)
/BeginPage /EndPage are not a solution as they are called just before and after showpage, could be rather far away from (time and position) of the comments. %%Page is before %%BeginPageSetup and even worst Quark use it's own convention using %%QRKPageBegin: that happens after %%EndPageSetup.
So have you heard of a way to do that with distiller ? How ?
Thanks