[reportlab-users] PDF "pop-ups" considered forgotten?

Robin Becker reportlab-users@reportlab.com
Thu, 19 Sep 2002 16:46:36 +0100


In article <BE878B67-CBBA-11D6-BA35-00039345C610@darwin.in-berlin.de>, Dinu Gherman
<gherman@darwin.in-berlin.de> writes
>Robin Becker:
>
>> there are certainly notes which are similar to popups, but whether they
>> can be made normally invisible and then opened on a specified event I'm
>> not sure.
>
>This is not what I mean. These are text annotations which you need
>to click to open and close them... They don't detect mouse-over
>events and do that for you and they are not invisible, but have
>a more or less ugly note widget when closed...
>
>Dinu
well in the 1.4 spec it says that you can use hide actions

Hide Actions
A hide action (PDF 1.2)hides or shows one or more annotations on the screen by
setting or clearing their Hidden .ags (see Section 8.4.2,“Annotation Flags ”).This
type of action can be used in combination with appearance streams and trigger
events (Sections 8.4.4,“Appearance Streams,” and 8.5.2,“Trigger Events ”)to dis-
play pop-up help information on the screen.For example,the E (enter)and X
(exit)trigger events in an annotation ’s additional-actions dictionary can be used
to show and hide the annotation when the user rolls the cursor in and out of its
active area on the page;this can be used to pop up a help label,or “tool tip,”
describing the effect of clicking the mouse at that location on the page.Table 8.44
shows the action dictionary entries speci .c to this type of action.(See implemen-
tation notes 78 and 79 in Appendix H.)
-- 
Robin Becker