Operating System - HP-UX
1833304 Members
2828 Online
110051 Solutions
New Discussion

Re: ASCII to PDF convertor for HP-UX

 
SOLVED
Go to solution
Vincent Farrugia
Honored Contributor

ASCII to PDF convertor for HP-UX

Hello,

Does the above exist?

Vince
Tape Drives RULE!!!
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: ASCII to PDF convertor for HP-UX

Go to

http://hpux.cs.utah.edu/hppd/search.html

and search of "pdf"

There is an html to pdf which could easily be modified.

live free or die
harry
Live Free or Die
Darren Prior
Honored Contributor

Re: ASCII to PDF convertor for HP-UX

Hi Vince,

A quick search of http://hpux.connect.org.uk showed a HTML->PDF converter called htmldoc-1.8.11

It might be worth a look to see if it fulfils your requirements.

regards,

Darren.
Calm down. It's only ones and zeros...
Stefan Schulz
Honored Contributor
Solution

Re: ASCII to PDF convertor for HP-UX

Hi Vince,

at the porting center (e.g. http://hpux.asknet.de) you will also find a tool called a2ps which converts any ASCII File to a PS file. Use this and pipe it through ghostscript or Acrobat distiller.

This is a two step solution and probably not what you have been looking for, but it is flexible.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Rich Wright
Trusted Contributor

Re: ASCII to PDF convertor for HP-UX

There is some very good information at
http://www.ps2pdf.com

Rich
Vincent Farrugia
Honored Contributor

Re: ASCII to PDF convertor for HP-UX

Thnaks.
Tape Drives RULE!!!
Robert Pieters
Occasional Advisor

Re: ASCII to PDF convertor for HP-UX

Try the program Pstill (ps to pdf. Works OK for HP-UX

See: www.pstill.com

Regards,

Robert
RolandH
Honored Contributor

Re: ASCII to PDF convertor for HP-UX

OK Vince,

I have a solution for you. But it is a little bit complex. I have testet it right now and it works great.

1. First of all you need cups from
http://big.asknet.de/hppd/hpux/Sysadmin/cups-1.0.2/
(Install also the required softwarepackages jpeg libpng zlib)

Install it on you system.

2. then put the attached files in follwing directories.

PostscriptColor.ppd.gz -->/opt/cups/share/cups/model

cups-pdf --> /opt/cups/lib/cups/backend

3. Start cups
/sbin/init.d/cups start

4. Configure your Cups PDF-Printer
Open a Browser on your System with the URL http://localhost:631

Go to Printer Mgmt and add a printer.
i.e.
Printer Name: pdfprinter
Location : (otional)
Decription: (optional)
NEXT

Device: Virtual Printer (PDF Printer)
NEXT

Vendor: Postscript
NEXT

Model: Generic postscript color printer(en)
NEXT
Ta ta you are finished.

Now print an ascii file to your printer with

/opt/cups/bin/lp -d pdfprinter /etc/hosts

You will find your pdf document under /opt/cups/var/spool/cups-pdf//hosts.pdf

If you want change the place you must recompile the backend cups-pdf by yourself.

You can do this in four steps

1. download the newest cups-pdf.h/c file from
http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf

2. change the cups-pdf.h file for your environment.

3. Compile with gcc -O9 -o cups-pdf cups-pdf.c
perhaps after that strip cups-pdf

4. Copy the backend to place I mentioned before.



PS: It convert almost everything in PDF =;-}}}

HTH
Roland
Sometimes you lose and sometimes the others win
jim bidebo
Regular Advisor

Re: ASCII to PDF convertor for HP-UX

Instead of using cups you can use the printing facility already present in hpux and a free version of ghostscript. set up a printer and instead of shipping the job to the printer use ps2pdf and save the result in the users home directory. Have tried this with Solaris (which have an almost identical printer system). Combine this with samba and you have a network wide any to pdf converter =) for free! theres some drawbacks when using in in this way... especially when using non-standard fonts, but its solvable... when only using ascii it shouldnt be any problems at all.

you can find ghostscript at : http://www.ghostscript.com/

OBS. Latest version is comercial...