From: dron@ak4719.spb.edu (Andrey Kiselev)
Date: Sat, 27 Sep 2003 11:50:00 +0400
Subject: [Tiff] text to image
In-Reply-To: <20030924105424.62EA.HANDY@maltech.ne.jp>
References: <20030923155458.408F.HANDY@maltech.ne.jp> <20030923193041.GA5411@ak4719.spb.edu> <20030924105424.62EA.HANDY@maltech.ne.jp>
Message-ID: <20030927075000.GB10915@ak4719.spb.edu>

On Wed, Sep 24, 2003 at 11:00:05AM +0900, handy@maltech.ne.jp wrote:
> > What do you mean as a text file? The text in human readable language or
> > an array of ASCII numbers representing a pixel values?
> 
> I meant text file of human readable language (i.e. body of email), I
> need to rasterize/render it into array representing pixels to be fed
> into TIFFWriteEncodedStrip, to create a .tiff file..

It is not libtiff related problem. What do you need is a typesetting
engine and you can choose from the simplest ones (enscript, a2ps) or
advanced systems (groff, lout, TeX). As soon as you get typesetted
layout in PostScript format you can rasterize it with Ghostscript. GS
has its own TIFF writer, but if you need more advanced TIFF features
like Group 4 compression or custom tag set you can use libtiff as the
second pass on GS output.

					Regards,
					Andrey


-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517

