[clug] Automating firefox
Michael Cohen
scudette at gmail.com
Thu Feb 21 11:17:01 GMT 2008
Hi All,
It has been some time, but I would like to thank all who replied to
this thread. Especially Brad Hards whos konqueror solution won out. I
found the python-dcop bindings and am running konqueror in a
vncsession (just so I can connect and interact with it if needed). The
result is very good, except that I could not figure a way to know when
the page has finished rendering so Its a little slow with a big fat
sleep between the openurl and the print call.
Its a little rough but got me out of trouble.
Thanks,
Michael.
On Mon, Jan 14, 2008 at 9:08 PM, Brad Hards <bradh at frogmouth.net> wrote:
> 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.
>
>
>
> Brad
>
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>
More information about the linux
mailing list