Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Existing postscript procedure overloading

Status
Not open for further replies.

burya

Programmer
Oct 26, 2003
7
IL
Hi ALL,
I need help to solve following problem:
When Adobe Illustrator version 10 creates EPS file, it includes following procset
%%BeginResource: procset Adobe_AGM_Utils 1.0 0
this procset containes procedure /map_reserved_ink_name which changes CMYK and RGB names to undescored names _Red_, _Cyan_, etc.

I need to overload this procedure. it means, i need to catch stack, make some manipulations and finish procedure execution.
To simulate full procset code, you can create any EPS file in Illustrator 10.

Thank you for help.
To simulate full procset code, you can create any EPS file in Illustrator 10.
 
PostScript isn't an OOP language, so you cannot do true overloading. You can write your own procedure that does the manipulations you want, and insert a call to that procedure in the procset.

Alternatively, you can create your own procedure with the same name (similar to overloading), but you have to duplicate all of the code. Plus, you have to be aware of dictionaries: which dictionary the proc-set is in, which dictionary your new proc is in, etc.

Thomas D. Greer
 
Use Idiom recognition to replace the procedure with what you need to do.

I once did this for a rip I was working on.
 
When I mentioned that I once used Idiom Recognition, I meant using Idion recognition to change the behavior of the same function "map_reserved_ink_name" other wise I use Idiom Recognition quite a lot.

GT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top