I currently am doing this using Mark Bixby's Apache with PHP port. I use a
php3 file which writes the document name as the title in <h1> tags. It then
"includes" the text file in <pre> tags. Works really well, I use it for
serving all of our internal text documents.
PHP also has some PDF features but I have never tried them.
-Peter Osborne
----- Original Message -----
From: "Lars Appel" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, March 22, 2000 5:21 PM
Subject: Re: Printing Reports to Screen Rather than Paper
> Allen wrote...
> >So will this take an ASCII file and turn it into a PDF file?
> >Will it then be viewable on a PC or the Web?
>
> The probably easiest way to make an ASCII file (with no PCL
> control codes inside) viewable from the web is to copy it into
> a directory that is accessible by the web server and name it
> with a .txt extension (which causes the web server to deliver
> it to the browser with MIME type text/plain)...
>
> :xeq /bin/tobyte "-a -t MYFILE /APACHE/PUB/htdocs/myfile.txt"
>
> The next level of complexity would be adding a little bit of
> HTML heading and footing to the file and cover the "meat and
> potatoes" part in <PRE> and </PRE> tags. However, one should
> also make sure to find-and-replace "&" by &" and "<" by
> "<" and ">" by ">" if they can occur in the text body.
>
> The above step can be automated with EDITOR.PUB.SYS in batch.
>
> Lars "can live without PDF at times"
>