Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-11-11 11:24:35 am

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Print to Pdf and cups-pdf help?

This is in the Xandros "easy" mode.

Reading off a guide for Ubuntu, my understanding was that if I install cups-pdf and reboot, then I should have a new local port to which I can print to generate PDFs.

I am able to install cups-pdf without any problems.

However, I still only see the USB port listed in the Printers item from the simple interface.

Has anyone been able to set up print-to-pdf yet? Can anyone please help me? Thank you!!! smile

Also as an aside, the default printing option is to generate postscript... I know that if I really want to, I can save .ps's and then convert them to pdf, although that seems laborious. But if I print to postscript without printing to file, the print seems to go to a black hole... where does it go?


Mohan

Offline

 

#2 2007-11-12 10:08:48 pm

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

Success!

Here's the walkthrough. smile

1) Add a standard repository if you haven't already. Xandros is probably safest, but I have gotten away with this one (add this line to /etc/apt/sources.list):

deb http://http.us.debian.org/debian stable main

2) Get cups-pdf

sudo apt-get install cups-pdf

3) Add a printer using the cups web-based configuration -- for some reason, the wizard does not work.

- Point your web browser to http://localhost:631/
- Add printer
- You can put in anything you want in the three blanks (follow the rules.. you can call the printer cups-pdf or print-to-pdf or pdf or something like that).
- On the next page, choose "Virtual Printer (PDF)"
- On the next page, choose Postscript
- On the next page there should be one option for a color postsript driver, so go with it and click on Add Printer.

That's it! You should now have a printer in your printers list that will generate a PDF file in the ~/PDF folder. Unfortunately, as far as I can see right now, this just auto-generates a filename and puts the file in there -- it doesn't give you a dialog or anything. But it works nicely. smile


Mohan

Offline

 

#3 2007-11-13 12:54:23 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Print to Pdf and cups-pdf help?

actually, the simple way is to name the print command as kprinter, then it will provide you with dialog.


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#4 2007-11-13 2:45:15 am

Niel1952
Moderator
From: Cambridge, UK
Registered: 2007-11-02
Posts: 4802

Re: Print to Pdf and cups-pdf help?

That is cool.  Now I can create printouts of web pages as I go along.  A couple of questions, please:

1. Exactly what is meant by "name the print command as kprinter"?

2. Are there other things that one can do through similar web interfaces?

Thanks


[Tweaking for] Absolute Beginners - A Guide to tweaking the Eee PC with wizards.
eeeuser Google Custom Search - THE eeeuser.com Search Tool

Offline

 

#5 2007-11-13 3:41:46 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Print to Pdf and cups-pdf help?

Niel1952 wrote:

That is cool.  Now I can create printouts of web pages as I go along.  A couple of questions, please:

1. Exactly what is meant by "name the print command as kprinter"?

2. Are there other things that one can do through similar web interfaces?

Thanks

Say you use Firefox. Select File menu, print, in printer dialog window, if no printer added, it should be PostScript/default,
select Properties ... in the white box next to Print Command, type kprinter follow by OK.

At print, make sure in the Printer name you choose Print to File (PDF) rather than the default Mail PDF File which will activate kmail.

I do not catch what you meant in item2.

Last edited by o2smartphone (2007-11-13 3:42:59 am)


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#6 2007-11-13 9:33:16 am

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

Ahhh, so kprinter can do this without cups-pdf? I didn't realize that. Good to know, although I suppose I'll leave well enough alone.


Mohan

Offline

 

#7 2007-11-13 3:57:57 pm

Niel1952
Moderator
From: Cambridge, UK
Registered: 2007-11-02
Posts: 4802

Re: Print to Pdf and cups-pdf help?

Ok, got it.  I have now deleted the pdf printer suggested by Mohan and am using the kprinter way but it seems this kprinter way can coexist with other printers.


[Tweaking for] Absolute Beginners - A Guide to tweaking the Eee PC with wizards.
eeeuser Google Custom Search - THE eeeuser.com Search Tool

Offline

 

#8 2007-11-13 4:05:13 pm

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

Can or cannot? The cups version coexists also... the Eee uses cups for network printing anyways. My office printer is configured via IPP and CUPS.

For that matter, isn't kprinter just a front end for cups to begin with?

Last edited by mkrishnan (2007-11-13 4:10:43 pm)


Mohan

Offline

 

#9 2007-11-13 6:25:35 pm

dewguy
Member
Registered: 2007-11-01
Posts: 11

Re: Print to Pdf and cups-pdf help?

Is there a way to set up kprinter as one of the printer choices so it can be picked from the printer list instead of typing it in each time?

Offline

 

#10 2007-11-13 7:33:53 pm

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Print to Pdf and cups-pdf help?

dewguy wrote:

Is there a way to set up kprinter as one of the printer choices so it can be picked from the printer list instead of typing it in each time?

why u need to type it each time ?


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#11 2007-11-13 10:32:35 pm

fengzj
New member
Registered: 2007-11-13
Posts: 5

Re: Print to Pdf and cups-pdf help?

I followed every step and installed cups-pdf. But when I "add printer", it asks me for the username and password at the last step. Is it normal? It keeps on asking me to provide uasername and password even after I type them in. Failed to "add printer".

Offline

 

#12 2007-11-14 7:35:29 am

