Article View: adobe.acrobat.sdk
Article #223Re: "Page" and "Rect" props of the Field prop in Javascript API
From: PDL
Date: Thu, 19 Mar 2009 15:48
Date: Thu, 19 Mar 2009 15:48
4 lines
1044 bytes
1044 bytes
Because there is no way to directly relate the array position of the field with what page it is on, you would need to iterate through the multiple "Text" fields, using the method Bernd showed, and find the one that has the page property you are looking for.
var myRect = null;
for ( var i = 0; i < 3; i++ ) { if ( this.getField("Text." + i).page == myPage ) { myRect = this.getField("Text." + i).rect; break; } }
Technical Details
Message-ID:
<59b85828.4@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b85828.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10177e,599f23df346cf3a6 X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: PDL@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: Re: "Page" and "Rect" props of the Field prop in Javascript API Message-ID: <59b85828.4@webcrossing.la2eafNXanI> Date: Thu, 19 Mar 2009 08:48:35 -0700 References: <59b85828.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit