LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-23-2009, 09:42 AM   #16
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984

Nope, the manual installation was performed by compiling from source and manually copying the relevant files. As per instructions on the cups-pdf site. My suspect is that the OP is running CentOS-4 and simply downloaded the wrong version of the cups-pdf package.

@stuaz: please repost the output of lsb_release -a (you missed the option -a in your previous post). Then reverse back the passages you did when installing manually. Be sure you download the correct package and issue
Code:
yum localinstall <package_name>
from where the file <package_name> has been downloaded.
 
Old 01-23-2009, 09:42 AM   #17
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer View Post
Did you configure yum properly ?

http://wiki.centos.org/PackageManagement/Yum/Priorities


mrclisdue has a valid point..

I think it's rpm -e <packagename> to remove a package manually.. man haven't done that in years..
Hi Thanks for your help.

Its actually easier for me to revert the server back to what it was before I was playing with it as its just test VMWare session.

I reverted it back to what it was before I started all this, I did the:

Code:
yum install yum-plugin-priorities
Then when I try:
Code:
yum install cups-pdf
I get the following:

Code:
# yum install cups-pdf
Loading "priorities" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
0 packages excluded due to repository priority protections
Parsing package install arguments
No Match for argument: cups-pdf
Nothing to do
Thanks again for the help.
 
Old 01-23-2009, 09:44 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Kernel 2.6.9, that would be CentOS 4.x .

The package cups-pdf.i386 2.4.6-1.el5 is for CentOS 5.

Try this : cups-pdf-2.4.6-2.el4.i386.rpm
http://rpm.pbone.net/index.php3/stat....i386.rpm.html
....
 
Old 01-23-2009, 09:49 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Kernel 2.6.9, that would be CentOS 4.x .

cups-pdf.i386 2.4.6-1.el5 is for CentOS 5

Try this : cups-pdf-2.4.6-2.el4.i386.rpm
http://rpm.pbone.net/index.php3/stat....i386.rpm.html
....
 
Old 01-23-2009, 09:51 AM   #20
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Quote:
Originally Posted by knudfl View Post
Try this : cups-pdf-2.4.6-2.el4.i386.rpm
http://rpm.pbone.net/index.php3/stat....i386.rpm.html
....
Or that linked from the cups-pdf site, which is the same I suppose... http://download.fedora.redhat.com/pu...2.el4.i386.rpm
 
Old 01-23-2009, 10:27 AM   #21
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Or that linked from the cups-pdf site, which is the same I suppose... http://download.fedora.redhat.com/pu...2.el4.i386.rpm
Right,

Code:
LSB Version:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-no
arch
Distributor ID: CentOS
Description:    CentOS release 4.6 (Final)
Release:        4.6
Codename:       Final
after reverting my system back and downloading the above i get the following:

Code:
# rpm -Uvh cups-pdf-2.4.6-2.el4.i386.rpm
warning: cups-pdf-2.4.6-2.el4.i386.rpm: V3 DSA signature: NOKEY, key ID 217521f6
Preparing...                ########################################### [100%]
   1:cups-pdf               ########################################### [100%]
Stopping cups: [  OK  ]
Starting cups: [  OK  ]
So I guess that means it has installed properly this tiime??
Ok so if I send a print job to a printer it created, it then drops the file into the Desktop of the person who ran the job. Is it possible to specify the location to print to?

Thanks for your help colucix and everyone else.

Last edited by stuaz; 01-23-2009 at 10:45 AM.
 
Old 01-23-2009, 10:41 AM   #22
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Quote:
Originally Posted by stuaz View Post
So as I have got this far, what is the best way to test it? lol
Now restart the cups daemon
Code:
/etc/init.d/cups restart
then open firefox or any other GUI application and in the list of the printers to select when you try to print a document, just chose Cups-PDF. To set it up from the command line, you have to assign a name to the queue. Unfortunately I cannot be of much help right now, since I've not the CentOS box at hand.
 
Old 01-23-2009, 10:47 AM   #23
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Now restart the cups daemon
Code:
/etc/init.d/cups restart
then open firefox or any other GUI application and in the list of the printers to select when you try to print a document, just chose Cups-PDF. To set it up from the command line, you have to assign a name to the queue. Unfortunately I cannot be of much help right now, since I've not the CentOS box at hand.

Thanks, I have set up the queue and can send jobs to it, but is it possible to define the location of where the print jobs go to? I.e at the moment they current go to /Desktop is it possible to send it /home or another location completely?
 
Old 01-23-2009, 10:52 AM   #24
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by stuaz View Post
Thanks, I have set up the queue and can send jobs to it, but is it possible to define the location of where the print jobs go to? I.e at the moment they current go to /Desktop is it possible to send it /home or another location completely?

Actually, scratch that last comment, I realised there is configuration setting in the cups-pdf.conf file !

Thanks again guys!
 
Old 01-23-2009, 10:53 AM   #25
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
edit the cups-pdf.conf file to set the output location.

Mine outputs to ~/PDF/ by default


Quote:
Out ${HOME}/PDF

Last edited by farslayer; 01-23-2009 at 10:54 AM.
 
Old 01-23-2009, 10:59 AM   #26
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Of course. Look at /etc/cups/cups-pdf.conf. The very first option you can set is
Code:
Out ${HOME}/Desktop
change the value to any location at your desire. Be sure it is world writable if it isn't under ${HOME} and if you want to use the same for any user on the system. Or you can eventually chose a location based on the username as
Code:
/tmp/${USER}_pdf
Edit: ooops... too late!
 
Old 01-23-2009, 11:17 AM   #27
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Of course. Look at /etc/cups/cups-pdf.conf. The very first option you can set is
Code:
Out ${HOME}/Desktop
change the value to any location at your desire. Be sure it is world writable if it isn't under ${HOME} and if you want to use the same for any user on the system. Or you can eventually chose a location based on the username as
Code:
/tmp/${USER}_pdf
Edit: ooops... too late!
I really aprciate the help with this guys!

One last question (I think), is it is possible that I can print using this special pdf pprinter.

Then a seperate application can apply a pre-built pdf and merge them

E.g: Apply a template as such.

Does that make sense?
 
Old 01-23-2009, 01:15 PM   #28
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
like merge 2 single page PDF's into a 2 Page PDF File ? YES PDF Files can be merged in that fashion..

I you mean have a PDF that is a form and a PDF that is the info for the form and overlay one on top of the other I don't think so..
 
Old 01-23-2009, 01:19 PM   #29
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer View Post
like merge 2 single page PDF's into a 2 Page PDF File ? YES PDF Files can be merged in that fashion..

I you mean have a PDF that is a form and a PDF that is the info for the form and overlay one on top of the other I don't think so..
What I mean is that I will have a PDF file that has, for example, a headed logo at the top. And then another PDF which is just data, so like a report or invoice. Merge the two together so that I have one PDF but on the headed paper.

That make sense?
 
Old 01-23-2009, 03:31 PM   #30
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I would think you would need to combine the header and data prior to converting them to PDF. maybe have the header as a postscript file..
but that's outside my knowledge so I can't really recommend a solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Print to PDF yogaboy Linux - Desktop 12 02-17-2009 06:09 AM
Can't print pdf klee12 Linux - Software 2 07-24-2007 02:41 AM
Can't print to PDF tauro_kpo Linux - Software 2 05-12-2007 05:31 PM
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 04:15 PM
Help! ...Cannot print PDF! Mike Stern Linux - Hardware 1 06-23-2004 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration