Skip to main content
Participant
September 26, 2023
Question

How to automate information copy and paste for hundreds of documents.

  • September 26, 2023
  • 2 replies
  • 1294 views

I have a unique ID number on the first page of my document but need to add that to the header of all of my pages in a different format. Example would be.... Employee # 12345. I need the number only and then in the header it would need to be EID:12345. I have 2-6 pages for each document and hundreds of documents I want to automate this process for.

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
September 26, 2023

This can be done with JavaScript.  I have developed many scripts to similar things, it is not trivial.  Send me a message if you want to hire a developer. Or if you want to do this yourself I can provide an outline of the process. 

But either way, the first issue is nature of the unique Id.  Is is part of the page text? or is it in a form field or annotation?

 

  

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
September 27, 2023

It is part of the page. 

try67
Community Expert
Community Expert
September 26, 2023

Is this number in a form field, or static text? If the latter, does it always appear at the same spot on the first page?

If so, it should be possible to do it, but it would require the development of a custom-made script.

If it's in a form field it would be easier to do.

Participant
September 27, 2023

It is static text and in each group of documents it is in the same location but each group has slight variation of the location on the first page. They all are the same wording though if that makes a difference.

try67
Community Expert
Community Expert
September 27, 2023

Then it's a bit tricky, but if the wording around this text is always the same then it might still be possible.

 

I've developed many similar tools for my clients in the past, so if you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on "Send a Message".