Skip to main content
Sean_twyman
Participating Frequently
August 8, 2016
Question

Creating PDF, Need to copy form and text entries to clipboard

  • August 8, 2016
  • 1 reply
  • 1112 views

So I am creating a PDF from a docx  Acrobat already detected all the fields, but what i need to do is be able to copy the form and the entered text to the clipboard. However I am limited on knowledge. If someone could help me out, that would be great. So for an example:

the form has Question 1:

What is your name?

Then the user answers in the text field:

John Doe

the form and text box format would be

What is your name? John Doe

I need to be able to copy  Both the form question and the text box answer  - inline to the clipboard in order to paste it in another program---say word for instance.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 8, 2016

That's not possible to do in a single operation, since the values of the form fields and the static text exist on different "layers" of the PDF file. What you can do, though, is flatten the file first, which will convert the form fields to static text. Then you will be able to select everything at once and copy it. At that point you can simply close the file without saving it and it will be back to its original state.

Sean_twyman
Participating Frequently
August 8, 2016

Is it possible to have the user entered fields, then click a button that

will take the form questions and the user entered information from the rich

text format fields and paste it into another text field in the appropriate

format then have another button to copy that text field information so that

i can paste it into another program.

try67
Community Expert
Community Expert
August 8, 2016

Copying the answers and questions to a single field is possible (but you'll need to hard-code the questions into the script that does it), but copying the final value into the clipboard is not.