Skip to main content
alobened
Participating Frequently
March 13, 2019
Question

javascript acrobat

  • March 13, 2019
  • 4 replies
  • 966 views

¿Cómo puedo coger (seleccionar) los campos de un formulario PDF y copiarlos luego en otro PDF distinto ?

muchas gracias

This topic has been closed for replies.

4 replies

logistics227043683
Known Participant
March 13, 2019

Another way could be to export the PDF you want information from, as a FDF file, then import the FDF file into the PDF you want to insert the information to. There is a programmable way of doing this, if needed.

try67
Community Expert
Community Expert
March 13, 2019

That doesn't create fields, though, it only transfers data to fields that already exist.

Inspiring
March 13, 2019

That would only copy the values of the fields but not the fields.

Inspiring
March 13, 2019

You could open both forms in Acrobat and then use the "Prepare Form" tool on each PDF to edit the forms by cutting and copying the fields between the 2 forms. Or  you could use the "Organize Pages" tool to merge the 2 forms into one form, then use the "Prepare Form" tool to move the form fields as needed and delete the unwanted form fields and unwanted pages. Note that the second method will copy over all document level scripts that may need to adjusted.

try67
Community Expert
Community Expert
March 13, 2019

You posted in the JavaScript forum. Does that mean you want to do it with a script? If so, the easiest way is to use the Replace Pages command, as copying the fields directly is not possible. Alternatively you can collect their properties from the source document to a global variable and then recreate them in the target document. Doing so will remove all Actions and other settings like Format, Validate, Calculate, etc., though.

Bernd Alheit
Community Expert
Community Expert
March 13, 2019

Select the fields and copy and paste.

alobened
alobenedAuthor
Participating Frequently
March 14, 2019

hola

gracias por responder.

Pero era haciendo un script.

Un saludo

Eduardo