AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
March 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.03.19 17:50 "txt to tiff", by Soledad Alborno
2004.03.20 08:44 "Re: txt to tiff", by Andrey Kiselev
2004.03.20 14:53 "Re: txt to tiff", by Bob Friesenhahn
2004.03.20 15:18 "Re: txt to tiff", by Joris Van Damme
2004.03.20 15:32 "Re: txt to tiff", by Bob Friesenhahn
2004.03.20 15:44 "Re: txt to tiff", by Joris Van Damme
2004.03.20 15:53 "Re: txt to tiff", by Bob Friesenhahn
2004.03.20 16:18 "Re: txt to tiff", by Joris Van Damme
2004.03.20 16:37 "Re: txt to tiff", by Bob Friesenhahn
2004.03.20 16:53 "Re: txt to tiff", by Joris Van Damme
2004.03.20 16:48 "Re: txt to tiff", by Joris Van Damme
2004.03.20 21:50 "Re: txt to tiff", by Andrey Kiselev
2004.03.20 22:27 "Re: txt to tiff", by Joris Van Damme
2004.03.20 21:43 "Re: txt to tiff", by Andrey Kiselev
2004.03.20 22:50 "Re: txt to tiff", by Joris Van Damme
2004.03.21 05:35 "Re: txt to tiff", by Mark Mcconnell

2004.03.20 15:32 "Re: txt to tiff", by Bob Friesenhahn

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