IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New 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?

New 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]
New Nope, backwards
gs interprets it.

Found it - enscript.
New 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.
New 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
New 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.
New 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
  1. 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.
  2. \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
New 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.
New Re: Simple script:
So, how was the quality? Were you satisfied?
-drl
     PDF/Postscript file creation - (broomberg) - (8)
         Google for ghostscript, can't remember the details right now -NT - (drewk) - (2)
             Nope, backwards - (broomberg) - (1)
                 GS will also convert .PS to .PDF - (Another Scott)
         Re: PDF/Postscript file creation - (deSitter)
         I print to .ps and run ps2pdf. -NT - (imric)
         Several possible solutions, most 2-step - (kmself)
         Simple script: - (broomberg) - (1)
             Re: Simple script: - (deSitter)

Smarter than the av-er-age bear!
50 ms