Implementing pop-up within pdf (using Livecycle forms)

2,832 views
Skip to first unread message

Akshay

unread,
Jul 19, 2010, 12:44:41 AM7/19/10
to Adobe LiveCycle Developers
I wanted to get an opinion on the best way to implement pop-ups within
PDF, that are not for warning messages, but for other information
purposes. The pop-ups primary purpose will be to show additional
information/content relevant to the main content in pdf.

The three options that I have been able to find are:

1) Use hidden buttons that are made active when another button is
clicked. This approach is summarized in this thread:
http://forums.adobe.com/message/2386742#2386742

2) Use app.popUpMenuEx as summarized in this post:
http://www.planetpdf.com/developer/article.asp?ContentID=6816&nl=pp

3) Use paid plugin - Acrodialogs for intuitive GUI based pop-up
creators.

I am leaning towards using the option #2 (app.popUpMEnuEx). I wanted
to know if there are well known best practice around building
beautiful / more meaningful pop-ups (not for warnings) within PDF. Any
Adobe evangelists have an opinion on this?

Thanks for your help in advance.

Cheers,
Akshay

Nithyanandam Dharmadass

unread,
Jul 19, 2010, 12:54:20 AM7/19/10
to live...@googlegroups.com
Option #4: You can write script by your own to create custom dialogs using app.execDialog() method.
 
Refer to the AcroJS documentation on
 
This is same as plugins <the benefit is that you won't pay :-) >
 
Nith


--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.




--
Regards,
Nith


---------------------------------------------------------------------------------------------------
The maximum strength of a chain is the strength of its' weakest link.
---------------------------------------------------------------------------------------------------

Akshay

unread,
Jul 19, 2010, 11:24:29 AM7/19/10
to Adobe LiveCycle Developers
Thanks Nith. I think that is what I wanted.

On Jul 18, 11:54 pm, Nithyanandam Dharmadass <nith....@gmail.com>
wrote:
> *Option #4*: You can write script by your own to create custom dialogs using
> app.execDialog() method.
>
> Refer to the AcroJS documentation onhttp://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS.pdf
> > livecycle+...@googlegroups.com<livecycle%2Bunsubscribe@googlegroups .com>
> > .

Jono Moore

unread,
Jul 19, 2010, 11:36:12 AM7/19/10
to Adobe LiveCycle Developers
Why not use tooltips?

Jono Moore

unread,
Jul 19, 2010, 11:39:39 AM7/19/10
to Adobe LiveCycle Developers
I have to say that AcroDialogs from Windjack is pretty nice to use.

Programming your own dialogs is pretty ugly.


On Jul 18, 9:54 pm, Nithyanandam Dharmadass <nith....@gmail.com>
wrote:
> *Option #4*: You can write script by your own to create custom dialogs using
> app.execDialog() method.
>
> Refer to the AcroJS documentation onhttp://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS.pdf

Duane Nickull

unread,
Jul 19, 2010, 5:21:59 PM7/19/10
to Adobe LiveCycle Developers
Why not use xfa.host.messageBox(<param1>, <param2>, <param3>, <param4>);

This displays a dialog box on the screen. It is available only for client applications.

int messageBox(string param1 [, string param2] [, int param3] [, int param4])

param1: The message to display.  This is a string and can be user defined.
param2 (optional) : The title to appear in the dialog's window title.   This is a string and can be user defined.
param3 (optional) : The icon to display: '0' (Error (default)), '1' (Warning), '2' (Question), and '3' (Status). For non-error situations I would use ‘3’.
param4 (optional) : The buttons to display: '0' (OK (default)), '1' (OK, Cancel), '2' (Yes, No), and '3' (Yes, No, Cancel).
returns: Returns the type of the button that was pressed by the user: '1' (OK), '2' (Cancel), '3' (No), and '4' (Yes).

Duane
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.


Akshay

unread,
Jul 19, 2010, 10:37:49 PM7/19/10
to Adobe LiveCycle Developers
Jono,
tooltips don't provide an option to put rich content along with
buttons/images etc. (unless I am mistaken)

Akshay

unread,
Jul 19, 2010, 10:44:23 PM7/19/10
to Adobe LiveCycle Developers
In my popup I need to put some rich content including images and
buttons. I think app.execDialog() gives most control to build such
dialogs.
Acrodialogs are basically doing the same underneath as I now
understand.
Hand-coding is definitely time consuming, but for some very specific
(one -time) implementation execDialog is good enough.

