text2pdf for MPE/iX
http://invent3k.external.hp.com/~MGR.WONSIL/text2pdf.html
Freeware text to Adobe PDF Converter
Last updated 13 Nov 2002
Welcome
This is a port of text2pdf, written by Phil Smith of the Electronic Publishing Research Group.
It is a fairly simple program and as its name suggests, it takes a text stream and converts it to a PDF
stream.
For more information, see the official web site.
System Requirements
- Requires MPE/iX 5.0 or later.
- No other special requirements
How to Obtain text2pdf
How to Install
- :sh.hpbin.sys -L
- cd destination
- tar xvfopz downloadDir/text2pdf.tar.Z
destination is usually /usr or /usr/local.
downloadDir is the directory where the tarball is located.
Distribution Highlights
- /usr/contrib/bin/
- text2pdf - executable program
- /usr/contrib/man/
- man1/text2pdf.1 - man page
- /usr/contrib/src
- text2pdf_1.1/text2pdf.c - Source code
How to Compile text2pdf
- :HELLO user.account
- :XEQ SH.HPBIN.SYS -L
- cd /usr/contrib/src/text2pdf_1.1/
- gcc text2pdf.c
- mv a.out /usr/contrib/bin/text2pdf
How to Run text2pdf
To see the help, just run: text2pdf -h
(make sure /usr/contrib/bin is in your PATH or type the full path.)
In the shell, you can test the program by creating a pdf of the help:
$ text2pdf -h | text2pdf > text2pdf_help.pdf
This example creates a pdf document with the result of a discfree.
$ callci discfree b | text2pdf > discfree.pdf
To run the program at the CI prompt:
:file syspdf;rec=-1,,b,ascii;save
:run /usr/contrib/bin/text2pdf <sysstart.pub.sys >*syspdf
A possible use for this program is in CGI scripts. As long as you set the MIME type correctly
(application/pdf), you will be able to send a pdf document back to the browser.
Known Bugs Under Investigation
- I don’t know if it is a bug, but it certainly is not friendly. If you use the -f (font) option and you
do not use a valid font name (case-sensitive!), you will get an error when you open the document
and it will display in the default font (Courier)
- Base 14 Fonts
- Courier
- Courier-Bold
- Courier-BoldOblique
- Courier-Oblique
- Helvetica
- Helvetica-Bold
- Helvetica-BoldOblique
- Helvetica-Oblique
- Symbol
- Times-Bold
- Times-BoldItalic
- Times-Italic
- Times-Roman
- ZapfDingbats
Change History
- 24 Oct 2001
Expand to 5000 pages. Thanks to Robert Mills for finding that one!
- 13 Nov 2002
Mark Wonsil