Trusted function throwing exceptions when called initially but work afterwards
Hi,
I have a working plugin that adds buttons to a toolbox, the issue I'm having is that when adding the buttons using the trusted functions e.g doc.addField, doc.addToolButton, it works but it keeps throwing exceptions and it looks as if it is affecting the application, the app crashes, the toolbox window is too small and I need to scroll instead of it fitting all the items. the error messages I get back are all from one call. The weird part that I am failing to understand is that these functions will work flawlessly on the second call but not on the first? instead I get the following exceptions being hit:
InitializeFormsTrackerJS is not defined
InitAnnot is not defined
SetRSSMethods is not defined
I am using Acrobat X Pro.
Thank you.
