Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
batevenci@adobeforums.com #1
Acrobat cache?
We call a javascript function from a plug-in. On most of the computers this works without any problems. But on the two production machines, that we used to develope the plugin and javascript, we get different errors. Since the javascript function calls some secure functions, we used app.trustedFunction and app.beginPriv/app.endPriv functions.
One of the errors we get is that the "this" keyword isn't being recognized. Means we can access the active document through "this" in most parts of the function, but inside a secHandler.login ... secHandler.logout block the "this"-keyword doesn't represent the active document anymore. After the logout it does again. I guess it becomes something else, but can't figure what exactly.
If we create a menu item for the function with a javascript from the javascripts folder, and execute our plug-in we won't get any errors. Now the strange part is that even if we delete everything from this menu.js and leave just some arbitrary comment in the file, everything works fine. Like mentoned this only happens on the production machines, so something has to be cached
some probably relevant info:
- from the plug-in we call the js function as follows:
strcpy_s ( jsscript, "event.value=myFnc();");
AFExecuteThisScript ( pdDoc, jsscript, NULL);
batevenci@adobeforums.com Guest
-
Parlez-vous Acrobat? Sprechen Zie Acrobat? Habla Acrobat?
Diana Goddard, "Unsupported Language" #2, 11 Jul 2005 11:07 am </cgi-bin/webx?13@@.3bbb44a3/1> -
How to cache Acrobat Distiller application in Windows?
Hi all, We have developed a program which will call the macro to convert MSWord doc to pdf using Acrobat 6.0. However, we found that it runs... -
Index in Acrobat 6 or acrobat 4 (Acrobat Catalog 4.0)
Hello I am looking for indexing software available to extract and compile indexable terms from PDF documents. The documents are the chapters of a... -
Cache vs no Cache
All I have the following code in my ASP Pages. These are the first lines of Code in most of my pages. 'Ensure only 20 minute caching... -
mm cache
http://www.turcksoft.com/en/e_mmc.htm -
Leonard_Rosenthol@adobeforums.com #2
Re: Acrobat cache?
this is a special JS keyword that means the "active parent object" - it is NOT always the document. It is different things in different contexts. If you need something like the current document - store & track it yourself!
Leonard_Rosenthol@adobeforums.com Guest
-
batevenci@adobeforums.com #3
Re: Acrobat cache?
Thanks for Your input Loenard!
I thought this was the case, but like mentoned above we couldn't find out what "this" refers to after loggin in at a securityHandler (it doesn't point to a securityHandler for sure) . Any ideas on that?
I guess this issue can be solved by passing the document to the function from where the function is being called in the plug-in.
Our bigger problem however is the described "cache"-like behaviour, so any thoughts on that will be highly appreciated.
Thanks
batevenci@adobeforums.com Guest
-
Leonard_Rosenthol@adobeforums.com #4
Re: Acrobat cache?
I don't understand what you think is being "cached", so I can't really comment :(.
Leonard_Rosenthol@adobeforums.com Guest



Reply With Quote

