Konqueror print feature question

David Faure faure at kde.org
Mon Jun 9 17:37:09 BST 2008


On Monday 07 April 2008, Liu, Xi wrote:
> Hi there,
> 
> 
> I am running KDE3.5.8 (Konqueror 3.5.8) on  FreeBSD 7.0.
> 
> I am trying to see if there is an option to do the following from the command line to run "konqueror" to open a html page and automatically generate a PDF file for that page.
> 
> Below are what I am trying to experiment
> 
> 1. Use "konqueror" to open an local HTML file or a website
>     running  "konqueror url"  works for this
> 
> 2. start printing to a PDF file 
>     I can use a Javascript "windows.print()" to achieve that for local HTML files
> 
> 3. I just don't want to the print dialog that requires user entering file name and clicking "save/print" button. All this needs to be automated.
>     Is there a way to do that? There seems to be no such a command line option for "konqueor" to specify the print file name and disable the print option dialog.
>     I have the source code kdebase 3.5.8. I don't mind a bit hacking to the "konqueror" module and appreciate if someone can quickly point me to the right  section of the code.,

Using 
dcop konqueror-$PID html-widgetN print true
might do the job.

The method is print(bool quick), where the quick doesn't show the print dialog iirc.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list