I had a question on the dialog that opens up. In the title/popup,
there is the message - "Warning Javascript Window" displayed. This is
shown on all the alerts/dialogs.
Is there anyway to remove this text? I was not able to see any
override options in the any of the API.

Thanks.

On Jul 19, 4:21 pm, Duane Nickull <dnick...@adobe.com> wrote:
> Why not use xfa.host.messageBox(<param1>, <param2>, <param3>, <param4>);
>
> This displays a dialog box on the screen. It is available only for client applications.
>
> int messageBox(string param1 [, string param2] [, int param3] [, int param4])
>
> param1: The message to display.  This is a string and can be user defined.
> param2 (optional) : The title to appear in the dialog's window title.   This is a string and can be user defined.
> param3 (optional) : The icon to display: '0' (Error (default)), '1' (Warning), '2' (Question), and '3' (Status). For non-error situations I would use '3'.
> param4 (optional) : The buttons to display: '0' (OK (default)), '1' (OK, Cancel), '2' (Yes, No), and '3' (Yes, No, Cancel).
> returns: Returns the type of the button that was pressed by the user: '1' (OK), '2' (Cancel), '3' (No), and '4' (Yes).
>
> Duane
>
> On 7/19/10 8:39 AM, "Jono Moore" <jono.mo...@gmail.com> wrote:
>
> I have to say that AcroDialogs from Windjack is pretty nice to use.
>
> Programming your own dialogs is pretty ugly.
>
> On Jul 18, 9:54 pm, Nithyanandam Dharmadass <nith....@gmail.com>
> wrote:
>
> > *Option #4*: You can write script by your own to create custom dialogs using
> > app.execDialog() method.
>
> > Refer to the AcroJS documentation onhttp://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS.pdf
>
> > This is same as plugins <the benefit is that you won't pay :-) >
>
> --
> You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
> To post to this group, send email to live...@googlegroups.com.
> To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/livecycle?hl=en.
>
> ---
> Adobe LiveCycle Enterprise Architecture -http://www.adobe.com/products/livecycle/
> My TV Show -http://tv.adobe.com/show/duanes-world/
> My Blog -http://technoracle.blogspot.com/
> My Band -http://22ndcenturyofficial.com/
> Twitter -http://twitter.com/duanechaos/
>
> [cid:3362394119_33374801]
>
>  image.jpg
> 16KViewDownload

Nithyanandam Dharmadass

unread,
Jul 20, 2010, 12:18:22 AM7/20/10
to live...@googlegroups.com
It is a security concern. We have to run the code within a security context to remove that warning message.
 
I din't tried that option before.
 
Thanks,
Nith

For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.

Akshay

unread,
Jul 20, 2010, 11:15:23 AM7/20/10
to Adobe LiveCycle Developers
You are right, looks like a security feature on Acrobat 7.0 and
upwards.
Windjack have pointed that out as well: http://www.windjack.com/support/faq_AcroButtons.html#AcroBut
FAQ14
This is not really an option when the pdf needs to be distributed
publicly.

If only there were more controls as html ;-).


On Jul 19, 11:18 pm, Nithyanandam Dharmadass <nith....@gmail.com>
wrote:
> > livecycle+...@googlegroups.com<livecycle%2Bunsubscribe@googlegroups .com>
> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/livecycle?hl=en.
>
> > > ---
> > > Adobe LiveCycle Enterprise Architecture -
> >http://www.adobe.com/products/livecycle/
> > > My TV Show -http://tv.adobe.com/show/duanes-world/
> > > My Blog -http://technoracle.blogspot.com/
> > > My Band -http://22ndcenturyofficial.com/
> > > Twitter -http://twitter.com/duanechaos/
>
> > > [cid:3362394119_33374801]
>
> > >  image.jpg
> > > 16KViewDownload
>
> > --
> >  You received this message because you are subscribed to the Google Groups
> > "Adobe LiveCycle Developers" group.
> > To post to this group, send email to live...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > livecycle+...@googlegroups.com<livecycle%2Bunsubscribe@googlegroups .com>
> > .
Reply all
Reply to author
Forward
0 new messages