Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing a string as PostScript instructions

Tags:

postscript

I have programmatically constructed a string, for example

(/r1 [256 782 502] def)

I'd then like to execute the string as PostScript instructions in order to have the array on the stack.

How can I execute a string object?

like image 731
Isidro Gil Avatar asked May 28 '26 14:05

Isidro Gil


1 Answers

As commented by Ken, you can call cvx on a string to make it executable, and then call exec on it.

That will execute the contents of the string as PostScript source.

like image 87
luser droog Avatar answered May 30 '26 03:05

luser droog



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!