Skip to main content
Participant
December 5, 2024
Question

Trigger calculateNow function via API?

  • December 5, 2024
  • 1 reply
  • 398 views

Hi,

 I have a govt supplied pdf form that I have no control over format of the fields etc. I can update the writeable fields using API calls to PDF services i.e. pdf.co but there are a number of read-only fields (that are supposed to be updated by embedded javascript) which remain blank. All of the services I have tried say that I need to manually open the file, update a field, hit "Return" and then the read-only calculated fields will populate. This isn't practical or scalable.

 

Is it possible using one of the Adobe offerings to update the writeable fields via an API and then somehow trigger the calculateNow function?

 

Thanks

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
December 6, 2024

Are you viewing this PDF in Acrobat on the desktop? 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
December 7, 2024

I can, but the point is that I don't want to have to open the pdf to trigger the javascript, and other users that I send the completed pdf to shouldn't have to open it with Adobe desktop and then trigger the javascript. I just want the pdf fields completed via an API call so I can then distribute the completed pdf form back to the user without anyone having to manually open and click on a field in any pdf viewer, Adobe or otherwise. 

Thom Parker
Community Expert
Community Expert
December 7, 2024

I believe the answer is no. You would need the enterprise server to do this. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often