Home > Archive > PostScript > February 2008 > Modifying Win XP System32 sysprint.sep
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Modifying Win XP System32 sysprint.sep
|
|
| George 2008-02-14, 8:11 am |
| Hello all,
I know little to nothing about postscript, but security at my company
wants banners cut-on for printouts.
I found enough online info to direct me to the .sep files in the
System32 directory.
I have even found the lines to change, I think, to suit my needs, but
I can't figure out how to make the lines
accept longer strings of text.
In the file sysprint.sep is this code:
@L}{
@L /Times-Roman findfont .5 72 mul scalefont setfont
@L PrintWidth 2 div 6 72 mul moveto
@L (\\\\server\\name) dup stringwidth pop 2 div neg 0 rmoveto show
@L PrintWidth 2 div 5 72 mul moveto
@L (PSCRIPT Page Separator) dup stringwidth pop 2 div neg 0 rmoveto
show
@L}ifelse
I am trying to change it to something like this:
@L}{
@L /Times-Roman findfont .5 72 mul scalefont setfont
@L PrintWidth 2 div 6 72 mul moveto
@L (PROJECT: FlyBy) dup stringwidth pop 2 div neg 0 rmoveto show
@L PrintWidth 2 div 5 72 mul moveto
@L (Do Not Leave Printouts Unattended.) dup stringwidth pop 2 div
neg 0 rmoveto show
@L PrintWidth 2 div 4 72 mul moveto
@L (If Found, Please Store, and Notify the Owner.) dup stringwidth
pop 2 div neg 0 rmoveto show
@L}ifelse
OK here is the problem. THe line "PROJECT: FlyBy" prints fine.
The line "Do Not Leave Printouts Unattended." will not. But if I
shorten it to "Do Not Leave" it
will print fine. The "If Found, Please Store, and Notify the Owner."
line, of course, never prints
out either.
So there is text width issue some where, I am guessing.
Can someone show me how to allow longer strings of text in this
code.....OR.....
is there a better way.
| |
|
| On Feb 14, 3:50=A0pm, George <george.e.sulli...@saic.com> wrote:
> ...
> In the file sysprint.sep is this code:
> @L}{
> ...
> @L}ifelse
>
> I am trying to change it to something like this:
>
> @L}{
> ...
> @L =A0 =A0(Do Not Leave Printouts Unattended.) dup stringwidth pop 2 div
> neg 0 rmoveto show
> ...
> @L =A0 =A0(If Found, Please Store, and Notify the Owner.) dup stringwidth
> pop 2 div neg 0 rmoveto show
> ...
> The line "Do Not Leave Printouts Unattended." will not. =A0But if I
> shorten it to "Do Not Leave" it
> will print fine. =A0The "If Found, Please Store, and Notify the Owner."
> line, of course, never prints
> out either.
> ...
It seems there's a limit of 80 chars/line, not counting the starting
"@L". Simply split the long text strings into multiple "@L" lines.
You can see what happens by connecting the printer to the FILE: port,
then looking at the resulting PostScript. In this particular case, the
lines are truncated in a way the result is still valid PS code (so no
error from the printer) but not having the intended effect (missing
"show" etc).
| |
| George 2008-02-14, 7:13 pm |
| On Feb 14, 9:52=A0am, SaGS <sags5...@gmail.com> wrote:
> On Feb 14, 3:50=A0pm, George <george.e.sulli...@saic.com> wrote:
>
>
>
>
>
>
>
[color=darkred]
h[color=darkred]
>
> It seems there's a limit of 80 chars/line, not counting the starting
> "@L". Simply split the long text strings into multiple "@L" lines.
>
> You can see what happens by connecting the printer to the FILE: port,
> then looking at the resulting PostScript. In this particular case, the
> lines are truncated in a way the result is still valid PS code (so no
> error from the printer) but not having the intended effect (missing
> "show" etc).- Hide quoted text -
>
> - Show quoted text -
Eureka...simple as that. Multiple @L lines that do not exceed the 80
char limit seems to work just fine for my simple needs.
Thanks.
|
|
|
|
|