Copy PDF Form Fields to multiple other PDFs with Adobe Acrobat Pro (Action Wizard & Javascript)

Ғылым және технология

📥 Action Wizard Template:
www.dropbox.com/s/h49l48uh6eu...
Custom Template for pasting to the last page of the document:
www.dropbox.com/s/f7sz0lse6ml...
Just the JS:
www.dropbox.com/scl/fi/ttdqb4...
This is a tutorial on how to copy PDF form fields from one document to multiple other documents. I'm using Adobe Acrobat Pro and Javascript to do so. If you need help with Javascript in Adobe Acrobat, don't hesitate to leave a comment.
#pdf #adobe #javascript #actionwizard

Пікірлер: 82

  • @SiLiDNB
    @SiLiDNB5 ай бұрын

    ‼‼ IMPORTANT INFO EVERYONE ‼‼ Since more and more people are asking for special cases of field types that they want to copy over, I am continuously updating the code on dropbox (I am NOT always updating the downloadable action, so you might have to adjust the action yourself). You can still ask for more cases in the comments btw ;) Now the code takes care of even more cases, including signature fields. --- > Also ... you can hire me for customized pdf manipulation ;)

  • @e.rutger6611
    @e.rutger66115 ай бұрын

    For anyone who is wondering: The alternative is to 1) open the working PDF (the one with the fillable fields you want to copy from) and the target PDF (the one that you want to copy the fillable fields to) in the same Adobe window, 2) combine them using the Adobe Combine Files feature, 3) use the method at 1:14 in this video to Duplicate Across Pages the fillable fields you want, then 4) use Adobe PDF Splitter feature to remove the "original" PDF from the "new" PDF that have the new fillable fields, and finally 5) save the new file separately/download the file to a your device. This alternative method let me copy fields from 1 page across multiple pages, and gives me multiple documents from the original I began with.

  • @SiLiDNB

    @SiLiDNB

    5 ай бұрын

    This is exactly what the action is doing, you don't have to do it manually.

  • @edwardholmes91
    @edwardholmes9110 ай бұрын

    Thank you for this, you're an absolute lifesaver. I've got on older version of Acrobat, so wasn't sure if this would work, but the right click, duplicate to other pages worked like a charm!

  • @SiLiDNB

    @SiLiDNB

    10 ай бұрын

    I'm so glad you figured it out :D

  • @lennarthoffmann308
    @lennarthoffmann3082 ай бұрын

    this is my favourite tune of yours

  • @SiLiDNB

    @SiLiDNB

    2 ай бұрын

    ikr! catJAM

  • @PWH59
    @PWH59 Жыл бұрын

    This is super helpful! Thank you. I'm having trouble with image boxes. When clicked, the image box remains inactive and the document location box doesn't pop up. Is there a fix for this?

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    You're welcome :) so you used it to duplicate image boxes but the duplicated boxes are bugged?

  • @thoeme
    @thoeme6 ай бұрын

    Hi there. First, thank you very much for this! But I have a problem: I don't understand where I define which one the source should be. Could you help me with that? I was looking at the JavaScript but couldn't figure it out there either. In the step where you were adding the files, you were only adding the target files, right?

  • @SiLiDNB

    @SiLiDNB

    6 ай бұрын

    Depends on what you mean by „source file“. There are 3 paths/files that need to be defined: 1. Empty PDF Files that need the Fields to be pasted on - this is the topmost field in the action editor when editing the action - but can also be changed when running the action 2. „Template File“ that contains the Fields - this needs to be defined in the first module „Insert Pages“ of the action 3. Then you need to define the „Save to local Folder“ in the last module of the action - this is where the final files are being saved to - and I think this can also be overwritten when running the action If you still need help, contact me on insta ;)

  • @thoeme

    @thoeme

    6 ай бұрын

    Hi. Just wanted to leave a quick update here. Thanks for the fast reply by the way. I just had to edit the action in a way that it asks for a file on the "Insert Page" step, because otherwise it showed an error that it couldn't find the file (I'm also running on an older version). But now it works perfectly!@@SiLiDNB

  • @mahnoorakbar5487
    @mahnoorakbar5487 Жыл бұрын

    I find it very useful thank you. but the text fields do not appear in the same area, they have moved a bit and also small in size... any idea why is this happening?

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    I'm glad it helps. I've never encoutered that problem. Are you talking about Text Input Fields or just regular Text Fields?

  • @krismoore667
    @krismoore6678 ай бұрын

    Thanks for the great video. I have a form with 3 fields. This action copied over only 1 field into the PDF files I selected, it did not copy over the two signature fields in my template document. Any idea why those particular fields couldn't be copied?

  • @SiLiDNB

    @SiLiDNB

    8 ай бұрын

    As mentioned, the version from the video is not guaranteed to copy over all field types. But I can look into that as soon as I have time for it!

  • @krismoore667

    @krismoore667

    8 ай бұрын

    Sure no prob, I wish I could help on the javascript side but I'm clueless there. Thank you!@@SiLiDNB

  • @freazeltalampas6966
    @freazeltalampas69663 ай бұрын

    Hello, thank you so much for this! It successfully copied the fields into different pages. However, I was wondering if there is a way to make each fields unique from other ones? So that whenever I input some info on a field in page 1, it won't duplicate it on the next page. Please let me know if this is possible, it would be really helpful. Thank you!!!

  • @SiLiDNB

    @SiLiDNB

    3 ай бұрын

    Hi and thanks! I think what you're refering to is the fact that because we're duplicating the same fields across all pages of the new document, when you then input something into the field on page one it will also be filled in on the other pages, right? That's because the fields on the other pages are treated as linked "widgets" of the fields on the first page. You can unlink them and I think it's just as easy as giving them a different name ... but I'll have to check. Maybe I'll have some time this week to check it. Will send you the answer in another comment.

  • @TheNymek
    @TheNymek Жыл бұрын

    Incredible video, thank you very much for the information. I was inspired to create my own JavaScript code after watching your video, which automatically opens several documents and saves only the first page of each one. The problem is that every time it saves a document, a window with the JavaScript code pops up and I have to click OK to continue to the next document. Do you know how to fix this? thanks for the video!

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    You might even be able to do that without JS and just the Action Wizard Tools default actions. But you should look at the indivitual actions in the Action that you're using. Sometimes there's a "Prompt user" checkbox that you can disable.

  • @TheNymek

    @TheNymek

    Жыл бұрын

    @@SiLiDNB that works, thanks!; If I want to save the document with an ocr scan once the page is selected, can I also do it through the action wizard tools or have to use JS code?

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    @@TheNymek Yes you can do that. You can use the [Recognize Text > Recognize Text using OCR] on the left side, when you're editing/creating a new Action.

  • @TheNymek

    @TheNymek

    Жыл бұрын

    @@SiLiDNB Sili, sorry to bother you again, I have been trying for a couple of weeks to solve this problem with information from the internet and I have not been able to. I have thousands of documents of which I would like to scan only the first page of each one and then save that single page as a separate document renamed with "OCR_" + "original name". I have found the following javascript code to save only the first page of a document: this.extractPages(0, 0, this.path.replace(/\.pdf$/i, "_p1.pdf")); but I can't manage to add the step of scanning only that page before saving it. I don't know if you could provide me some site where I can find the information I need to solve it, Thanks again for everything

  • @TheGuccilala
    @TheGuccilala Жыл бұрын

    Thank you for this it was very helpful :) But i have the same problem as @rfielding if it copys an "image form field" the field is not active in the new document.

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    Hey there, I tried to get more info about the problem from @rfielding, but he wouldn't respond to my comment. So you're copying an image form field and then in the duplicated version it's not active?

  • @AshleyCardenas-bn1zn
    @AshleyCardenas-bn1zn2 ай бұрын

    Hi, I was wondering if you knew a script or some steps to copying the boxes with javascripts into another pdf. Just like your video but for a longer pdf with multiple scripts on the different pages. My goal is to just make multiple copies of the same 9pg pdf that are fillable. If you can think for a solution for this on acrobat, it would be much appreciated! btw I did try your steps but it did not work for my pdf, it didn't add the boxes for script in the right place and it removed my first page meanwhile added pages to the bottom.

  • @SiLiDNB

    @SiLiDNB

    2 ай бұрын

    You can use this action but you will have to adjust the code to work with multiple pages. Because the way this is set up is that it duplicates the content from the first page onto the rest of the pages. So you would have to paste in all of the pages that are the "template" that you want to copy from, in the beginning of the pdf, let the script copy each field onto each according page (I am assuming that each page has different input fields...) and then delete the pages that were copied in from the template again. If you want me to set this up for you, please contact me on my socials but I will only do this commercially.

  • @spinmaster360
    @spinmaster3608 ай бұрын

    would you be able to copy and paste your javascript? i tried downloading your action wizard, but my computer is saying the file is corrupt. i've attempted to copy it from the screen, but apparently i suck at that as well as writing my own script. Some people are born with looks, others brains, a select few of us were lucky enough to miss on both

  • @SiLiDNB

    @SiLiDNB

    8 ай бұрын

    I added another link in the description with just the JS Code :)

  • @DramaticQuantom
    @DramaticQuantom Жыл бұрын

    Thanks for the video! Is there a way to copy the contents of fields from one PDF to another? I have two identical PDFs with fillable fields. I want to copy the data in those fields in their respective fields in the other PDF. How can I possibly do that?

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    I might do another tutorial for this, since so many people are asking for it. I know this can be easily done with python code, but I also want to try if I can do it with just acrobat pro.

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    A quick and easy solution for this could be: 1. Open the PDF with the form data in Acrobat Pro. 2. Choose Tools > Prepare Form. 3. Choose More > Export Data. 4. Choose a name and location for the Form Data file (.fdf). Click Save. 5. Open the PDF to which you want to import the form data. 6. Choose Tools > Prepare Form. 7. Choose More > Import Data.

  • @DramaticQuantom

    @DramaticQuantom

    Жыл бұрын

    @@SiLiDNB Thanks a lot. I will try it out now.

  • @alonzobarahona7221
    @alonzobarahona72216 ай бұрын

    This was very helpful - my only problem is that the fields in my source document are oriented vertically and when the new one is saved the orientation of the text is horizontal, anyone have any idea how I can fix it, this process would save us so much time if it works. Thank you!

  • @alonzobarahona7221

    @alonzobarahona7221

    6 ай бұрын

    Also - it isn't copying over one of the smaller form fields

  • @SiLiDNB

    @SiLiDNB

    6 ай бұрын

    Hi, I will try to recreate your situation and see if I can find a solution for that today!

  • @SiLiDNB

    @SiLiDNB

    6 ай бұрын

    okay I am working on it, and I can most definitely do this, just give me another hour or so ;)@@alonzobarahona7221

  • @SiLiDNB

    @SiLiDNB

    6 ай бұрын

    Ok so there seems to be a bug regarding setting the rotation of fields... for some reason it won't let me set the rotation of fields in the same action as duplicating the fields over, even when using multiple "Execute Javascript" modules. But what you can do, if all of the fields are oriented 90 degrees let's say, you can create a new action and use the following code to change the orientation of all fields of a document (or multiple documents ... you can set up your own action for that, it's very easy!): for (var f = 0; f var name = getNthFieldName(f); var field = getField(name); field.rotation=90; } If it's only a few fields, you would have to filter them by using the number or the name of the fields. I could give you different code for that. @@alonzobarahona7221

  • @willzrubk-os2uf
    @willzrubk-os2uf5 ай бұрын

    I have an issue with JS, on the forms I’m trying to copy about mid way through there are blank signature forms and it won’t copy those or anything after then to the new page. Could you help with that?

  • @SiLiDNB

    @SiLiDNB

    5 ай бұрын

    Just saw your message on insta, will get back to you there.

  • @willzrubk-os2uf

    @willzrubk-os2uf

    5 ай бұрын

    I tried to explain it the best I could. Thanks for your help and video.

  • @willzrubk-os2uf

    @willzrubk-os2uf

    5 ай бұрын

    11:batch:exec TypeError: new field is null

  • @jimjam2050
    @jimjam20503 ай бұрын

    I'm trying to copy specific fields to a new page on the same pdf. How would I go about doing that?

  • @SiLiDNB

    @SiLiDNB

    3 ай бұрын

    You can use the same method, just without having to paste in a different page beforehand, and then you have to adjust the code such that it only copies over the specific fields that you want to copy.

  • @arturoherreraramos7508
    @arturoherreraramos750823 күн бұрын

    Hi, I have a ton of forms that have the same field named "Date" and I need to type it on every document, is there a way to set up a script to add it for me automatically on every form?

  • @SiLiDNB

    @SiLiDNB

    23 күн бұрын

    You need to fill out the date field with the same date on multiple documents/files, am I understanding this right? Do you have access to acrobat pro?

  • @arturoherreraramos7508

    @arturoherreraramos7508

    23 күн бұрын

    @@SiLiDNB correct, also my name and title but I guess it would be the same steps for all if there is any correct? Yes, I do have acrobat pro

  • @chrizaanneethling3221
    @chrizaanneethling32215 ай бұрын

    Hi, Is it possible to copy completed fields to another pdf. For example I have the client complete an information sheet and some of those answers need to be auto completed on example a pdf contract?

  • @SiLiDNB

    @SiLiDNB

    5 ай бұрын

    Could you elaborate on this? Do you want to be able to do this using Acrobat pro? My interpretation is that you have a filled form and you want to then use the data to fill a form on a different document?

  • @chrizaanneethling3221

    @chrizaanneethling3221

    5 ай бұрын

    @@SiLiDNB Sorry for the long msg, but I'm going to try and explain my entire process. I'm a musician agent and thus handle their bookings. Step one: The potential client completes a google form with necessary info that I require to formulate quote etcetera. Step two: I then type the info from the google sheet over to a word doc (This is already frustrating) Step three: I then complete a quotation form which includes some information received from that google form and the rest I complete because the amount/flights etcetera changes per booking. This form has a field where the client then completes their Invoice information if they accept the quote. Step four: I know need to compile the actual contract with the client, which means currently I am manually completing the fields of the contract from information gathered from the other forms. Ideally I would like the information to systematically pull through to contract stage as it's completed on the other docs. Maybe I hoping for to much?

  • @SiLiDNB

    @SiLiDNB

    5 ай бұрын

    Thanks for explaining your situation more clearly. I'm still not completely sure, why you do certain steps. For example, why are you typing the info from the google sheet over to a word doc? At what point are you using PDF's if at all? Nowadays you can automate pretty much anything using python or any other programming language , as long as the data is accessible somehow.

  • @user-cx7iv9tc2o
    @user-cx7iv9tc2o7 ай бұрын

    I am trying to run this but it stops at the "execute javascript". Hoping to get it to work

  • @SiLiDNB

    @SiLiDNB

    7 ай бұрын

    What code are you using inside the javascript?

  • @Dictionaryspeaks
    @DictionaryspeaksАй бұрын

    Hello I want fill a form and when i submit it, it has to generate different form with same fields . Can you tell me how to write code snippet for that

  • @SiLiDNB

    @SiLiDNB

    Ай бұрын

    I don't fully understand what you are trying to achieve yet. Do you mean you want to fill the same form using data from a table and then save each row as it's own pdf? If that's the case there are many good tutorials using python for that.

  • @Dictionaryspeaks

    @Dictionaryspeaks

    Ай бұрын

    @@SiLiDNB Actually when I submit a whole form that has 3pages with inputs, it has to generate three PDFs with same data I gave as inputs

  • @SiLiDNB

    @SiLiDNB

    Ай бұрын

    @@Dictionaryspeaks I still don't understand. You have to be very precise with your words, there are too many scenarios that I could imagine you're trying to describe here. What do you mean by submit? What do you mean by generate? Does it have to fill the pdf fields with pre-existing data or generate a fillable form? How is the data given that you "give as inputs"?

  • @XxMGX3xX
    @XxMGX3xX4 ай бұрын

    Is it possible to have one PDF file where you type in data to a form field and it automatically fills in form fields of other PDF ? Kind of how like Excel does?

  • @SiLiDNB

    @SiLiDNB

    4 ай бұрын

    Yes that's possible using python and other high level languages. You could start with this for example: kzread.info/dash/bejne/hpd2upSkkpnNY9I.html

  • @XxMGX3xX

    @XxMGX3xX

    3 ай бұрын

    @@SiLiDNB Thank you very much for all your hard work!

  • @GLENED1030
    @GLENED10303 ай бұрын

    Hello I am trying to copy from one PDF fillable form to 5 different forms some fields. But is not working. any updates with your javascript?

  • @SiLiDNB

    @SiLiDNB

    3 ай бұрын

    What exactly is the problem? The action and the js are still working.

  • @travellingsarek3982
    @travellingsarek398211 ай бұрын

    Will the action wizard work on any version of Adobe Acrobat Pro?

  • @SiLiDNB

    @SiLiDNB

    11 ай бұрын

    I don't know when the Action Wizard was implemented. But whatever version of Acrobat Pro it was implemented on, it should work from that point on is what I'm guessing.

  • @aeromillerMT
    @aeromillerMT Жыл бұрын

    Hi there, this appears to work well, and it handles copying form fields from a multiple page document (given that it lets me pick which page I’m copying from) - but how do I handle pasting into a multi page document? Basically I need to copy form fields on page 2 of one pdf to page 2 of other pdf, but it seems to paste fields on both pages not just the second one. Any help?

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    Indeed my solution is not intended for a multi-page pdf. But I will try to find a solution for that! Keep an eye on your comment in the next few days, as I might post a solution for it here.

  • @aeromillerMT

    @aeromillerMT

    Жыл бұрын

    Awesome thanks! I thought it might just be some JavaScript modification. For what it’s worth my use case is always copying and pasting from the last page so if there is a short term solution for that specific case I would greatly appreciate it!

  • @SiLiDNB

    @SiLiDNB

    Жыл бұрын

    @@aeromillerMT So you have to copy fields from the last page of a multi-page pdf to the last page of multiple other multi-page pdfs?

  • @aeromillerMT

    @aeromillerMT

    Жыл бұрын

    Yes

  • @aeromillerMT

    @aeromillerMT

    Жыл бұрын

    Obviously having the option to choose like you have for picking, would be a good long term flexible solution, but for now if it was just last page to last page or page 2 to page 2 that would work

  • @LuaChincuidau
    @LuaChincuidauАй бұрын

    Hi! Many thank for your video and for your code. However the Insert Pages by me does not work. Here is the Status of this Problem: Command Start Time: 2024-06-17 09:53:03 reportType: Error errorCode: 0 message: Could not open the file '%s'. Command Status: Failed Command Start Time: 2024-06-17 09:53:15 reportType: Error errorCode: 0 message: Could not open the file '%s'. Command Status: Failed Command Start Time: 2024-06-17 09:53:16 reportType: Error errorCode: 0 message: Could not open the file '%s'. Command Status: Failed Command Start Time: 2024-06-17 09:53:16 reportType: Error errorCode: 0 message: Could not open the file '%s'. Command Status: Failed Command Start Time: 2024-06-17 09:53:16 reportType: Error errorCode: 0 message: Could not open the file '%s'. Command Status: Failed Command Start Time: 2024-06-17 09:53:16 reportType: Error errorCode: 0 message: Could not open the file '%s'. Command Status: Failed" How can i fix it. Thank you so much

  • @SiLiDNB

    @SiLiDNB

    Ай бұрын

    That sounds like you haven't changed the file and/or folder paths that are defined by default in the action after you've imported it. Make sure you adjust the parameters as described from 2:45 on. Let me know if that fixes your problem.

  • @login-tech
    @login-tech7 ай бұрын

    Very Bad way of explanation. .. confusing on every step... steps should be clear

  • @SiLiDNB

    @SiLiDNB

    7 ай бұрын

    What should I have done differently? Please be more specific. Do you need any help?

Келесі