Hi: On Thu, Dec 02, 2004 at 06:20:14AM -0500, Kevin Mark wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, Dec 02, 2004 at 12:06:58PM +0100, Arrizabalaga, Saioa wrote: > > > > Hello all, > > > > I need a pdf-printer: I have tried with the cups-pdf package, following the > > installation steps from (http://transtronics.com/reference/print2pdf.htm). > > Anyway, if anyone knows another package to get my objectives, I would > > appreciate any help. > > > > After completing all the steps in the link before, I have tried to print a > > plain-text file in this pdf-printer with lp: > > lp -d pdf_writer_printer -t result.pdf plain_text_file > > > > A pdf file is created (although it doesn?t take the name I wanted > > (result.pdf), it takes the name "job_number-untitled_document.pdf"). > > Anyway, the created pdf file is always empty (its size is always 321 > > bytes). I have been looking the logs, and found that there is an error of > > ESP Ghostscript: > > > > [snipped] > > D [29/Nov/2004:17:41:34 +0100] [Job 9] stdin: is not a tty > > > > D [29/Nov/2004:17:41:34 +0100] [Job 9] ESP Ghostscript 7.07.1: > > Unrecoverable error, exit code 1 > > [snipped] > > > > At the end you will find all the error stack (/var/log/cups/error_log). > > > > I don?t know if the error is because I am using lp in an incorrect way, or > > my cups-pdf configuration is incorrect... > > > > Any ideas? > > > > > > > > > > Here you have the stack of the errors: (/var/log/cups/error_log) > > > > [snipped] > > Hi Saioa, > I just stated using tex (latex) and you can create great documents with > relative easy. I used a command 'pdflatex $FILE.tex' to produce pdf > files. > HTH > - -Kev
Saioa: PDF is easily generated from TeX as noted above (try `LyX' to generate `LaTeX or TeX' as it is much easier to use), but also easily generated from any PostScript document. To send `plain text' to PDF, try the following: mpage -1 plain-text.file > /tmp/a.ps # convert to PostScript ps2pdf /tmp/a.ps /tmp/a.pdf # convert to PDF An alternative to `mpage' is `a2ps'. `ps2pdf' comes with the ghostscript package `gs'. The companion program `gv' displays both PostScript and PDF files. Good printing... Dean ------ > > - -- > counter.li.org #238656 -- goto counter.li.org and be counted! > > (__) > (oo) > /------\/ > / | || > * /\---/\ > ~~ ~~ > ...."Have you mooed today?"... > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.5 (GNU/Linux) > > iD8DBQFBrvpuRp+kG4Nu//URAvW4AJ90vP1s/1QQb4xptUmvLnQB0HTWjQCfZC+D > tm/TFGBhU2Nb7khnNBKjIVc= > =+M4G > -----END PGP SIGNATURE----- > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- Dean Provins 50.950333N, 114.037916E [EMAIL PROTECTED] [EMAIL PROTECTED] KeyID at at pgpkeys.mit.edu:11371: 0x9643AE65 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]