Can Acrobat JavaScript Upload a PDF Form to SharePoint?
Question details
The user wants to configure a completed PDF form to automatically upload to a SharePoint library when a Submit button is clicked using JavaScript.

- Product
- Adobe Acrobat and SharePoint
- Device & OS
- not provided
- Scenario
- Automating the submission and uploading of completed PDF forms directly into a SharePoint document management library.
- Observed behavior
- Standard embedded Acrobat JavaScript cannot upload files directly to SharePoint without custom server-side endpoints, authentication configuration, and a specific submit URL.
Ensure you have administrative access to your SharePoint environment and verify your server supports custom web service endpoints for handling external network submissions.
Configure a Web Service Endpoint for PDF Submissions
Since Acrobat JavaScript cannot directly save to SharePoint, you must route the submission through a secure server-side endpoint that handles the authentication and file upload.
Standard embedded Acrobat JavaScript operates in a restricted sandbox and lacks the native protocols required to upload directly to a SharePoint library. To achieve this, you need a middle-tier service.
By setting up a custom web service (like an ASP.NET or PHP application) or using Power Automate, the PDF can POST its data to this endpoint. The endpoint then authenticates with SharePoint and saves the file.
Develop a web service or script on your server that can accept HTTP POST requests, process PDF/FDF data, and utilize the SharePoint API to upload the file to your destination library.
Launch Adobe Acrobat, open the form you want to configure, and enter the Form Editing mode to access your interactive fields.
Drag and drop a new Button field onto your PDF form. Right-click the button and select 'Properties'.
Go to the 'Actions' tab, select 'Submit a form' from the dropdown, and click 'Add'. Enter the URL of your newly created server-side web service endpoint.
In the Submit Form Selections dialog, choose 'PDF The complete document' if you need the entire file, or select FDF/XFDF to send only the form data, then click OK to save your changes.

Use SharePoint Incoming Email for Document Uploads
An alternative, code-free method to get PDF forms into a SharePoint library by utilizing the incoming email feature.
Try WPS Office for Comprehensive PDF & Document Management
If complex server-side integrations in Adobe Acrobat are too cumbersome, WPS Office provides an incredibly user-friendly and lightweight alternative for creating, editing, and managing your PDFs and everyday documents.
- 1. Download and install: Get WPS Office for free from the official website and install it on your PC or mobile device.
- 2. Open your PDF: Launch WPS PDF and open your document to easily fill out form fields or make text edits.
- 3. Save and share: Save your completed form and manually upload or share it via email to your team's SharePoint or shared workspace.

Frequently Asked Questions
Why can't standard Acrobat JavaScript save files directly to a SharePoint URL?
Acrobat JavaScript executes within a secure sandbox to prevent malicious activities. It does not have native support for WebDAV or complex authentication protocols required to push a file directly into a SharePoint directory without a bridging web service.
Can I submit just the filled data instead of the whole PDF?
Yes. In the Acrobat 'Submit a form' action properties, you can choose to send only HTML, FDF, or XFDF data. This is often much faster and easier for server-side scripts to parse and inject into SharePoint lists compared to handling a full PDF binary.
Are these methods compatible with modern SharePoint Online?
Yes, but modern environments like SharePoint Online use OAuth and strict security policies. Submitting a PDF directly from Acrobat will still require an intermediary API, such as a Microsoft Power Automate HTTP webhook endpoint, to catch the payload and securely authenticate the upload to SharePoint Online.