x94scorp
Member
Registered: 2007-09-13
Posts: 77

Re: Print to Pdf and cups-pdf help?

Doesn't OpenOffice writer do this by default?

Offline

 

#13 2007-11-14 9:20:30 am

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

OpenOffice does this by default, but I'm not aware of an option in OOo to print web pages loaded in firefox to PDF. wink If such an option exists, can you please explain how to use it? smile


Mohan

Offline

 

#14 2007-11-25 12:51:19 pm

deadDuck
Senior Member
From: Calgary, AB, Canada
Registered: 2007-07-19
Posts: 916
Website

Re: Print to Pdf and cups-pdf help?

fengzj wrote:

I followed every step and installed cups-pdf. But when I "add printer", it asks me for the username and password at the last step. Is it normal? It keeps on asking me to provide uasername and password even after I type them in. Failed to "add printer".

I ran into this as well. It worked with "root" and my user password.

Offline

 

#15 2007-11-25 1:00:12 pm

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

I don't remember being prompted for that...odd....  but I just tried it again, and I too had to put in root/my password.


Mohan

Offline

 

#16 2007-11-25 4:44:51 pm

deadDuck
Senior Member
From: Calgary, AB, Canada
Registered: 2007-07-19
Posts: 916
Website

Re: Print to Pdf and cups-pdf help?

I followed the instructions and it worked well, so I've added them to the wiki. Thanks to Mohan for laying it out so well.

Please improve the wiki if you find anything that's not clear.

Offline

 

#17 2007-11-25 4:52:31 pm

Niel1952
Moderator
From: Cambridge, UK
Registered: 2007-11-02
Posts: 4802

Re: Print to Pdf and cups-pdf help?

Just a minor caveat about this method.  Because this method automatically names the pdf, I think it overwrites any file with the same name.


[Tweaking for] Absolute Beginners - A Guide to tweaking the Eee PC with wizards.
eeeuser Google Custom Search - THE eeeuser.com Search Tool

Offline

 

#18 2007-11-25 5:16:25 pm

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

That appears to be correct, yes....


Mohan

Offline

 

#19 2007-12-08 11:23:24 pm

oldtimer
Member
Registered: 2007-12-08
Posts: 23

Re: Print to Pdf and cups-pdf help?

mkrishnan's walk through above no longer works.  The CUPS page at "http://localhost:631/" no longer provides a "Virtual Printer (PDF)" option, so one cannot actually install the CUPS pdf printer.  Has anyone an alternative?

Offline

 

#20 2007-12-09 3:15:39 pm

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

When you first point to http://localhost:631 -- what version of CUPS is reported? (it should say something like Common Unix Printing System 1.2.7 at the top).

Also did you succeed with steps 1-2? What is the result of this terminal command:

Code:

/home/user> dpkg -l | grep -i cups-pdf
ii  cups-pdf                            2.4.2-3                         PDF printer for CUPS

Is that the version of cups-pdf reported as installed?


Mohan

Offline

 

#21 2007-12-09 3:46:38 pm

oldtimer
Member
Registered: 2007-12-08
Posts: 23

Re: Print to Pdf and cups-pdf help?

I seem to have succeeded with steps 1 and 2.

When I open the localhost,  it says exactly what you said, "Common UNIX Printing System 1.2.7"

And the command you suggested produces the output "ii   cups-pdf                              2.4.2-3         PDF printer for CUPS"

Offline

 

#22 2007-12-09 4:31:01 pm

mkrishnan
Moderator
From: Chicago, IL, USA
Registered: 2007-11-06
Posts: 3433

Re: Print to Pdf and cups-pdf help?

So then after you provide the name etc of the printer, what *is* in the option list?


Mohan

Offline

 

#23 2007-12-09 4:32:44 pm

Neil
Moderator
From: Berkshire, England
Registered: 2007-11-25
Posts: 6543
Website

Re: Print to Pdf and cups-pdf help?

I've just run through the guide, and it is working fine for me?

Offline

 

#24 2007-12-09 4:45:43 pm

Neil
Moderator
From: Berkshire, England
Registered: 2007-11-25
Posts: 6543
Website

Re: Print to Pdf and cups-pdf help?

Just a minor caveat about this method.  Because this method automatically names the pdf, I think it overwrites any file with the same name.

A little bit of tweaking to the cups-pdf settings can fix this: edit cups-pdf.conf to set Label value to 1, and it will add a unique job ID to the front of the file name, and no need to worry about duplication smile

sudo nano /etc/cups/cups-pdf.conf

Look for the setting "Label"

Uncomment it, and change its value to "1", so that the line reads

Label 1

Save the changes (Ctl+O), then exit (Ctl+X)

You should not need to restart cups for the changes to take effect, but, if you want to:

sudo /etc/init.d/cupsys restart

And, there you go smile


(cups-pdf.conf also lets you change output path settings etc.)

Offline

 

#25 2007-12-09 4:48:33 pm

Niel1952
Moderator
From: Cambridge, UK
Registered: 2007-11-02
Posts: 4802

Re: Print to Pdf and cups-pdf help?

If this works, I thank you.  Also may need a change to the wiki.


[Tweaking for] Absolute Beginners - A Guide to tweaking the Eee PC with wizards.
eeeuser Google Custom Search - THE eeeuser.com Search Tool

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson