DCOP: print to pdf problem

Gábor Farkas gabor at nekomancer.net
Wed Nov 23 16:05:31 GMT 2005


(the subject was wrong in the previous mail)

hi,

i'm trying to create a html-to-pdf convertor,
and i'm trying to do it with konqueror :)

the idea is to open the page in konqueror, and print it to the pdf printer.

but all this from a script.

so i started a konqueror instance, printed a page using pdf.

now with dcop, i can do something like:

"dcop load-the-url-i-do-not-remember-it-here-right-now-but-it-works-fine"

"dcop konqueror-12345 html-widget-3 print 1"

and it prints fine.

but, if i just start a konqueror instance, and try to print using the
abovementioned lines, i get an error.

if i go and manually invoke the print dialog and print,

after this, my print-script works.

the error i get is:

===
A print error occurred. Error message received from system:

cupsdoprint -P '' -J 'http://www.google.sk/' -H 'localhost:631' -U
'gabor' -o '
multiple-document-handling=separate-documents-uncollated-copies
orientation-requested=3' '/tmp/kde-gabor/kdeprint_ukJAOKiA' : execution
failed with message:
No printer specified (and PRINTER variable is empty
===


any ideas how could i do fix this problem of mine?

gabor





More information about the kfm-devel mailing list