postscript - EPS inside EPS as a link - any alternative to "run" command? -
maybe dumb question have 0 experience in postscript/eps , need (try and) solve problem got (the functionality worked in past...so told). under windows 7 x64.
the requirement asks link eps file inside eps file. way done using "run" command along "translate" , "scale" in order fit child.eps parent.eps. (this done java class)
consider following (simplified) example:
%!ps-adobe-3.0 epsf-3.0 %!ps-adobe epsf-3.0 %%boundingbox: 0 0 800 200 /courier findfont 70 scalefont setfont 10 10 moveto (hello world!) show %%eof
the above works fine if, before %%eof, add
(child.eps) run
i quite strange behaviors (tried on 3 windows pcs exact same results):
- adobe illustrator cs5 (v15) works ok(ish)...it works if illustrator not open , double-click file. if open illustrator first use file -> open dialog open eps file, fails "unknown error"
- adobe illustrator cs6 fails open file "unknown error" (all time)
- gsview (with ghostscript 9.07 , -dnosafer option) opens correctly.
what missing? or doing wrong?
is there other way link eps inside eps besides using "run" command can consistent results?
thanks!
le: both, parent.eps , child.eps in same folder
the postscript language doesn't have concept of 'link'. not surprising when consider postscript programming language.
surprisingly, executing 'run' in eps file doesn't makes invalid eps.
this surprising me because supposed include subsidiary eps file inside parent. whole point of eps file 'black box', work encapsulating postscript program merely needs set ctm scale eps space wants, execute eps. eps should not have side effect.
anyway, there nothing else in postscript want. suspect either illustrator shipping no postscript interpreter @ all, or restricted in fashion security reasons. illustrator not reliable means testing if postscript valid!
why want load illustrator ? have considered using pdf instead of eps ?
Comments
Post a Comment