Skip to main content
Known Participant
March 29, 2022
Question

How to get Adobe Fields values from a web page using JavaScript

  • March 29, 2022
  • 1 reply
  • 561 views

I am developing a solution where I want to get Fields values from a PDF document from a web page using JavaScript then insert them into the web page fields. May somebody help me with which function I can use to do this.

This topic has been closed for replies.

1 reply

Legend
March 29, 2022

There is no such feature in client side JavaScript.

SamKhaMAuthor
Known Participant
March 29, 2022
Thank you for the reply.
 
I actually started the following script to upload the PDF to the Web Page, I got the PDF file in the "input" var. I just need the function that I can use to define the "input" var as a PDF object then the function that I can use to get a field value by field name from the PDF defined object. I want to do all of this on the client-side from the browser. I am sure that this can be done but I do not know how. With a strong product like adobe, there should be some sort of APIs or SDKs that can help with these types of requests
 
<!DOCTYPE html>
<html>
    <head>
 
    </head>
    <body>
        <input type="file" id="file-id" name="file_name" onchange="ExtractText();">
        <!-- a container for the output -->
        <div id="output"></div>
        <script>
            function ExtractText() {
                var input = document.getElementById("file-id");
 
                });
            }
        </script>
    </body>
</html>
Legend
March 29, 2022

Try the Document Services API. 

https://developer.adobe.com/document-services/apis/pdf-embed/

https://developer.adobe.com/document-services/homepage

These are nothing to do with Acrobat and have their own forum.