HP3000-L Archives

March 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Peter Osborne <[log in to unmask]>
Reply To:
Peter Osborne <[log in to unmask]>
Date:
Wed, 22 Mar 2000 19:18:57 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
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 &amp;" and "<" by
> "&lt;" and ">" by "&gt;" 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"
>

ATOM RSS1 RSS2