Return-Path: <bfriesen@simple.dallas.tx.us>
Received: from inav001.isp.belgacom.be (inav001.isp.belgacom.be [195.238.3.91])
        by six.skynet.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i2KFWpD7015991
        for <joris.at.lebbeke@skynet.be>; Sat, 20 Mar 2004 16:32:52 +0100
        (envelope-from <bfriesen@simple.dallas.tx.us>)
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.3.146])
        by inav001.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-AV-2.02) with ESMTP id i2KFWj9A023244
        for <joris.at.lebbeke@skynet.be>; Sat, 20 Mar 2004 16:32:45 +0100
        (envelope-from <bfriesen@simple.dallas.tx.us>)
Received: from fuzzylog.simplesystems.org (fuzzylog.simplesystems.org [65.66.246.65])
        by inmx009.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i2KFWZ9a032442
        for <joris.at.lebbeke@skynet.be>; Sat, 20 Mar 2004 16:32:40 +0100
        (envelope-from <bfriesen@simple.dallas.tx.us>)
Received: from scooby.simplesystems.org (scooby.simplesystems.org [65.66.246.67])
	by fuzzylog.simplesystems.org (8.9.3/8.9.3) with ESMTP id JAA12406;
	Sat, 20 Mar 2004 09:32:33 -0600 (CST)
Date: Sat, 20 Mar 2004 09:32:33 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@scooby.simplesystems.org
To: Joris <joris.at.lebbeke@skynet.be>
cc: Tiff mailing list <tiff@remotesensing.org>
Subject: Re: [Tiff] txt to tiff
In-Reply-To: <001c01c40e8e$aa360b70$c00bf151@dfgrrxsknr4e>
Message-ID: <Pine.GSO.4.44.0403200924570.11186-100000@scooby.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-RAVMilter-Version: 8.4.3(snapshot 20030212) (inav001.isp.belgacom.be)
X-UIDL: afd876f398c1b661634267f7a7c6593b

On Sat, 20 Mar 2004, Joris wrote:

> Bob Friesenhahn wrote:
> > On Fri, 19 Mar 2004, Soledad Alborno wrote:
> > > Hello, I am searching how to convert txt files to tiff files.
> >
> > The easiest way is to use a tool like 'enscript' to produce Postscript
> > from the text, and then use Ghostscript in conjunction with libtiff to
> > output a TIFF file.
>
> I beg to differ, Bob. OK, it's easiest *for your*, since you've already setup
> all this stuff and learned to use it. Anyone else is in for quite an adventure
> doing it this way.

Certainly less of an adventure than the procedure you describe. :-)
I don't recall, did the original poster say he was using Windows?

Using GNU enscript and GNU Ghostscript the procedure would be similar
to:

 enscript --output=file.ps file.txt
 gs -dNOPAUSE -dBATCH -q -sOutputFile=file.tiff -sDEVICE=tiffg4 file.ps

If this is to be done often, a pipeline can be used to avoid a
temporary file.

Additional options are available for enscript and Ghostscript to
adjust the output.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen

