automated printing from konqurer
David Faure
faure at kde.org
Mon Feb 3 10:55:53 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 02 February 2003 21:14, Nicholas Grabowski wrote:
> Developers
>
> I am trying to automate a print job from konqueror. Basically, what I
> want to do is:
> 1.) Communicate to conqueror from another program.
> 2.) Open a url with konqueror.
> 3.) Print that url to a file or printer.
>
> Note: there should be no user interaction to the printing or konqueror,
> i.e. I would like to either extend konqueror and add some functionality
> that allows me to print to the default printer. Then I would like to
> embed it in my app, or instantiate a konqueror instance and call the new
> api that will allow me to print the url I open.
>
> To this point I've looked at two options:
> 1.) Use the DCOP interface. I was only able to get as far as popping up
> the printer interface. Beyond that I was not able to pragmatically
> finish the process. I.E. force the print dialog to print. It does not
> seem that it will be possible to do what I want via the DCOP
> action(print) command. However, I'm open to suggestions if you feel this
> is the best way to proceed.
In KOffice we added a DCOP call "print( bool quick )",
where quick=true means "use default printer, don't show dialog box".
What about we do the same in khtml's DCOP interface?
Please test the attached patch.
- --
David FAURE, faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+Pkq572KcVAmwbhARAgrAAJ0RMSCWLDJwaRql8Msc7IOblQlwcQCgrQZG
uPm59jlrlLq9EZb4i+tUKRE=
=p4Zp
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: khtml_quickprint.diff
Type: text/x-diff
Size: 2923 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20030203/0e4a4e7d/attachment.diff>
More information about the kfm-devel
mailing list