Skip to main content
August 12, 2017
Question

Accessing a Web Service

  • August 12, 2017
  • 1 reply
  • 285 views

I need to create a fillable form that contains a simple drop down list in a pdf document that obtains its values from a web service that returns a small xml document and populates this drop down accordingly. I have the following questions on this topic:

  1. It seems I can add interactivity with Javascript so is it safe to assume I can use Javascript to consume a web service for this purpose?
  2. I read something about being able to access web services using something called Lifecycle Designer (seems to be really old posts about LCD), is this really necessary if I can use straight forward Javascript?
  3. If this is possible with Javascript, will all users who access this document be able to use it with Acrobat Reader without any issue be it security or other or do all users require the full version of Adobe for such an action?
This topic has been closed for replies.

1 reply

August 14, 2017

I came across this post (XmlHttpRequest Support ) that says that there is no support for XMLHttpRequest in Acrobat JavaScript but this was dated way back in 2008 - does anyone know if this is still the case as this would be the Javascript means of accessing a web service?

try67
Community Expert
Community Expert
August 14, 2017

You can execute a HTTP request in Acrobat using the Net.HTTP object and its request method. See the Acrobat JavaScript API Reference for more details.