Sam how would this work? As far as I can tell in js you can issue a
window.print() which brings up the print dialog but you can not
actually submit it due to the js security model. Neither can you
select the output filename. Am i far off the mark?
So far i have been playing with the many suggestions on this thread. I
found Xnee which seems sort of able to do what I want except that
there is no way to tell it which windows to target. Most solutions
seem to be flying blind - injecting keystrokes with very little
feedback about which window they are using. Maybe I will patch xnee to
address keystrokes at named windows which would make it more robust
(in case firefox lost focus for some reason).
I think its definitely doable though,
Michael.
2008/1/14 Sam Couter <
sam@...>:
> Michael Cohen <
scudette@...> wrote:
> > I have a need in my web application to generate some pdfs from html
> > pages.
>
> If you control the web application, you can include JavaScript to do
> what you want.
>
> An alternative is to use a proxy server that injects JavaScript. See
> Selenium (
http://www.openqa.org/selenium/) for an example. It's
> implemented in Java, but it drives browsers using JavaScript.
> --
> Sam Couter | mailto:
sam@...
> | jabber:
sam@...
> OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFHiyFJhTADrt6Jx1wRAiIrAJ9cP7+EoUaxiLaxBHpCvCP24qQqmgCffM48
> kTvHW+wqJmutJ8Eqm8XplAg=
> =kIWr
> -----END PGP SIGNATURE-----
>
> --
> linux mailing list
>
linux@...
>
https://lists.samba.org/mailman/listinfo/linux>
>
--
linux mailing list
linux@...
https://lists.samba.org/mailman/listinfo/linux