Skip to main content
christian18049837
Participant
February 10, 2017
Question

Document level JavaScript not executed in Acrobat Reader App for Android

  • February 10, 2017
  • 1 reply
  • 313 views

Hi,

a simple API call to prefill a textfield is working perfectly in Acrobat Desktop and iOS, but not in Android. When the same API call is use inside a button event, it's also working in Android.

How to reproduce:

- Create a PDF with two textfields "Text1" and "Text2".

- Insert document JavaScript:

this.getField("Text1").value="Text1";

this.getField("Text2").value="Text2";

- Save document and open it in Acrobat Reader App for Android.

=> The textfields are not filled with text as expected.

Used version: 17.0 / Build 164574

You also can download a testfile here: AndroidTest.pdf - Google Drive

Thanks!

Christian

This topic has been closed for replies.

1 reply

Inspiring
February 10, 2017

Mobile devices are not the same as desktop or laptop computers and their apps do not do all the things that full computer versions of Acrobat or Adobe Reader. Have you checked the documentation for the Acrobat Mobile apps.

http://www.adobe.com/devnet-docs/acrobatetk/tools/Mobile/js.html

JavaScript APIs and Forms

It looks like Acrobat Mobile Reader support form fields only, no document level actions, no file JavaScript.