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:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Wed, 22 Mar 2000 23:21:10 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
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