Folks:
Enough requests have come in since I posted my summary to
convince me that there are a lot of people out there with the smae
problem and that the "fixpdf" script and changes to the printers
.param file should be in the archives.
So, they are attached below, hope someone finds them
useful...
Basic procedure:
1). Save fixpdf to a file
2). run add_np_filter as root to install it in the
$NPHOME/NeWsprint/pl.sun4/C/ps directory
3). Add the mods below to the printers .param file
4). Stop and restart small_openwin
5). Happily print PDF files from here on out
6). Have a little smile for Kevin each time you print...
Regards,
b c++'ing u,
%-) sjs
PS: I am my own employer, therefore: "all opinions are twice spoken for;"
and they do, in fact, scare the hell out of said employer!!!
-------------------------------------------------------------------------------
Stefan Jon Silverman - President SJS Associates, N.A., Inc.
Suite 15-B
Inter-/Intra-Net Architecture, Implementation & Security 698 West End Avenue
New York, NY 10025
E-mail: sjs@sjsinc.com Phone: 212 662 9450
Website: http://www.sjsinc.com Fax: 212 662 9461
Text-Page: sjs-page@sjsinc.com Cell: 917 929 1668
-------------------------------------------------------------------------------
Weebles wobble, but they don't fall down!!!
-------------------------------------------------------------------------------
(pts25@lazlo) silvs> more fixpdf
#!/usr/local/bin/gawk -f
BEGIN {
start_pat="/_pdfFaceByStyleDict 4 dict dup begin"
end_pat="end def"
printit=1
doneit=0
}
{
doline=1
if(doneit==0 && match($0,start_pat))
{
printit=0
}
else if(printit==0 && doneit==0 && match($0,end_pat))
{
printit=1
doline=0
doneit=1
}
if(doline==1 && printit==1)
print
else
next
}
---> Changes to: /opt/etc/lp/printers/SPARCprinter/.param
PLCMD_BANNER=":fixpdf :rev $STACKORDER -T $NPTMP :separator :npcomm"
^^^^^^^
PLCMD_NOBANNER=":fixpdf :rev $STACKORDER -T $NPTMP :npcomm"
^^^^^^^
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:14 CDT