Hello everybody,
I've got a program wich fills in variables inside a postscript file before I print it. To make sure the program doesn't overwrite any postscript source while inserting the values I have to add some spaces, like this:
the %33 part is overwritten by the program, if the text is too long, the "show" command is literraly overwritten so corrupts the source. so I add some spaces. No I have to print a line right after the string, so those spaces are annoying, because they are countered to when using the stringlength operator. Is there a way to eliminate the right most spaces? NOTE: the inserted text may also some spaces, so not all spaces should be eliminated...
Greetings,
Smeaggie
I've got a program wich fills in variables inside a postscript file before I print it. To make sure the program doesn't overwrite any postscript source while inserting the values I have to add some spaces, like this:
Code:
(%33 ) show
the %33 part is overwritten by the program, if the text is too long, the "show" command is literraly overwritten so corrupts the source. so I add some spaces. No I have to print a line right after the string, so those spaces are annoying, because they are countered to when using the stringlength operator. Is there a way to eliminate the right most spaces? NOTE: the inserted text may also some spaces, so not all spaces should be eliminated...
Greetings,
Smeaggie