I'm trying to get pageWindowRect; made a button which does:
console.println(this.pageWindowRect) console.println(this.docInnerWindowRect) console.println(this.docOuterWindowRect) console.println(this.appInnerWindowRect) console.println(this.appOuterWindowRect)
and returns
undefined undefined undefined undefined undefined
the example code:
var coords = this.innerAppWindowRect; console.println(coords.toSource()) // Possible output: [115, 154, 1307, 990]
returns
coords has no properties 8:AcroForm:dQuestionEOB05PC12a1:Annot1:MouseUp:Action1
Any ideas? Are these properties dead and buried?
Backstory: I have bookmarks where fields need to go. I want to get the Y value of the current viewstate to place a field relative to the top of the viewable area. eval(viewState.toSource()).pageViewY is based off some crazy number that goes over 1000 (while valid page coords max at ~792). viewState y values also use top as 0, where rect Y values use the bottom as 0.
pageWindowRect: 300,216,1135,830
innerAppWindowRect: 0,46,1152,830
outerDocWindowRect: -4,186,1156,834
outerAppInnerWindowRect: undefined
outerDocWindowRect: -4,186,1156,834
true
George Kaiser