× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes, this method works happily under lp5250d as well.   If anyone is
interested in using lp5250d instead of lpr/lpd (I like lp5250d better)

Here's the .tn5250rc file I used:

pdf {
        host = as400
        env.DEVNAME=PDF
        env.IBMMSGQNAME=DSP08
        env.IBMMSGQLIB=*LIBL
        outputcommand=scs2ascii|enscript --no-header -p- -q -fCourier-Bold@4/8 
| ps2pdf - /home/klemscot/lp5250d-pdf-$$.pdf
}

(That outputcommand is all one line, in case your mail client wraps it)

It's not nearly as fast as James' version, but it works well as is
searchable...



On Mon, 11 Mar 2002, Frank Richter wrote:
>
> I seriously doubt that ghostscript produces non-searchable PDFs all the
> time. I use HPT with lpr from out AS-400 (V4R3, also tested with V3R7)
> and ghostscript 6.50.
>
> The output is quite good and *searchable*.
>
> My filter actually looks like this:
>
> ----
> #!/bin/sh
> OUTFILE=/var/tmp/as400topdf-`date +'%Y-%m-%d'`-$$
> recode -f ibmpc..l1 | \
> enscript --no-header -p- -q -fCourier-Bold@6.6/9.4 > $OUTFILE.ps
> ps2pdf $OUTFILE.ps $OUTFILE.pdf
>
> # TODO: we should get the userid sending the job and not make
> # everything world readable.
> chmod 644 $OUTFILE.pdf
>
> rm $OUTFILE.ps
> ----
>
> The AS-400 OUTQ uses WSCST QSYS/QWPDEFAULT in order to get a simple
> ascii output without any ESC-sequences for various printer models.
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.