[HPADM] SUMMARY text to pdf

From: Hustert Klaus-CKH035 (Klaus.Hustert@motorola.com)
Date: Tue Jul 22 2003 - 02:38:31 EDT


Hi folks again,
Thanks to all who has responded and for such amount of answers. Sometimes I am feel me as a rookie when I have a look of some answers in the mailing list :-|

Here to question and afterwards the answers:
The old implemented process was to create a text file thru the application and press the print button. Now, I need a solution to convert the text file into a pdf file (nice will be a freeware mechanism). Afterwards they want to mail the pdf file than.
Anwers:
#------------------------------------------------------
Look at www.ps2pdf.com
Richard Wright
#------------------------------------------------------
Have you tried using Ghostscript for converting files (it's free and available at one of the porting sites - http://hpux.cs.utah.edu/
)...then emailing them. If you want to mail as an attachment my favorite is the method of using the 'include' stmt. But there are plenty of other options out there to check out too...
See here for a couple pointers: http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x41950559ff7cd4118fef0090279cd0f9,00.html
Rgrds, Rita
#------------------------------------------------------
Since PDF is a proprietary Adobe-owned format, you must purchase Adobe
Acrobat is available to run on *both* MacOS and MS-Windows ! Gee-whiz, that's useful for us HP-UX types. Grrr, arrgh.
Once you have the binary, just pipe it through uuencode or mpack or similar, then pipe that to sendmail.
Mike
#------------------------------------------------------
yes, this is pretty simple. Basically what you want to do is convert the text file to a postscript file and feed it to ghostscript for ps2pdf conversion. Ghostscript may actually have a script in it these days to do this for you.
it works nicely.
brett
#------------------------------------------------------
how about using "GhostScript" in a script to produce the PDF you want? On Windows there is even a ready-made package "freePDF" doing exactly this... On UN*X browse the Linux OpenSource servers.
FWIW,
Wodisch
#------------------------------------------------------
The free/open source GNU Ghostscript package has an option to convert PostScript to PDF. If you use a text-to-Postscript tool like GNU enscript with this, you can do your text to PDF conversion.
For Win32, PDFCreator on Sourceforge works very well for creating PDFs from any application that can print.
http://www.gnu.org/software/ghostscript/ghostscript.html
http://www.gnu.org/directory/print/postscript/enscript.html
http://sourceforge.net/projects/pdfcreator/
-- Steve
#------------------------------------------------------
There is a free perl script (you need some pdf modules) that do this. I was going to do that on our system but end up paying a few hundred for a different tool from a commercial company that did a faster job. I then use mpack to send the pdf as an attachment to a email. If you have any specific questions about what I am doing let me know.
- Justin
#------------------------------------------------------
There is a perl module that can be used form thus: http://search.cpan.org/author/FTASSIN/PDF-Create-0.01/lib/PDF/Create.pm
it may also be worth looking at:
http://www.pdflib.com/
http://www.fastio.com/
http://www.fpdf.org/ (php)
Cheers, Chris
#------------------------------------------------------
How about perl? There is a perl module that will convert to PDF. Check out this page:
http://search.cpan.org/author/FTASSIN/PDF-Create-0.01/lib/PDF/Create.pm
Good luck!
Alex
#------------------------------------------------------
Easy! To start, download GhostScript from the HP Porting Archive, possibly GhostView or PSView too. This has scripts for PostScript to PDF conversion. Download one of the ascii to Postscript tools like a2ps, a2p, pcps, etc., to handle the first part of the chain.
Doug Wyatt
#------------------------------------------------------
Well, there are a number of common filters to do this ... not sure if
enscript or some such could do directly text-to-pdf, but at least GNU a2ps or [n]enscript and the ps2pdf from (GNU) Ghostscript is easy to find and that combination might be what you need.
Note that a2ps and enscript produce slightly different output. Haven't
tried with nenscript, and only seen the GNU enscript, not Adobe's.
Ghostscript, a2ps, enscript and nenscript seem to be available from the
HP-UX Porting & Archive Centre as prebuilt binaries, too.
Mikko Nahkola
#------------------------------------------------------#

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:32 EDT