I have tried to embed EPS-files into my own Postscript and get from time to time error when trying to wrap the EPS with save/restore
It seems that the EPS somehow makes my restore crash.
Without save/restore pair around the EPS it seems to work fine, but as i try to make an C-program that should be able to include "any" EPS into a PS file i would like to know if there is any technique to save/restore the graphic context without any EPS-file beeing able to "destruoy" my restore.
I have not analyzed the huge EPS thorougly but i have two guesses of what might be wrong:
- restore beeing somehow redefined
- stack left unbalanced.
Is there a way to make sure that
"restore" still is the "original" restore
and that the EPS does not litter the stack with left-over objects.
I guess this is basic PS i should know, but i am no proficient PS programmer.
Also i HAVE studied other articles on preparing EPS-files (removing binary bytes before !PS and so on).
Kind regards from Oslo-Norway
It seems that the EPS somehow makes my restore crash.
Without save/restore pair around the EPS it seems to work fine, but as i try to make an C-program that should be able to include "any" EPS into a PS file i would like to know if there is any technique to save/restore the graphic context without any EPS-file beeing able to "destruoy" my restore.
I have not analyzed the huge EPS thorougly but i have two guesses of what might be wrong:
- restore beeing somehow redefined
- stack left unbalanced.
Is there a way to make sure that
"restore" still is the "original" restore
and that the EPS does not litter the stack with left-over objects.
I guess this is basic PS i should know, but i am no proficient PS programmer.
Also i HAVE studied other articles on preparing EPS-files (removing binary bytes before !PS and so on).
Kind regards from Oslo-Norway