Post #68,592
12/13/02 9:46:11 AM
|
PDF/Postscript file creation
I've brainfarted.
I want to convert a simple text file, no special formatting to PDF.
I seem to recall using a print driver filter to do it in the past, but can't remember / Google how.
Any direction?
|
Post #68,593
12/13/02 9:48:37 AM
|
Google for ghostscript, can't remember the details right now
=== Microsoft offers them the one thing most business people will pay any price for - the ability to say "we had no choice - everyone's doing it that way." -- [link|http://z.iwethey.org/forums/render/content/show?contentid=38978|Andrew Grygus]
|
Post #68,602
12/13/02 10:03:43 AM
|
Nope, backwards
gs interprets it.
Found it - enscript.
|
Post #68,608
12/13/02 10:14:30 AM
|
GS will also convert .PS to .PDF
When I want to make a .PDF, I just set up an app to print to a .PS printer, then have the app print to a file. I feed that file into GhostScript (via GhostView) and convert it to a .PDF
But it does make sense that there should be an app out there that'll do it directly (text to .PDF). Thanks for the pointer to enscript.
Cheers, Scott.
|
Post #68,616
12/13/02 10:28:45 AM
|
Re: PDF/Postscript file creation
The PDF creation tools in Linux are not very good compared to something like Acrobat. If your company has an interest in PDF, get a copy of Acrobat. It's in the top five programs I've ever used. In particular, try Acrobat Distiller Server for Linux.
-drl
|
Post #68,694
12/13/02 2:24:41 PM
|
I print to .ps and run ps2pdf.
Imric's Tips for Living- Paranoia Is a Survival Trait
- Pessimists are never disappointed - but sometimes, if they are very lucky, they can be pleasantly surprised...
- Even though everyone is out to get you, it doesn't matter unless you let them win.
|
Post #68,792
12/13/02 7:48:35 PM
|
Several possible solutions, most 2-step
I'd tackle this with a two-step solution. There are various tools to go from text to PS, and from there to PDF. mpage and a2ps are two of the better PS output tools. Under debian, ps2pdf is part of the gs-common Debian package. \r\n\r\n I use a similar set of processing to manage my [link|http://kmself.home.netcom.com/resume.html|resume]. Master format is HTML [1], from this I create text, PS, PDF, RTF (masquerading as a .DOC file to make MS Word-based resume processing software happy). The entire process is handled by a makefile, so I can go soup-to-nuts with "make resume.ftp" to recompile, reconvert, and post to my website, the latest version of my resume. Oh, and it's tied into version control ;-). \r\n\r\n -------------------- \r\n\r\n Notes:\r\n \r\n - Actually, it's not an HTML master doc, but a 'resume.d' directory, with components. This allows me to split my resume into components: header, contact info, objective, profile (currently omitted), skills, accoomplishments, employment, publications, interests, tail. I'm still trying to decide how best to handle differently targeted resumes, but am leaning toward creating subdirectories with specific focuses: systems administration, NOC, SAS, tech writing, teaching, and/or resumes tailored to specific recipients. Most of these mods would require slight tweaking of the objectives, skills, and accomplishments sections, the remainder of the resume could remain constant. Handling this would be via symlinks from the subdirs to the root 'resume.d' directory, with local mods where needed.
\r\n \r\n\r\n
--\r\n Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n [link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n What part of "gestalt" don't you understand?\r\n [link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n \r\n Keep software free. Oppose the CBDTPA. Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
|
Post #68,797
12/13/02 8:50:03 PM
|
Simple script:
enscript -l -o - | ps2pdf - -
Part of a pipeline. Take a stream from STDIN, default to line printer standard 66 lines and no heading, output a postscript stream. Feed that into ps2pdf, output a PDF stream.
I feed the output of my report generating script, which creates an attachment for the status emails.
|
Post #68,824
12/13/02 11:08:57 PM
|
Re: Simple script:
So, how was the quality? Were you satisfied?
-drl
|