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.
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
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!
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
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
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