× 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.



Greetings,

First of all, thanks to the tn5250 developers and the users whom have
contributed to this mailing list. With this great utility, the list
archives and the TN5250 HOWTO guide, I have setup a Linux server running
multiple print sessions to our IBM i5. Previously, these were IBM
Client Access print sessions on a Windows 2000 server. Thanks to all!!!

We have a wide mix of tcp/ip printers on our network, mostly various HP
LaserJet's, scattered throughout many departments and remote locations.
In addition to the print sessions, I also created a "print-to-pdf"
session so that any user could print their output into .pdf format and
the file will show up in the home folder of their Windows PC's. This
has been great as they can now share this .pdf document via email or
easily print individual pages, etc.

Now for my problem that I have yet to resolve and could use some
assistance:

Similarly to how I now print to a .pdf file, I would like to print to a
.tiff file for use in our Document Imaging System. I can easily do a
conversion from a .ps file to a .tiff file using Ghostscript but I can't
seem to get it automated by using the lp5250d "outputcommand" as I have
done with the .pdf files. FYI, I use the .tn5250rc file for all my
printer definitions and I don't use HPT as I have very little experience
currently on the i5 system. I do hope to learn more in the near future.


For normal 130 column print jobs I use:
outputcomand = scs2ascii | enscript -B -DDuplex:true -f Courier7
--margins=36::36: -rd any_printer

For .pdf file creation, I use:
outputcommand = "scs2pdf > /home/user/process$$.pdf"

For .tiff creation, this works:
outputcommand = scs2ps | gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r300
-sOutputFile=/home/user/test.tiff -

Unfortunately, the scs2ps file is not formatted as I need so the .tiff
output is not as I would like. If I use my normal printer outputcommand
in which I pipe to enscript for formatting and then pipe that to gs for
.tiff conversion, it doesn't work.

The following command is what I think is supposed to work, but doesn't.
It is all one long command and I don't use Duplex for the .tiff file.
As you can see, I try to make use of the '-' character for stdin and
stdout as per the enscript and ghostscript manuals.

outputcomand = scs2ascii | enscript -B -f Courier7 --margins=36::36:
-r --output=- | gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r300
-sOutputFile=/home/user/test.tiff -

Anyway, that is my problem and if anyone has advice I certainly would
appreciate it. I hope that I have made it understandable and I
apologize for being so verbose. Thank you for your time in reading this
and thanks again to all of you that have contributed so much to this
wonderful utility!


Sincere regards,
Mitch



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.