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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-23-2009, 09:42 AM
|
#16
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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.
|
|
|
01-23-2009, 09:42 AM
|
#17
|
Member
Registered: Dec 2008
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by farslayer
|
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.
|
|
|
01-23-2009, 09:44 AM
|
#18
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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
....
|
|
|
01-23-2009, 09:49 AM
|
#19
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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
....
|
|
|
01-23-2009, 09:51 AM
|
#20
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by knudfl
|
Or that linked from the cups-pdf site, which is the same I suppose... http://download.fedora.redhat.com/pu...2.el4.i386.rpm
|
|
|
01-23-2009, 10:27 AM
|
#21
|
Member
Registered: Dec 2008
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
|
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.
|
|
|
01-23-2009, 10:41 AM
|
#22
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by stuaz
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.
|
|
|
01-23-2009, 10:47 AM
|
#23
|
Member
Registered: Dec 2008
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
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?
|
|
|
01-23-2009, 10:52 AM
|
#24
|
Member
Registered: Dec 2008
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by stuaz
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!
|
|
|
01-23-2009, 10:53 AM
|
#25
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
edit the cups-pdf.conf file to set the output location.
Mine outputs to ~/PDF/ by default
Last edited by farslayer; 01-23-2009 at 10:54 AM.
|
|
|
01-23-2009, 10:59 AM
|
#26
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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
Edit: ooops... too late! 
|
|
|
01-23-2009, 11:17 AM
|
#27
|
Member
Registered: Dec 2008
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
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
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?
|
|
|
01-23-2009, 01:15 PM
|
#28
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
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..
|
|
|
01-23-2009, 01:19 PM
|
#29
|
Member
Registered: Dec 2008
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by farslayer
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?
|
|
|
01-23-2009, 03:31 PM
|
#30
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 11:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|