I am reading the Acrobat JS Guide and Reference (v7), and the info seems like good guidance within Acrobat. But when I get into LiveCycle Forms Designer, I'm finding a disconnect in the documentation.
For example, in Acrobat I can run "this.print();" and it works. But in LiveCycle it must be "xfa.host.print();" while "app.alert();" seems to work in both. But how do I access the doc functions? E.g., I seem unable to access the doc.bookmarkRoot value, the console says it's not a function.
this.* in Acrobat JS usually refers to a Doc class function. If you want to access these functions in LiveCycle Designer, you can do the following:
- In Acrobat JS -
var pp = this.getPrintParams();
- In LiveCycle Designer -
var myDoc = event.target;
var pp = myDoc.getPrintParams();