Issue with Sending Silent HTTP Data from PDF Form in Acrobat
Hi everyone,
I am trying to send data (click tracking) from a PDF form via JavaScript in Adobe Acrobat, but without displaying any status or download window to the user. I’ve tried several solutions, but none have worked as expected.
Here’s what I’ve tried so far:
Using app.launchURL():
I attempted using this method to send the data via a URL, but it opens the browser and causes user interaction (the browser asks for permission to open the URL), which is not ideal for my use case.Using submitForm() (with GET and POST methods):
I tried sending the data via both GET and POST methods using submitForm(), but Acrobat still triggers a download page or a status window, which interrupts the user experience. Despite trying to hide the button, the download page still appears.Submit with Hidden Button and POST Method:
I used a hidden button with submitForm() and tried POST, but it still causes Acrobat to open a download page, which is not what I need.
Earlier Attempts:
I also tried sending HTTP requests directly by constructing a string with app.launchURL() and Net.HTTP.request(), but those attempts failed to reach the server. The requests were not going through at all. However, when I manually pasted the same URL into a browser, it worked perfectly — the server responded and the data was logged.
Objective:
I need to send the data silently (without opening the browser or showing any download status) in a way that works reliably in both Acrobat Reader and Acrobat Pro. Ideally, this would happen in the background, without the user noticing.
It seems like this issue is specific to Acrobat, as the requests work fine when pasted directly into the browser.
Has anyone encountered similar issues or found a solution for silently sending HTTP requests from a PDF form in Acrobat? Any help would be greatly appreciated!
Thanks in advance!
