(v13) The escapedstringlength operator
This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP
internaldict v6.4+
string escapedstringlength integer
string integer escapedstringlength integer
This operator calculates the length of a PostScript language string required to hold the string with some or all of the characters escaped such that the string can be reinterpreted by the PostScript interpreter correctly. In the first form the only characters escaped are (, )
, and \
. In the second form, an integer value of 7
or 8
will be accepted to indicate that the result of escaping the characters in the string should be a string that is 7
or 8
-bit clean, as defined for the %%DocumentData
: comment in The Adobe document PostScript Language Document Structuring Conventions Specification Version 3.0. This operator can return a value greater than the longest possible PostScript language string.