views:

424

answers:

1

I'm displaying PDF file that are generated on-the-fly within a ASP page. The PDF generation (and download to the client) can take some time and I'd like to provide the user with some feedback (a loading message or something).

AFAIK there's no way to know when the PDF is viewed because the DOM events get triggered when the Adobe Reader plugin gets loaded (even though it's not displaying anything yet).

I noticed that there's a Javascript API for the plugin object that I could potentially use. I notivced a LoadFile method on it but unfortunately it doesn't seem to do much. Adobe's documentation is really useless. It talks of Javascript only as a plug-in writting language or as OLE interaction (and poorly).

Is there any documentation for the API and is it possible to know when the PDF has been loaded? It would be perfect if I could pass on a PDF stream to a PDF viewer of some sort.

A: 

Hi Racoon Ive wanted to the same, if found a page that may help you out too http://www.adobe.com/devnet/acrobat/javascript.html

almog.ori
Thanks but I've been there already and the API is for PDF scripting (that is, create a fancy PDF that does extra stuff) rather than scripting the reader plugin.
R4cOON
Sure but the sdk includes scripting the activex reader component too, simple automation though, if you find something about PostMessage and RecieveMessage I would also be very interested
almog.ori