From: Todd on
From: CUPS 127.0.0.1:631
Description: Cups-PDF
Location: RN
Printer Driver: Generic postscript color printer rev4
Printer State: idle, accepting jobs, published.
Device URI: cups-pdf:/

Hi All,

I am using CentOS 5.5. I installed cups-pdf-2.4.6-1.el5.i386.rpm
and now have the nicest CUPS to Postscript printer. Okay, I need
that to use with HylaFAX, but I also need a print to PDF (not
Postscript). What did I do wrong?

Many thanks,
-T
From: Robert Riches on
On 2010-06-05, Todd <todd(a)invalid.com> wrote:
> From: CUPS 127.0.0.1:631
> Description: Cups-PDF
> Location: RN
> Printer Driver: Generic postscript color printer rev4
> Printer State: idle, accepting jobs, published.
> Device URI: cups-pdf:/
>
> Hi All,
>
> I am using CentOS 5.5. I installed cups-pdf-2.4.6-1.el5.i386.rpm
> and now have the nicest CUPS to Postscript printer. Okay, I need
> that to use with HylaFAX, but I also need a print to PDF (not
> Postscript). What did I do wrong?
>
> Many thanks,
> -T

Do you have either of these programs available?:

ps2pdf
pstopdf

I used whichever one is on my Mandriva 2010.0 system just the
other day. I used xpdf on a very large PDF, printed to a
postscript file, and then ran ps2pdf to make a PDF of the single
page I needed to email to someone.

HTH

--
Robert Riches
spamtrap42(a)verizon.net
(Yes, that is one of my email addresses.)
From: Todd on
On 06/04/2010 09:21 PM, Robert Riches wrote:

>> I am using CentOS 5.5. I installed cups-pdf-2.4.6-1.el5.i386.rpm
>> and now have the nicest CUPS to Postscript printer. Okay, I need
>> that to use with HylaFAX, but I also need a print to PDF (not

> Do you have either of these programs available?:
>
> ps2pdf
> pstopdf


I have ps2pdf. I was hoping to be able to print directly
to a PDF.

Anyway, I put together the following (use at own risk):

-T


#!/bin/bash
# /home/linuxutil/ConvertPS2PDF


TempDir="/home/temp"

Source="`Xdialog --title "Select Post Script file to convert" --fselect
"$TempDir/*.ps" 40 100 2>&1`"
if [ "$?" != "0" ]; then exit; fi # "0" = "Cancel"

Target="`echo "$Source" | sed -e "s/.ps$/.pdf/" | sed -e "s/.PS$/.pdf/"`"
if [ -f "$Target" ]; then
Width="`echo "${#Target} + 46" | bc`"
Xdialog --yesno "$Target already exists. Overwrite?" 7 $Width
if [ $? != "0" ]; then exit; fi # $?: yes=0; no=1

if [ -f $Target.bak ]; then
rm $Target.bak
mv $Target $Target.bak
fi
fi

/usr/bin/ps2pdf $Source $Target
Result=$?

if [ "$Result" != "0" ]; then
Xdialog --title "$0" --msgbox "$Source failed to convert. Bummer
man." 0 0
exit $Result
else
/usr/bin/acroread $Target &
fi

exit 0

From: Bud on
On 2010-06-05, Todd wrote:

[much snipping]

Just print to a .pdf file and attatch it to your e-mail or
whatever. I don't know why people want .pdf anyway. You can screw
around with it any which way you want with many Linux tools.
--
Bud
From: Todd on
On 06/05/2010 02:47 PM, Bud wrote:
> On 2010-06-05, Todd wrote:
>
> [much snipping]
>
> Just print to a .pdf file and attatch it to your e-mail or
> whatever. I don't know why people want .pdf anyway. You can screw
> around with it any which way you want with many Linux tools.

Open Office, Firefox, Thunderbird have such utilities, but a lot
of others do not. None of my Wine applications have Post Script
or PDF. And, I need Post Script to fax (HylaFAX).

PDF's are also a great way to attach quotes and proposals (and
invoices) to eMail.

-T