Gentoo Archives: gentoo-user

From: Etaoin Shrdlu <shrdlu@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Trying to automate HTML ---> pdf
Date: Mon, 28 Jan 2008 14:49:14
Message-Id: 200801281601.13065.shrdlu@unlimitedmail.org
In Reply to: Re: [gentoo-user] Trying to automate HTML ---> pdf by felix@crowfix.com
1 On Sunday 27 January 2008, felix@×××××××.com wrote:
2
3 > Oh geez, I LOVE it! I will play with it, it just might do the trick.
4 > It's sure not what I had been expecting, but if it works reliably, it
5 > is just the ticket.
6
7 Java applets and flash animations could possibly cause problems, since
8 they might need a few seconds to initialize even after the page is fully
9 loaded (and thus the "stop" button is already inactive). Of course, if
10 the pages you load don't use java/flash this is not a problem; but there
11 might be other pitfalls. For example, I've noticed that konqueror loads
12 some complex pages in two or more "stages", with a brief pause (and
13 the "stop" button inactive) between one stage and the next.
14
15 You can check that by running something like
16
17 while true; do
18 dcop konqueror-8364 konqueror-mainwindow#1 actionIsEnabled stop;
19 done
20
21 ie, continuously checking the status of the "stop" button, and you'll see
22 something like
23
24 ...
25 true
26 true
27 true
28 true
29 true
30 true
31 false
32 false
33 false
34 false
35 false
36 false
37 false
38 false
39 false
40 false
41 true
42 true
43 true
44 true
45 true
46 true
47 true
48 ...
49 true
50 false
51
52 before the page is fully loaded and the status eventually settles
53 to "false". So, if the script runs the test during the short "false"
54 interval, it might be fooled into thinking that the page has loaded. I
55 have not investigated further the cause of this behavior (perhaps
56 multiple-frame pages?), but these few facts alone should be enough to
57 deserve extra attention and thorough testing before using the kludge.
58
59 > Sheesh. A bloomin' genius is what you are :-)
60
61 Thanks, glad you have at least a slightly better solution than before!
62 --
63 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Trying to automate HTML ---> pdf felix@×××××××.com