¿Cómo puedo coger (seleccionar) los campos de un formulario PDF y copiarlos luego en otro PDF distinto ?
Select the fields and copy and paste.
gracias por responder.
Pero era haciendo un script.
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.
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.
That doesn't create fields, though, it only transfers data to fields that already exist.
That would only copy the values of the fields but not the fields.
I would use CTRL + click to select all of the field you want to copy, then paste them in the other document
You still need to open the form tool. Also if there are document level functions, they will not be copied. Examples would include rounding calculations, validating date strings conversion to date objects and error trapping when acessing a field object.