Тёмный

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

SiLi
Подписаться 807
Просмотров 13 тыс.
50% 1

📥 Action Wizard Template:
www.dropbox.co...
Custom Template for pasting to the last page of the document:
www.dropbox.co...
Just the JS:
www.dropbox.co...
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

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@SiLiDNB
@SiLiDNB 7 месяцев назад
‼‼ 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.rutger6611 7 месяцев назад
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 7 месяцев назад
This is exactly what the action is doing, you don't have to do it manually.
@edwardholmes91
@edwardholmes91 Год назад
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 Год назад
I'm so glad you figured it out :D
@thoeme
@thoeme 8 месяцев назад
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 8 месяцев назад
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 8 месяцев назад
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
@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?
@freazeltalampas6966
@freazeltalampas6966 5 месяцев назад
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 5 месяцев назад
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.
@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
@krismoore667 10 месяцев назад
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 10 месяцев назад
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 10 месяцев назад
Sure no prob, I wish I could help on the javascript side but I'm clueless there. Thank you!@@SiLiDNB
@lennarthoffmann308
@lennarthoffmann308 4 месяца назад
this is my favourite tune of yours
@SiLiDNB
@SiLiDNB 4 месяца назад
ikr! catJAM
@AshleyCardenas-bn1zn
@AshleyCardenas-bn1zn 3 месяца назад
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 3 месяца назад
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.
@jimjam2050
@jimjam2050 5 месяцев назад
I'm trying to copy specific fields to a new page on the same pdf. How would I go about doing that?
@SiLiDNB
@SiLiDNB 5 месяцев назад
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.
@GLENED1030
@GLENED1030 5 месяцев назад
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 5 месяцев назад
What exactly is the problem? The action and the js are still working.
@willzrubk-os2uf
@willzrubk-os2uf 7 месяцев назад
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 7 месяцев назад
Just saw your message on insta, will get back to you there.
@willzrubk-os2uf
@willzrubk-os2uf 7 месяцев назад
I tried to explain it the best I could. Thanks for your help and video.
@willzrubk-os2uf
@willzrubk-os2uf 7 месяцев назад
11:batch:exec TypeError: new field is null
@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?
@XxMGX3xX
@XxMGX3xX 6 месяцев назад
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 5 месяцев назад
Yes that's possible using python and other high level languages. You could start with this for example: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TcBX2kb6g3o.html
@XxMGX3xX
@XxMGX3xX 5 месяцев назад
@@SiLiDNB Thank you very much for all your hard work!
@arturoherreraramos7508
@arturoherreraramos7508 2 месяца назад
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 2 месяца назад
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 2 месяца назад
@@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
@spinmaster360
@spinmaster360 10 месяцев назад
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 10 месяцев назад
I added another link in the description with just the JS Code :)
@Dictionaryspeaks
@Dictionaryspeaks 3 месяца назад
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 3 месяца назад
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 3 месяца назад
@@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 3 месяца назад
@@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"?
@user-cx7iv9tc2o
@user-cx7iv9tc2o 9 месяцев назад
I am trying to run this but it stops at the "execute javascript". Hoping to get it to work
@SiLiDNB
@SiLiDNB 8 месяцев назад
What code are you using inside the javascript?
@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
@chrizaanneethling3221
@chrizaanneethling3221 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
@@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 7 месяцев назад
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.
@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.
@LuaChincuidau
@LuaChincuidau 3 месяца назад
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 3 месяца назад
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.
@alonzobarahona7221
@alonzobarahona7221 8 месяцев назад
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 8 месяцев назад
Also - it isn't copying over one of the smaller form fields
@SiLiDNB
@SiLiDNB 8 месяцев назад
Hi, I will try to recreate your situation and see if I can find a solution for that today!
@SiLiDNB
@SiLiDNB 8 месяцев назад
okay I am working on it, and I can most definitely do this, just give me another hour or so ;)@@alonzobarahona7221
@SiLiDNB
@SiLiDNB 8 месяцев назад
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 < numFields; 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
@travellingsarek3982
@travellingsarek3982 Год назад
Will the action wizard work on any version of Adobe Acrobat Pro?
@SiLiDNB
@SiLiDNB Год назад
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.
@login-tech
@login-tech 9 месяцев назад
Very Bad way of explanation. .. confusing on every step... steps should be clear
@SiLiDNB
@SiLiDNB 9 месяцев назад
What should I have done differently? Please be more specific. Do you need any help?
Далее
PDF Form Field Scripting Basics
16:28
Просмотров 67 тыс.
MINECRAFT CREPPER EXPLODES SHARK PUPPET!
00:15
Просмотров 8 млн