Skip to main content
Emily165BD
New Participant
August 12, 2023
Question

Add Text Box/Form Field Everywhere PDF Document Contains Type Here

  • August 12, 2023
  • 1 reply
  • 685 views

Hello,

I am trying to bulk/batch add a form field based on document text. Is this possible?

 

Background:

I have about 600 PDF documents (ranging from 3-6 pages) that are then combined by a batch file into about 215 documents.

Example: Document has Supervisor Name: Smith - all documents with Superviser Name: Smith are combined into one PDF.

 

Action Needed / Looking for

Throughout the combined document there is text that says "Type here." I have being trying to use Actions and Javascript to add a form field everywhere it says "Type here" with no luck.

 

 

 

This topic has been closed for replies.

1 reply

try67
Community Expert
August 12, 2023

Do you want the text field to appear on top of this text? Next to it? Below it? Something else?

What should be the size of the text field? Fixed, or dependent on its location on the page?

Should each field be unique, or should they be copies of one another?

 

This is not a trivial script, though, and the implementation will depend on your answers. One way of doing it is to use the Search & Remove Text tool to identify those strings (it will add a Redact annotation over them), and then use that to create the fields.

Emily165BD
New Participant
August 12, 2023
Hi,



Do you want the text field to appear on top of this text? Next to it? Below it? Something else?

On top/next to/ or below - as long as it is in the same general area.

What should be the size of the text field? Fixed, or dependent on its location on the page?

Fixed.

Should each field be unique, or should they be copies of one another?

Each field would be a copy of the same one.
I have a script to copy a fields from a one-page form and copy onto to subsequent documents; the issue with this is that the location of the “Type here” section varies.
With that script, I can make do with copying a text box from field to the bottom of each page. I was just hoping for something a bit better. If this is the best way, then I’ll just go with it.
(For further context - it is a completed survey with open-ended answers, so every survey is slightly different on Where type here falls).

This is not a trivial script, though, and the implementation will depend on your answers. One way of doing it is to use the Search & Remove Text tool to identify those strings (it will add a Redact annotation over them), and then use that to create the fields.


Sent from my iPhone