Skip to main content
Participant
September 16, 2024
Question

Use API to generate PDF from PDF template containing native script

  • September 16, 2024
  • 1 reply
  • 1002 views

We have a bunch of PDFs that contain Native Script to dynamically change the PDF layout based on some data entered into the PDF via a form.

 

Currently we have a Adobe Pro running on a virtual machine; using a bunch of other tools we are able to open the relevant PDF, enter the data, (at which point the Native Script alters the PDF) and then save the updated PDF.

 

This works, but its cumbersome and flaky.

 

Ideally we would do all of this using the PDF Services API. However I cannot find any examples of using PDF templates or PDFs containing Native Script; only creating PDFs from Word etc (bmp, doc, docx, gif, jpeg, jpg, png, ppt, pptx, rtf, tif, tiff, txt, xls and xlsx).

 

Is this possible with the API?

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
September 17, 2024

What exactly do you mean by "Native Script?"

Participant
September 17, 2024

Perhaps I've used the wrong terminology, don't know too much about Adobe / PDFs.

 

Our client supplies us with PDFs that have forms in them.

When values are entered into the form, the PDF updates  (conditionally changes images, values, lines etc).

I assume the forms are driven by some kind of native adobe script.

 

These only work when the PDFs are opened in Adobe Acrobat DC Pro.

So we install that on a VM, open the PDFs with it, then use some tools to populate the form then save the updated PDF.

 

Our preferred solution would be sending the PDF along with the values to the API and have that return an updated PDF.

 

Joel Geraci
Community Expert
Community Expert
September 18, 2024

Can you share one of the PDF forms? We may have a solution for you but I'd need to see the form.