You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, October 13th 2003, 9:15am

printing from konqueror with dcop

Hi,

Is there a way to get konqueror to print a page from the command line using dcop or some other approach?

I have been through the interfaces listed by kdcop but I can't see an interface for printing.

Many thanks

Richard

2

Monday, October 13th 2003, 2:47pm

I suppose that you want to simply print from the console

In this case, you could use kprinter:
kprinter yourfile.ps

KPrinter shows a dialog, so it might not be what you want. If it is the case, use the standard printer command: lpr
lpr yourfile.ps

(Both work not only with PostScript files.)

Have a nice day!

3

Monday, October 13th 2003, 6:59pm

kprinter does not render html before printing

Thanks for the pointer to kprinter.

kprinter will print postscript/pdf and text documents but it does not render html documents before converting to postscript for printing.

I guess maybe I should say that I want to get khtml to render an html page and then print it, but I want to script it.

I need to script it because I have nearly 100 html pages that I want to print. Thanks why I was hoping to use dcop to drive khtml/konqueror.

Richard

4

Tuesday, October 14th 2003, 8:55am

I'm not sure about DCOP but htmldoc does a pretty good job of rendering HTML to either PDF or postscript, see...

http://www.easysw.com/htmldoc

HTH

:)

5

Friday, October 17th 2003, 8:11am

htmldoc is just the ticket

Thanks for the pointer to htmldoc. It is just what I needed. It does a great job of producing good looking pdf/ps from html webpages. Spot on.

Thanks to Easy Software Products for releasing it under the GPL.

Richard