[clug] Automating firefox

Brad Hards bradh at frogmouth.net
Mon Jan 14 11:08:35 GMT 2008

On Monday 14 January 2008 06:44:04 am Brad Hards wrote:
> On Monday 14 January 2008 12:34:32 am Michael Cohen wrote:
> > I have a need in my web application to generate some pdfs from html
> > pages. I looked around the net and found lots of little scripts but
> > none produces anywhere near the quality that I need. I want to get a
> > near true replication o f the web page which means that it needs to
> > parse css properly, insert images etc.
> Does it render correctly under Konqueror? If so, you can probably automate
> it with dcop to do what you want.
Here is how:
Set up a default printer (i.e. the print to PDF), then do:

myref=`dcopstart konqueror`
dcop $myref konqueror-mainwindow\#1 openURL "http://www.clug.org.au"
dcop $myref html-widget1 print true

Then move the output file.


More information about the linux mailing list