Wolfie7873
Technical User
Hi,
I read the earlier posts about wrapping unknown string lengths and I understand that's an undertaking in itself.
The postscript I'm trying to write doesn't need that capability; everything will be single line strings only. What I can't seem to find in the PLRM is the proper syntax for invoking the CR (carriage return) character. I'm trying to programmatically create a ps file from an open filestream in C++. Here's a snippet what I have:
/ms {moveto show} bind def
<</PageSize[612 792]/ImagingBBox null>>setpagedevice
/Times-Roman findfont 12 scalefont setfont
/topleft {72 700} def
(This is a string of text) topleft ms
showpage
The above code works great, what I would like to do is incorporate something like:
(This is a string \CR This is also a string) topleft ms
and get the output:
This is a string
This is also a string
And, if you can't answer that one, how much space is in the leading? so I can reposition the cursor.
I read the earlier posts about wrapping unknown string lengths and I understand that's an undertaking in itself.
The postscript I'm trying to write doesn't need that capability; everything will be single line strings only. What I can't seem to find in the PLRM is the proper syntax for invoking the CR (carriage return) character. I'm trying to programmatically create a ps file from an open filestream in C++. Here's a snippet what I have:
/ms {moveto show} bind def
<</PageSize[612 792]/ImagingBBox null>>setpagedevice
/Times-Roman findfont 12 scalefont setfont
/topleft {72 700} def
(This is a string of text) topleft ms
showpage
The above code works great, what I would like to do is incorporate something like:
(This is a string \CR This is also a string) topleft ms
and get the output:
This is a string
This is also a string
And, if you can't answer that one, how much space is in the leading? so I can reposition the cursor.