No video

How To Make A Dynamic PDF Stamp

  Рет қаралды 149,584

PDF Automation Station

PDF Automation Station

Күн бұрын

Learn JavaScript for Acrobat Pro. Take the eLearning Course:
www.pdfautomat...
Weekly tips and tricks column:
pdfautomations...
This video shows how to add dynamic fields to a PDF stamp including how to automatically insert today's date and automatically insert the name from the Adobe identity. It also collects a response from the user through a popup window and inserts the response into the field. Learn how to make a static PDF stamp from scratch in this video: • How To Create A PDF St...
To learn about the capabilities of custom dynamic stamps, download this paper:
pdfautomations...
To get a quote for a custom stamp, contact us here:
www.pdfautomat...

Пікірлер: 345
@ambersharpe
@ambersharpe 4 жыл бұрын
Thank you so much for this!! It was extremely helpful! Our IT department just shrugged at me when I asked about javascript in a stamp
@LetysiaMoresco
@LetysiaMoresco 4 жыл бұрын
This video was extremely helpful. I ran into an issue with my javascript and David was very responsive and helped me get it working. Thank you for this!
@hibob
@hibob 3 жыл бұрын
Love your three videos for creating stamps. I was able to create a transparent, dynamic stamp (once I typed the JavaScript correctly)! THANK YOU!
@duncanwright8692
@duncanwright8692 3 жыл бұрын
Thank you for your help, David. This has helped our business move to a paperless invoicing system.
@chadsway88
@chadsway88 3 жыл бұрын
Great video straight to the point! everyone else took forever and rambled nonsense
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
Thanks for the positive feedback!
@kryptonitekittee7665
@kryptonitekittee7665 3 жыл бұрын
Thank you so much! This is exactly what I was looking for. The separate scripts field is a brilliant idea! I was able to fix and really clean up my scripts thanks to your tutorial. Thank you, thank you, thank you!
@wadebryant6845
@wadebryant6845 4 жыл бұрын
I looked at quite a few resources to no avail. This allowed me to achieve exactly what I wanted. Thank you!
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Glad we could help!
@lukcza149
@lukcza149 3 жыл бұрын
Thank You! That was exactly what i needed! It seems that some heroes doesn't wear capes!
@skipmorgan
@skipmorgan Жыл бұрын
Very straightforward. Thanks, you are a very good teacher.
@cmcnett100
@cmcnett100 4 жыл бұрын
Thank you for this straightforward tutorial! It worked fantastically for me (I made some mods to suit my custom stamp) and will save me a lot of time!
@Brotelho2
@Brotelho2 5 жыл бұрын
That poor keyboard...
@MK-sx9rg
@MK-sx9rg 5 жыл бұрын
one of the greatest tutorial I have everseen. thanks.
@PDFAutomationStation
@PDFAutomationStation 5 жыл бұрын
Thank you for the positive feedback.
@StarThistle1989
@StarThistle1989 4 жыл бұрын
Exactly what I needed, thank you so much. One thing to note - I did not have a search feature in Acrobat for my tools, so I had to manually locate some of the tools that I needed. For example, Page Templates was under Advanced >> Document Processing >> Page Templates. I am using Acrobat 9.0. This video, along with its predecessor, made it super easy for us to design a large quantity of custom business stamps (some with prompts to fill in information) and then easily import them in bulk into each employee's local folder. Made the process of batch importing business stamps super easy. Super appreciate and highly recommend.
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
The tools search feature was introduced in Acrobat Pro DC.
@bahramazadi1406
@bahramazadi1406 7 ай бұрын
Greate training... woo thanks
@PDFAutomationStation
@PDFAutomationStation 7 ай бұрын
You're welcome. There's more here: pdfautomationstation.substack.com/
@uncleistvan0824
@uncleistvan0824 3 ай бұрын
Thank you so much for these tutorials! I am trying to make a dynamic stamp that will allow the user to be able to select a date rather than have the date field automatically populate. Can you explain how to write the code for this?
@PDFAutomationStation
@PDFAutomationStation 3 ай бұрын
It's very complicated. You have to create a separate popup dialog date picker: pdfautomationstation.substack.com/p/pdf-popup-calendar-demand-drives We have one for sale on our website: www.pdfautomationstation.com/products/item7.cfm It can be triggered from a button in the main dialog that is triggered by the dynamic stamp. We can also provide you with a quote to program your stamp for you with a date picker for a date field. If you're interested please contact us here: www.pdfautomationstation.com/public/department6.cfm
@fossman03
@fossman03 2 жыл бұрын
This still works. Thanks!
@jmemusic
@jmemusic Ай бұрын
5:07 -> I'm just wondering how you run it. I press enter, but nothing happens Edit: By change I figured out that you have to press CTRL + Enter
@jmemusic
@jmemusic Ай бұрын
Edit: I saw in your other video that you mentioned the "Enter" key from the numeric pad. It also works.
@a240fal
@a240fal 3 жыл бұрын
Great explanation, thanks!
@jmemusic
@jmemusic Ай бұрын
It is a nice tutorial, thank you. On my case, I will have four fields, so, I guess you will get four dialogs; it would be nicer if you could just get everything on one dialog or directly editing the stamp fields, but I guess it is not possible. Update: It seems that it is possible though. There are Dialog Boxes that could be used inside a stamp. I haven't tried it yet, but looks promising.
@jmemusic
@jmemusic Ай бұрын
Yes, with custom dialogs work. It is not easy though, but it will work. For the interested, look for: * Custom dialog boxes: Part 5 of 5 on popup windows by Tom Parker I can't post the link because KZbin will delete it. Buy you can just use google. There he has a nice tutorial and two PDF files with examples. Essentially, you just have to: 1. Create a dialog inside the "if ((event.source.forReal) && (event.source.stampName ..." code from this video. 2. The dialog will be assigned to a variable: "var formDialog = ... dialog definition" 3. After the dialog code, you just have to have something like: "if(formDialog.DoDialog() == "ok") { ... do your stuff here }" 4. Inside that if, you can then assign the dialog variables to the stamp field as follows: "this.getField("StampField").value = formDialog.dialogVar" Sorry if I don't write proper code, but KZbin doesn't like it.
@PDFAutomationStation
@PDFAutomationStation Ай бұрын
It's absolutely possible by using the app.execDialog method. These popup dialogs are what we use in almost all of your dynamic stamps. All data entry fields are contained in one window because it is annoying for the user to have have to dismiss several popups and not be able to see what what entered previously. Popup dialogs are complicated to script. If you would like a quote for us to do it for you please contact me here: www.pdfautomationstation.com/public/department6.cfm
@jmemusic
@jmemusic Ай бұрын
@@PDFAutomationStation As I said in my previous reply, I already implemented my dynamic stamps with custom dialogs. But thank you for the offer.
@e.c.8668
@e.c.8668 2 ай бұрын
Is there a way to do this, but with putting a digital signature field in there? I watched the one about adding dynamic fields, but that only pulled your name from the properties of Acrobat.
@PDFAutomationStation
@PDFAutomationStation 2 ай бұрын
Yes. It's complicated. You have to write a script that measures the location of the stamp when it lands, then creates a digital signature field relative to that location, then triggers the digital signature field for signing. The script to create the field is the document addField method. The script to trigger the field for signing is the field signatureSign method. Both of these can be researched in the Acrobat JavaScript Reference Guide: opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/index.html
@alicetherrien7754
@alicetherrien7754 4 жыл бұрын
I am trying to created a dynamic stamp that contains 2 fields, First field = Date paid (with automatic date) and Second field = COTR# a field I can enter numeric data (8 digits max) each time I use the stamp but I cannot workout or find the script that suits my need. When I try to adapt scripts online, it seems there is a mistake in the formula. Please help me? if ((event.source.forReal)&&(event.source.stampName == “Dynamic”) {this.getField(“COTR”).value = app.response(“COTR#”); this.getField(“Date paid”).value = util.printd(“mm/dd/yyyy”, new Date ()); }
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
There are many mistakes in your script. The main mistake is that it looks like you used a word processor like Microsoft Word to write your script. This caused curly quotation marks (''66" &"99") instead of straight quotation marks. You should always use a plain text editor like Notepad to write your script. The next error is in your stamp name. The name must start with the pound sign (#) in order to function properly. Next, you are missing a closing bracket after "Dynamic") Please fix all of these and try again.
@sophietyy
@sophietyy 4 ай бұрын
how can i create a today date stamp? i use script event.value=utility.printd(“dd mmm yyy”,new date) but it doesn’t change the date update
@PDFAutomationStation
@PDFAutomationStation 4 ай бұрын
You should start by using a plain text editor, like Notepad, to write your script. You have curly quotes in your script. You need straight quotes. A plain text editor will fix this. Also, there is no year format with 3 y's. There's either 2 (yy) or 4 (yyyy).
@shehzadulhassan4475
@shehzadulhassan4475 4 жыл бұрын
Great work.
@jeff58240
@jeff58240 4 жыл бұрын
This is a great tutorial. Once I place the stamp and have entered data into it is there a way to correct a field that the user input. For example I have an order number field. If they enter the order number and then realize they forgot a digit is there a way to edit it without deleting the stamp and re-stamping it?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
We have developed some proprietary that will do that. We don't share these scripts but if you are interested in a stamp like this we can provide you with a quote to develop it for you. Please contact us here: www.pdfautomationstation.com/public/department6.cfm
@silentdwak
@silentdwak Жыл бұрын
hi, can you create a stamp with textboxes for 2 reviewers, where the first reviewer will put the stamp and the 2nd reviewer will just enter his/her initial, sign and date in the stamp.
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
Yes we can. Please contact us here outside of KZbin: www.pdfautomationstation.com/public/department6.cfm You can download this PDF to read about what we can regarding dynamic stamps: www.pdfautomationstation.com/public/How_To_Order_PDF_Stamps.pdf
@hemak6564
@hemak6564 Жыл бұрын
Hi thank you for amazing education. I am not able see my short cuts like stamp icon on my pdf page how do I do that thanks
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
You're welcome. To answer your question: kzbin.info/www/bejne/r5_SeKadi9iYbrc
@hemak6564
@hemak6564 Жыл бұрын
Hi David, I have followed the tutorial exactly as yours- but can’t see “My Stamp Category “ for further editing. Please help. Thank you.
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
@@hemak6564 You need to be more specific if you want my help. Please contact me offline here: www.pdfautomationstation.com/public/department6.cfm
@calummoy7149
@calummoy7149 2 жыл бұрын
Hello I have entered in multiple categories in the java script, however when I stamp the box to enter data doesn’t appear. Any Idea on how to fix this?
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
Please post your script here.
@dineendns
@dineendns 4 жыл бұрын
David, I've watched both of your vids, making static and dynamic stamp. I had to tweak what you were showing to what I needed. I don't know JS at all so I'm kind of winging it. I accomplished what I needed but the stamps that I created are executing the two form field JSs BEFORE placing the stamp AND after placement. So it works, kinda. I just have to enter through the two executions before placing the stamp and then when the form fields pop up again after placement, it works fine. I know it must be something in the form field script that is generating the form field ask before and after. I know if you looked at my stamps, you would probably be able to see what's wrong immediately. I could use some help.
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
It sounds like you don't have the if statement right so it is running the calculation as soon as you hover over the stamp in the menu. It could also be that you have more than one calculations in more than one field. If this is not it, please send me an email by filling out this form and I will reply so you can send me the files. www.pdfautomationstation.com/public/department6.cfm
@dineendns
@dineendns 4 жыл бұрын
@@PDFAutomationStation I got this all figured out. Thank you so much for your tutorial.
@balancedscales3420
@balancedscales3420 5 ай бұрын
what if we wanted it to allow us to chose a date?
@PDFAutomationStation
@PDFAutomationStation 5 ай бұрын
You would have to create your own Date-Picker popup dialog. This is extremely complicated: pdfautomationstation.substack.com/p/pdf-popup-calendar-demand-drives If you're interested in a quote for your stamp please contact me here: www.pdfautomationstation.com/public/department6.cfm
@padawanjesus
@padawanjesus Жыл бұрын
Hey, for some reason the bottom little bit of my stamp is transparent instead of a white background. Any idea how to fix that? Thx for the tutorial
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
If you created the stamp image from fields or annotations, you have to set the fill to white from "no fill" if you want it to be white instead of transparent.
@padawanjesus
@padawanjesus Жыл бұрын
nvm i figure everything out. thanks agian!
@tonyhodge
@tonyhodge 3 жыл бұрын
Great demo, thank you. Is there a way to edit these fields once filled in, perhaps run through the pre-populated popups again?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
Yes, we have a few ways to do that but unfortunately that information is proprietary to our firm. If you would like a quote for development of an 'editable' dynamic stamp, please contact us here with details: www.pdfautomationstation.com/public/department6.cfm
@joelvh1
@joelvh1 2 жыл бұрын
Hello David, I recently found your channel and immediately subscribe, great content. I had been trying to create a stamp that would add form field textboxes to my PDF documents so that other uses could enter information into the form fields. Found out later on that you couldn't do that, as the fields need to be flattened and the only way to enter information into the fields was through Java Script. I know some VB but no Java, going through your videos maybe I'll start to learn some Java as well.
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
Thank you for the positive feedback. Yes you can use check boxes for the user but you do need a popup dialog window with check boxes, written in JavaScript.
@leah4192
@leah4192 Жыл бұрын
Question.... I have created many stamps thanks to your video above... I am trying to advance, and have managed to make a nice stamp with all of the fields in one pop-up window. This lead to having 32 input fields in one pop up... So I thought, maybe I will separate it into 5 different scripts and see if I cant get them to pop up one after another... No dice, is this a possibility?
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
Yes you can do that. Create 3 separate popup dialogs then have the script run them consecutively.
@laurapimentel8853
@laurapimentel8853 3 жыл бұрын
This was perfect and worked great, thank you! Could you offer a solution that would allow you to apply this same dynamic stamp to all the pages in a document with the information entered without being prompted to enter it once again for each sheet?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
We have a solution for that: www.pdfautomationstation.com/products/item13.cfm
@mtrakker1985
@mtrakker1985 4 жыл бұрын
with this.templates, I've tried it in 2 different versions of pro but it returns null each time, is there something else that needs to occur before running this.templates?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
You have to make sure your PDF is a template (listen to the first 25 seconds of the video). Here is the other video referenced: kzbin.info/www/bejne/bavIf6yrqadkpNE . I hope this helps.
@super2hori2
@super2hori2 Жыл бұрын
Great video! I got the code and stamp to work correctly. For some reason I can't get this stamp to work on Adobe Reader DC. Does the JV not work on the Reader application?
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
It should work with Reader DC. Do you have the stamp file in the correct folder?
@TheBigBakwas
@TheBigBakwas 2 жыл бұрын
Hi David, This is a great video with detailed information on what needs to be done for making a dynamic PDF stamp. However, I need to get a radio button selected when I insert the dynamic stamp. I only know basic JavaScript, so I am unable to implement the logic. Could you show me the way?
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
For check boxes, radio buttons, dropdowns, and multiple fields in one popup dialog window we us the app.execDialog function. The programming is too complex for KZbin video or article. If you would like a quote for us to program your stamp please contact us here with details: www.pdfautomationstation.com/public/department6.cfm Thank you.
@Only-a-Guess
@Only-a-Guess 2 жыл бұрын
Hi, I need to add a stamp to welding drawings as a record on job completion which then allows me to enter a welders name and procedure number used on the job I need it to be text that I fill in each time because each welded component drawing will be done by a different welder to a different procedure. Is this easy to do ? it is basically a stamp with editable text boxes
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
You should be able to it by following this video, only you wouldn't have a date field or an automatic name field. Instead you would have 2 response field. However never use the response field when there is more than 1 because it is annoying for the end user to dismiss multiple text fields. We use a popup dialog window instead that contains all response fields in one window. This is too complex for a YT video. If you would like a quote please contact us outside of YT here: www.pdfautomationstation.com/public/department6.cfm
@vickibrown8604
@vickibrown8604 2 жыл бұрын
I would like to use a dynamic stamp that I have created as a template and change a few fields. Can I do this without recreating the whole stamp. I have tried a few times by renaming it but it seems to make the code fail so I must be missing changing something that is embedded or hidden. Great video by the way. Thank you
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
I'm not sure what you mean. You can change all the fields you want without recreating the whole stamp. What are you renaming?
@JoelGraham-ki6uh
@JoelGraham-ki6uh Жыл бұрын
Will the date automatically change the next day? I've made these stamps before from different youtube videos, but the date never changes. Stays the same date each day.
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
The date is the current date that the stamp is applied. If you stamp today it will be today's date. If you stamp tomorrow it will be tomorrow's date.
@JoelGraham-ki6uh
@JoelGraham-ki6uh Жыл бұрын
@@PDFAutomationStation I tried using the stamp the last couple of days and the date won't change, what step am I missing in your video?
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
@@JoelGraham-ki6uh Please contact me offline here and I'll take a look at your stamp: www.pdfautomationstation.com/public/department6.cfm
@ashleypike435
@ashleypike435 3 жыл бұрын
I have completed the PDF stamp from scratch and have attempted to create the dynamic PDF stamp. When I save the stamp and re-open it, it is perfect. However, when I add it as a stamp in Adobe, it will not let me add text to the field that I created a text box for.
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
What is your script?
@sylviegoulet445
@sylviegoulet445 Жыл бұрын
I am SO close. Not sure what the issue is. Can I email you directly pretty please?
@byeeself
@byeeself 3 жыл бұрын
Hi David. I enter the following code into the script box and it has the message: "Syntax Error: syntax error. 1: at line 2" referring to the { symbol. I double checked the quotation marks are straight (not curley). Any idea where the problem is at? Thank you! if ((event.source.forReal))&&(event.source.stampName == "#InvoiceApproval")) { this.getField("Date").value = util.printd("mm/dd/yyyy", new Date()); this.getField("PO").value = app.response("PO Number: "); }
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
The number of opening brackets must match the number of closing brackets. You have 3 opening brackets (, and 4 closing brackets ). You have an extra closing bracket ) after forReal.
@byeeself
@byeeself 3 жыл бұрын
@@PDFAutomationStation That fixed that issue, however after adding this coding into the "script" object, I tried to stamp a document and it still shows an empty stamp (nothing filled in). My goal is to autofill the date and open a message box prompting for a PO number. Any other thoughts on where this went wrong? See scripting below for reference. Thank you! if ((event.source.forReal)&&(event.source.stampName == "#InvoiceApproval")) { this.getField("Date").value = util.printd("mm/dd/yyyy", new Date()); this.getField("PO").value = app.response("PO Number:"); }
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
@@byeeself I don't know what the script object is. Please contact us outside of KZbin here: www.pdfautomationstation.com/public/department6.cfm
@mairacoupe8790
@mairacoupe8790 2 жыл бұрын
Thank you, I have found this so helpful. I'm having trouble figuring out I can add a digital signature to the dynamic stamp I'm creating, is this even possible? For some reason it also doesn't like my script it keeps telling me that I have an illegal character on line two but the only thing on line two is {. I don't know what to do.
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
Empty lines count as lines in the error message so if you have an empty line on line 1, the first line of code would be line 2. Please contact me outside of KZbin here and I'll take a look: www.pdfautomationstation.com/public/department6.cfm
@mairacoupe8790
@mairacoupe8790 2 жыл бұрын
@@PDFAutomationStation thank you I'll try that
@mairacoupe8790
@mairacoupe8790 2 жыл бұрын
So, I got it to work, got rid of the illegal characters but now that I have it saved it won't generate the fields.
@jeaniferpwistorespw2646
@jeaniferpwistorespw2646 4 ай бұрын
I keep getting a calculation error when I try to run the code.
@PDFAutomationStation
@PDFAutomationStation 4 ай бұрын
What is the error?
@derekhehn1321
@derekhehn1321 2 жыл бұрын
If I have 2 different dynamic stamps in 2 different pdf files (in the Stamps folder), is there a way to combine them into a single pdf for that folder so they'll both appear in the same group in the Stamps menu?
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
Yes you can combine them but you don't need to if the sole purpose is to have them in the same category. The category name is driven by the title of the PDF. All you have to do is change one title to match the title (stamp category) of the other PDF by pressing Ctrl + D to open the document properties, then changing the title field in the description tab. Don't forget to save the changes and restart Adobe so it picks up the new category for the stamps menu. If you really need to combine them you could drag the page of PDF 2 into the pages panel of PDF 1. In doing so you will lose the template status of the PDF 2 and have to recreate it under Templates in tools. You would name the page template the same as the original in PDF 2. If you can't get this to work please contact us here: www.pdfautomationstation.com/public/department6.cfm
@jessehamilton5805
@jessehamilton5805 2 жыл бұрын
Please help write the script as shown and keep getting a syntax error I have written in note pad but cant seem to make it work. Thanks
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
What does the syntax error say?
@jessehamilton5805
@jessehamilton5805 2 жыл бұрын
@@PDFAutomationStation missing ) after condition 2: at line 3
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
@@jessehamilton5805 You are missing the 2nd closing bracket. You must have a closing bracket for each opening bracket. It is cut off a some points in the video but shows at 2:41.
@Eros4tw
@Eros4tw 4 жыл бұрын
So, I want to add several blank and fillable fields to a stamp. I dont really need them to be in any sort of specific format other than just allowing me to enter in whatever text I want into that field. I then need to be able to save the document, close it, and reopen it again at a later time and then possibly enter in additional information into any of the fields I have not yet entered into. And I need to do this to many documents. Is this possible? Or if not able to do this with Stamps, is there some other way of doing what im looking for?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Yes this is possible but it is too complicated for a KZbin video or short article. If you would like a quote for us to create the solution for you please contact us outside of KZbin: www.pdfautomationstation.com/public/department6.cfm
@phazerworld6300
@phazerworld6300 3 жыл бұрын
I followed both the static stamp tutorial and the dynamic stamp tutorial. My Date and Approved By filed auto-populated. I also added 2 user entered field and was prompted to enter data but the entered data did not show up. Also, I added two check boxes but they do not seem to work at all. Im guessing that check boxes are not an option in the dynamic stamp? Does the static stamp mean that the data must be entered after the document is printed out (handwritten?) Lastly, I was hoping to make the stamp with a white background, but I was unable to make that work either.
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
To make the background white you need to make the background of your image white. I don't know why your prompts are not filling in the fields. I would have to inspect your file. For check boxes you would have to use text fields in the stamp and enter an X in the response box. We don't use the response box when there is more than one response because it is annoying for the user to have to dismiss all of those popup windows. We also don't use response boxes when there are check marks. Instead we use the execDialog function which allows multiple fields and multiple field types (check boxes) in one popup window. This function is too complicated for a short article or KZbin video. If you would like a quote for us to develop you stamp please contact us here: www.pdfautomationstation.com/public/department6.cfm
@codyallarte6451
@codyallarte6451 3 жыл бұрын
When I place the stamp, there is no pop up prompting for information. Here is the script I am using, could you please help. if ((event.source.forReal)&&(event.source.stampName == "#Digital Invoice Stamp")) { this.getfield("Agreement Number").value = app.response("Agreement Number:"); this.getfield("WO Number").value = app.response("WO Number:"); this.getfield("Encumberence Number").value = app.response("Encumberence Number:"); this.getfield("RC Number").value = app.response("RC Number:"); this.getfield("Account Number").value = app.response("Account Number:"); this.getfield("Billing Account Number").value = app.response("Billing Account Number:"); this.getField("Approver").value = identity.name; }
@barnomoysaha1043
@barnomoysaha1043 4 жыл бұрын
Hi David, this was very useful. However, can we rewrite the script to choose which fields we want to update? I ask because I have a use case scenario wherein multiple people review a document and all of them stamp it after their review. Pulling different identities will also be great, in line with the user. Thanks
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
We can make a stamp for you that fills in different fields in steps or stages. However, it is too complicated to describe how to do it or to follow the description, which has taken years of scripting to develop. If you would like a quote please contact me outside of KZbin by completing this contact form: www.pdfautomationstation.com/public/department6.cfm
@cathysechrist3896
@cathysechrist3896 4 жыл бұрын
Thank You. I corrected my script however I can't get the script to launch. I created my stamp from Excel and converted to PDF. Do I have to create the stamp from scratch? Steps: Created stamp in Excel, converted to PDF, Prepared form, added and named text boxes, added a box for the script, saved and added the stamp to acrobat under dynamic stamp, opened the stamp from adobe, got my stamp name, added it to the script and added my script in the script box, saved the stamp, opened a pdf, dropped in the stamp from acrobat , positioned it to the right place and hit enter assuming that the script would launch. It didn't work :( What am I missing? Thank You!
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
No you don't have to create it from scratch but it does have to be a template. Please contact me outside of KZbin here and I will troubleshoot for you: www.pdfautomationstation.com/public/department6.cfm
@tmirelle
@tmirelle Жыл бұрын
Hi! Awesome video, is there any chance that there is (or could be) a companion text file or something with the code snippets typed out so I could copy & paste to follow along? Sorry for the request to be spoon-fed. I am having such a hard time pausing & copying. Difficult to view on my tiny laptop screen :)
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
if(event.source.forReal && event.source.stampName=="#MyTestStamp") { this.getField("Amount").value = app.response("Amount:"); this.getField("Approved").value = identity.name; this.getField("Date").value = util.printd("mm/dd/yyyy", new Date()); }
@cathysechrist3896
@cathysechrist3896 4 жыл бұрын
I created my script exactly as shown in the video, cut and pasted exactly the same and I am getting a syntax error. missing ) after condition 2: at line 3. I have tried to add the missing ) but I can't seem to get it in the right place. Pleas help!
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
You are missing a closing bracket at the end of the first line. Pause the video her and pay close attention: kzbin.info/www/bejne/epaziKWVZtGhj8k
@thanyananwimala3105
@thanyananwimala3105 3 жыл бұрын
Hi, I follow your instruction and create one that needs to add "Organization Name and Organization Unit" into my stamp but when I put the code this.getField("Company").value=identity.organizationName; the result shown in the field box said "undefined". Could you please help how can I solve this? appreciate your help.
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
this.getField("Company").value = identity.corporation;
@debmontone6931
@debmontone6931 Жыл бұрын
first off Thank you I read through all the comments and did find some errors for me to correct, I still get the SyntaxError:illegal character1: at line 2 I have Acrobat Pro DC
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
Please paste your script here. Illegal character is usually curly quotes instead of straight quotes that comes from writing your script in a Word processing program like MS Word instead of a plain text editor like Notepad.
@debmontone6931
@debmontone6931 Жыл бұрын
@@PDFAutomationStation if((event.source.forReal)&&(event.source.stampName==”#MailReceived”)) { this.getField(“Received”).value = app.response(“Received”); this.getField”(“Name”).value = identity.name; thisget.Field(Date”).value = util.printd(“mm/dd/yyyy", new Date()); } I would like the stamp to be able to type in how received. then my name and date windows 10 note pad I did see in the comments you had mentioned not to use word Kind regards,
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
@@debmontone6931 The script you pasted is full of curly quotation marks, has misplaced periods, and missing quotation marks. There are 12 such errors. Please review and correct carefully.
@debmontone6931
@debmontone6931 Жыл бұрын
@@PDFAutomationStation thank you it worked- is there a way to add time with date
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
@@debmontone6931 Change "mm/dd/yyyy" to "mm/dd/yyyy H:MM tt"
@jasonkirkland2121
@jasonkirkland2121 4 жыл бұрын
Awesome video. But is it possible to create a stamp that each line can be filled AFTER the stamp is placed?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Yes it is possible. However, it is extremely complex and beyond the scope of a KZbin video or article. If you would like a quote for us to create your stamp, please contact us here: www.pdfautomationstation.com/public/department6.cfm
@RamonHPabon
@RamonHPabon 2 жыл бұрын
Hello! I just discovered your very informative and useful channel. I do not have the ideal jargon, as I am not a programmer but like to try and learn when in need. I am currently working with a custom dynamic stamp that has 3 fields. The first 2 fields prompt the user to enter text that will show on the stamp (the script for these 2 prompts are currently working fine). The third field is an empty field that requests for a signature. I already tried adding the "Digital Signature" field from the "Prepare Form" menu. It works when the stamp is opened by itself. However, when I stamp the documents, and click on the field the signature process doesn't start. I’ve been told that I have to develop a script for the field (calculated), that when the doc gets stamped, the signature field becomes active (like the sign tab) so that the user clicks on the signature field and the stamp starts the signing process. Currently, I am stamping the docs and then sign the stamp using the "Certificate" tool and then digitally sign by dragging the square where I want the signature. I’ve been on this for a long time researching and trying w/o success. Can you please help me with the script I need or suggest if there's any better/easier way to solve my problem? BTW, I am using Acrobat DC.
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
Thank you for your inquiry. There are two methods to accomplish what you want and both are extremely complex so I won't go into full detail here. Not too many people know how to program these methods so it might be easier for us to provide you with a quote for your project. If you would like a quote please contact us outside of KZbin here: www.pdfautomationstation.com/public/department6.cfm Both methods involve programming the stamp to add the signature field to the document. Use the doc.addField() function to add the field. The inputs are field name, field type, page number, and rect. The tricky part is the rect (page location) as you would have to program the stamp to determine its location on the page and then do some math to locate the field relative to the stamp location. The other trick is to remember that "this" in the calculation is the document object of the stamp PDF, and NOT the PDF document being stamped. The document object of the PDF being stamped is event.source.source. Once the user stamps the document and the signature field is automatically added, the user would click the signature field to trigger the electronic signature. The 2nd method is similar to the first but additional programming is added to trigger the electronic signature automatically when the document is stamped. The JavaScript field method for triggering the electronic signature is signatureSign.
@RamonHPabon
@RamonHPabon 2 жыл бұрын
​@@PDFAutomationStation - I'll give it a try on your suggestions and come back if needed. Thank you very much!!
@nathanbeer1279
@nathanbeer1279 3 жыл бұрын
Hi, I have the below code, and i have checked the name. but when i place the stamp, no dialogue box appears for me to populate. if((event.source.forReal)&&(event.source.stampName == "#AuthPayment")) { this.getField("P/O #").value = app.response("P/O #"); this.getField("G/R #").value = app.response("G/R #"); this.getField("Job").value = app.response("Job #"); this.getField("Date #").value = app.response("Date"); this.getField("Name").value = app.response("Name"); }
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
The issue is most likely that the field names in your script do not match the actual field names in your PDF. They must match exactly, including case sensitive. Also, you should not use any special characters in your field name (like # and / ).
@PregnantWPossiblity
@PregnantWPossiblity 3 жыл бұрын
I am receiving a syntax error, 'missing ) after condition 2: at line 3. What am I missing? :-( if ((event.source.forReal) && (event.source.stampName == "#PubsStamp") { this.getField("TRNameNumber").value = app.response("TRNameNumber:"); this.getField("EffectiveDate").value = util.printd("mm/dd/yyyy", new Date()); }
@taurianlayman952
@taurianlayman952 4 жыл бұрын
Hi David, This is great, thanks. This helped me to create two different stamps. I am however trying to change the date format to display as follows - "03 AUG 2020" I had it as "dd MMM yyyy", however when applying the stamp it leaves the month as a blank space. Is there a way to adjust the script to change the month to display in caps. Thanks, Taurian
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
The month needs to be lower case like this "dd mmm yyyy". If you need the month to be upper case you would do this: util.printd("dd mmm yyyy", new Date()).toUpperCase()
@taurianlayman952
@taurianlayman952 4 жыл бұрын
@@PDFAutomationStation thanks so much, its exactly what i wanted
@megankempenich973
@megankempenich973 3 жыл бұрын
Instead of an open text box, I'd like to make it so that when the stamp is placed, it prompts the user to select one of three pre-typed options (to eliminate typos). How do I achieve that?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
You could either use a dropdown field or 3 check boxes. For both of these options you would need a popup dialog window. The scripting for dialogs is too complex for short KZbin video or article. We develop custom dynamic stamps for a fee. If you are interested in a quote please contact us with details here: www.pdfautomationstation.com/public/department6.cfm
@11122233jjjaaakkkeee
@11122233jjjaaakkkeee 4 жыл бұрын
I followed all of your steps in both creating a static stamp then making it dynamic. When i go to place the stamp, there is no prompt for user input and the other text fields don't fill in. Is there something wrong with my code? if ((event.source.forReal)&&(event.source.stampName == "#ShopDrawing")) { this.getField("Status").value = app.response("Status:"); this.getField("By").value = identity.name; this.getField("Date").value = util.printd("mm/dd/yyyy", new Date()); }
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Jake, your script looks good to me. A few things to check: 1) After you apply the stamp press Ctrl + j to see if there are any errors in the console. One of the common ones is referencing a field that does not exist due to a typo or case sensitivity issue in your field names. 2) Make sure the stamp file is in the correct folder.
@buttonface15
@buttonface15 Ай бұрын
Can someone help. I am having trouble getting the fields to come up when I apply the stamp to a document.
@PDFAutomationStation
@PDFAutomationStation Ай бұрын
Please post your script.
@buttonface15
@buttonface15 Ай бұрын
@@PDFAutomationStation this.getField("Cost Centre").value = app.response("Cost Centre:"); I did this for each of the fields I had but it came up when i entered the script but when I saved over the stamp it doesn't give me the field to enter like how whenn you saved over and yours opened mines did nothing
@buttonface15
@buttonface15 Ай бұрын
@@PDFAutomationStation var strText = this.getField("Account").value ; this.getField("Account #:").value = strText ;
@buttonface15
@buttonface15 Ай бұрын
@@PDFAutomationStation is there any way we can do a teams call or private email....because this is urgent
@PDFAutomationStation
@PDFAutomationStation Ай бұрын
@@buttonface15 Please post your script.
@ERCZ-4
@ERCZ-4 3 жыл бұрын
Thank you for the tutorial, but I have encountered a similar issue with the Script. SyntaxError: syntax error 1: line 2 Below is my script If ((event.source.forReal)&&(event.source.stampName == “#ChequeNumber”)) { this.getField(“NUMBER”).value = app.response(“NUMBER:”); } Would you please help me to take a loot at it? I tried many other brackets, but the error won't go away. Thank you so much!
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
It has nothing to do with the brackets. You can't use a word processor (like Microsoft Word) to write code. You have to use a plain text editor (like Notepad). You have curly quotes throughout your script. You need plain quotes " ", NOT “ ”.
@OCmeiwaku
@OCmeiwaku 3 жыл бұрын
this is for Adobe PRO only, you should include that in your title.
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
You need a PDF editor to create and manipulate PDFs. Adobe Pro is a PDF editor. You can still do this with Reader but since there is no interface for creating form fields (because it is a PDF "reader") you would have to use scripts to create the fields. Adobe Pro is not the only PDF editor. With all due respect we didn't think it was necessary to state in the title that you should use a PDF editor to edit a PDF but we thank you for you comment.
@OCmeiwaku
@OCmeiwaku 3 жыл бұрын
@@PDFAutomationStation As anyone can make a stamp (except for Dynamic ones) in Adobe Reader it would seem to be an important detail to include .
@Salni
@Salni 3 жыл бұрын
How can I combine two app.responses so there is only one window where I can type in those two things?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
You have to use the app.execDialog function which allows unlimited fields and several different field types including text, dropdowns, check boxes, and radio radio buttons. The scripting for these popup dialog windows is much too complex for a quick KZbin video or short article. If you would like a quote for us to program your stamp for you please contact us offline here: www.pdfautomationstation.com/public/department6.cfm
@MK-sx9rg
@MK-sx9rg 4 жыл бұрын
Hi Dave, I have a question. Is there anyway to have add this ability to edit the stamp after entering all values? Right now I have dynamic stamp which after stamping and entering all values that the app response asks, it will printed on the pdf page. now i want to edit one of the values. but I can not. I have to delete the stamp and start the process from scratch again. Is there anyway to add this ability to edit the stamp after printing on the page? thanks.
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Yes. This is going to be a lengthy answer. We have developed what we call "editable" dynamic stamps and there are a couple of ways we can do this. Firstly, we only use the app.response function when there is only one user input. It is annoying to users to have to dismiss multiple windows when applying the stamp and not be able to see what they have typed in the previous field until the stamp is completed. We usually use popup dialog windows. Here is an example: kzbin.info/www/bejne/b3bGhnhugMuYmck Unfortunately dialogs are much too complex to program for a quick KZbin tutorial. If you want to try, lookup the app.execDialog function in the Adobe JavaScript Reference. Back to the editable part. Up until now, our editable stamps have required users to re-apply the stamp when editing (without deleting the previous stamp). The dialog window field values would default to the values in the first stamp so users could change whatever they need to change and the stamp would automatically replace the first stamp. Here is an example: kzbin.info/www/bejne/oGfLiJp3gNJ1asU We do not share our proprietary code for this as it gives a huge competitive advantage in our dynamic stamp business. One of the problems with this method is that it is only good for one stamp of the same type per document. In other words, it doesn't allow users to apply and edit multiple stamps of they same type in the same document. That has recently changed. We have developed a feature that allows users to apply the same stamp multiple times in the same document, select any one of the stamps, and edit the inputs for the particular stamp that has been selected. This is yet another leading-edge break-through for us and we will not be sharing the coding behind it. If you subscribe to this channel, follow us on Twitter, or subscribe to our newsletter we will be uploading a video demonstration in the weeks to come. If you have a stamp project that you would like us to quote, please contact us here: www.pdfautomationstation.com/public/department6.cfm
@alicetherrien7754
@alicetherrien7754 4 жыл бұрын
I followed all the steps you mentioned. However, nothing happens when I insert the stamp, no identity or date or amount pop-up. What can it be. Is there something in Acrobat that needs to be set to enable for javascript to work properly?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
If you have any errors in your script it won't work. Press Ctrl + j after you apply the stamp to see if there are any errors in the console.
@MichaelGreen831
@MichaelGreen831 2 жыл бұрын
Very nice videos. I'm having two weird effects: 1. the null script in format custom isn't working. I still get null for the displayed values. if(event.value=="null") {event.value=""} 2. the size of my stamp is much larger than yours. It's about 4"/3" and I have to reduce it every time. Is there a way to have the stamp come in smaller?
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
The size depends on the size that you created. It should be the exact size. Is the null script in the custom format location?
@MichaelGreen831
@MichaelGreen831 2 жыл бұрын
@@PDFAutomationStation 1. Size: I thought so, so I created a new file / template based on a flattened copy of the original and with ruler turned on in the new file, reduced the size before cropping. No effect, both stamps, old and new, come in at the same (over) size. 2. Null: Yes. I select the field, I choose the format tab, I select custom from the dropdown and then populate the script in Custom Format Script box.
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
@@MichaelGreen831 1. Is possible the zoom is different from the file you created vs the file you are stamping? I have never seen a discrepancy in the size when using a .pdf file to create the graphic. Try this: stamp a blank stamp on a blank PDF page. Resize the stamp. Use that file to create a new stamp. 2. Please contact me here and I will take a look at your file: www.pdfautomationstation.com/public/department6.cfm
@Myrslokstok
@Myrslokstok 2 жыл бұрын
Thanks for the best tutorial, but my stamp dosn't update. I do not have Administration rights to the folder. My IT department helpt me to put the file in the right folder. I used the # at the begining of the name. When I test it out with the JS-console I get: [object Template="#myTestStamp=My Test Stamp"] But It dosn't update dynamicly when used.
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
Please provide your full script.
@Myrslokstok
@Myrslokstok 2 жыл бұрын
@@PDFAutomationStation Adobe actually instructed me to reinstall alla my Adobe programs, I watched your videos and some more and it actually now works without the need for having the dynamic stamp in the "Application" folder witch I do not have access to. So great thanks for all the support. I now asked the question about "flattening" the stamp from the JavaScript, so it might work a bit more like Signing the document, but that I don't have to use both. It is not super important, it is internal working documents so I doubt anyone would realy care but it would be a nice thing.
@conniewhitehouse.arteaga2910
@conniewhitehouse.arteaga2910 2 жыл бұрын
Does anybody know why I get the following error: NotAllowedError: Security settings prevent access to this property or method. Identity.name:3:Field Entered By:Calculate
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
The identity property is privileged. If you don't create the condition for a stamp [ if(event.source.forReal) ]you will see that when you program the calculation field. It should be accessible during the stamping process.
@chrisanderson1702
@chrisanderson1702 11 ай бұрын
I am really struggling with this. I am running Windows 10 Pro and Adobe Acrobat 9 Pro. I need to create a stamp that will automatically date at the time of stamp and then have a field that I can input information after the stamp. I am obviously doing something wrong. any ideas from anyone?
@PDFAutomationStation
@PDFAutomationStation 11 ай бұрын
Exactly which part are you struggling with? The video shows both how to stamp an automatic date as well as how to enter text into a stamp field.
@chrisanderson1702
@chrisanderson1702 11 ай бұрын
Hi David, I am so sorry for wasting your time. I went through everything carefully and found that I had a space and a few lower case letters where I should have had upper case letters. Thank you so much for your response, all works ok now.
@PDFAutomationStation
@PDFAutomationStation 11 ай бұрын
@@chrisanderson1702 I'm glad it works now. JavaScript is case sensitive and 9 times out 10, when I ask somebody to send me their script after an "it doesn't work" comment on KZbin, it is either the wrong case in a letter, or some other typo. -David Dagley, CEO, Forms Doctor Inc.
@kirastrange5526
@kirastrange5526 3 жыл бұрын
How do I stamp the dynamic stamp over multiple pages without having to re-fill the fillable fields each time?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
We created a tool for that: www.pdfautomationstation.com/products/item13.cfm
@KurtReckerAdvertising
@KurtReckerAdvertising 3 жыл бұрын
Thank you for this great tutorial; my script debugger won't execute the prompt. I tried scrolling through this thread and a Google search and seemingly I'm the only one with this issue? I'm using Acrobat Pro DC
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
I'm not sure what you mean by your comment. The script needs to go into one of the fields in your stamp.
@KurtReckerAdvertising
@KurtReckerAdvertising 3 жыл бұрын
@@PDFAutomationStation I'm struggling to work the debugger to find the StampName
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
@@KurtReckerAdvertising What script are you running and what does the debugger return when you run the script?
@KurtReckerAdvertising
@KurtReckerAdvertising 3 жыл бұрын
@@PDFAutomationStation i figured it out by going back to your earlier tutorials--- thanks for your help, it works!
@ssandhyaprabhu
@ssandhyaprabhu 5 жыл бұрын
Hi David How do i get more than one input from the user for example using it for coding invoices in accounting?
@PDFAutomationStation
@PDFAutomationStation 5 жыл бұрын
You create a popup dialog. Look up app.execDialog in the Adobe javascript reference.
@mikey0480
@mikey0480 4 жыл бұрын
how would i add a 90 day date window for a stamp ??? kind of like an expiration date? for instance today is 1/6/2020 add 90 days to this date?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Using the example in the video for date field, change the date part of the script to the following: var date= new Date(); date.setDate(date.getDate()+90); this.getField("Date").value = util.printd("mm/dd/yyyy",date); You can also change the 90 above to any number of days.
@daniellewalsh6970
@daniellewalsh6970 4 жыл бұрын
I tested my stamp and got the code to work and then went to save it and it wanted me to rename it and locate a folder to put it into. In your video it seemed to allow it to save it to the original file without any problems. Any suggestions?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Save it somewhere else, like to your desktop. Then close it and drag it into the stamps folder and overwrite the old file.
@daniellewalsh6970
@daniellewalsh6970 4 жыл бұрын
@@PDFAutomationStation that seemed to work! Thanks!
@MK-sx9rg
@MK-sx9rg 5 жыл бұрын
Hi, How can I use a dynamic stamp that I created for myself for another computer or account? I made one for myself based on your tutorial video. Now I want to give it to my coworkers. I tried to copy-paste the stamp file from my Roaming folder to another computer Roaming folder but the software did not recognize it (did see the stamp in stamp tool in the Adobe). I have to do it for about 20 computers and takes a long time to create a stamp then make it fillable and code everything. Do you have any solution? Milad
@PDFAutomationStation
@PDFAutomationStation 5 жыл бұрын
If the stamp works on your computer and you copy the stamp file to the correct folder on the other computer it should work on that computer as well. Ensure javascript is enabled on the 2nd computer.
@MK-sx9rg
@MK-sx9rg 4 жыл бұрын
@@PDFAutomationStation Thank you so much. It worked perfectly. thanks for the help and quick response.
@benjaminlaine8132
@benjaminlaine8132 3 жыл бұрын
Is there anyway to add a field to the stamp without causing it to lose transparency? Whenever I attempt this process it saves the file with a white background instead of keeping the background transparent?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
Make sure the field fill color is set to "no color".
@benjaminlaine8132
@benjaminlaine8132 3 жыл бұрын
​@@PDFAutomationStation I realized the issue was that I created stamp using adobe's built in tool, so when I tried to use the "prepare form" tool it was flattening the whole image and the white background became embedded in the stamp. I tried creating the stamp using the method from your previous video and the transparency was preserved.
@joshuadlamini7382
@joshuadlamini7382 5 ай бұрын
Hi, I've just spent 6 hours trying to figure out what could the problem causing this. It's simply the procedure of flattening the fields. In this video, David doesn't do it and the image loses transparency once you add a field (and the includes the script field itself). The solution is just to add the flattening function below your getField ('Date') function: if ((event.source.forReal)&&(event.source.stampName == "#TestStamp")) { this.getField('Date').value = util.printd("yyyy -mm- dd", new Date()); this.flattenPages(); } Gee.....What a headache
@benjaminlaine8132
@benjaminlaine8132 3 жыл бұрын
David, what would be the correct script for the console if I wanted ONLY the custom input field to pop up with the sticker? I tried to copy your script verbatim except for the line for "Approved" and "Date" but it told me line 3 condition was incomplete. Appreciate your swift response on the other question
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
I don't understand what you are asking me. The script should be in a calculation property of a field, not in the console. If your script has an error I would need to see the script.
@benjaminlaine8132
@benjaminlaine8132 3 жыл бұрын
@@PDFAutomationStation I mispoke, I was referring to the calculation field (this is my first foray with javascript). I'm trying to make it so that when I paste the stamp I get a popup for a user input. The script I entered was: if ((event.source.forReal)&&(event.source.stampName == "#PaidStamp") { thisgetField("Amount").value = app.response("Amount:") } and I get the error message "SyntaxError: missing ) after condition 2; at line 3
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
@@benjaminlaine8132 2 Errors: You are missing a closing bracket at the end of "#PaidStamp". You are missing the period between this and getField. Should be this.getField.
@benjaminlaine8132
@benjaminlaine8132 3 жыл бұрын
@@PDFAutomationStation THANK YOU SO MUCH! At 7:30 you state the script would be different if you did it in the individual field. What would the change be?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
​@@benjaminlaine8132 If you reference the field that the script is in you have to change "this.getField(field name)" to "event". That is, event.value instead of this.getField(field name).value
@bobatea1686
@bobatea1686 4 жыл бұрын
Hi there. What would the script be for just the auto populating todays date? Very new to this thanks!
@bobatea1686
@bobatea1686 4 жыл бұрын
I have tried this in the Acrobat JavaScript editor but get an "syntax error: illegal character " if ((event.source.forReal)&&(event.source.stampName == “#MyTestStamp”)) { this.getField( “Date ") .value = util.printd("dd/mm/yyyy” , new Date()); }
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
The line of code starts at 5:48 of the video.
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
@@bobatea1686 You are using curly quotes. You must use straight quotes. Do not paste from a word processing program like Microsoft Word. Use a plain text editor like Notepad.
@bobatea1686
@bobatea1686 4 жыл бұрын
@@PDFAutomationStation Thanks! I got it working!
@leannsmith3580
@leannsmith3580 4 жыл бұрын
Will the date update each time it is opened? I need a date field that updates each time its open. Is that possible?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
Yes. If you follow the date script in the video it will stamp the current date each time the stamp is applies.
@jacquieheritage2245
@jacquieheritage2245 5 жыл бұрын
Hi David, I must have missed something but I don't know how to find the script in the text file? What do I do to get that?
@PDFAutomationStation
@PDFAutomationStation 5 жыл бұрын
You have to create it yourself in Notepad. Open a new Notepad file, pause the video, and type what you see on the screen.
@jafeenak.s7928
@jafeenak.s7928 5 жыл бұрын
Is there a way to add the newly created stamp to Quick tool bar?
@PDFAutomationStation
@PDFAutomationStation 5 жыл бұрын
Yes. You would have to create an add-on toolbar button using the app.addToolButton function and then call the stamp using the addAnnot function. It is pretty complicated. If you need a quote please contact us here: www.pdfautomationstation.com/public/department6.cfm
@jefflasco5992
@jefflasco5992 4 жыл бұрын
Hi David, none of the console scripts run on my machine. I am using Adobe Pro Extended. Your version looks a bit different then mine, but the commands should work, Correct?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
What happens when you run a script? Are you running the scripts correctly (pressing the Enter key on your number keypad, or press Ctrl + [the regular Enter key] if you don't have a number keypad)?
@jefflasco5992
@jefflasco5992 4 жыл бұрын
@@PDFAutomationStation I was able to finally get the name, I was hitting wrong enter key. I have followed this and the previous videos to a T. but I am not able to get he script to run when I stamp. I copied your code EXACTLY and it will not apply date or get identity, the Amount prompt will not even come up.
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
@@jefflasco5992 Jeff, let's take this offline. Please click here www.pdfautomationstation.com/public/department6.cfm and message me and I will reply by email.
@nigelhobden
@nigelhobden 4 жыл бұрын
Hi David, In order to create custom stamps with some JV to add page numbers & dates, do I need to have the pro version or can I do this with standard free reader dc that has a stamp creation utility? many thanks
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
In order to insert javaScript into a dynamic stamp you need to add form fields to the stamp and then add the script to the calculation tab of one of the fields. This is usually done using Acrobat Pro. Form fields can be created in Reader by running a script in the console using the doc.addField function and then calculations inserted using the setAction function if you know what you're doing. We have a free tool to open the console in Reader, which can be downloaded here: www.pdfautomationstation.com/members/programs/fileinfo.cfm?id=29
@nigelhobden
@nigelhobden 4 жыл бұрын
@@PDFAutomationStation Many thanks, now I just need to learn JS to create this, lol or just get Pro to use the inbuilt forms facilty.
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
@@nigelhobden Or you can contact us and ask for a quote. Best prices on the web for dynamic stamps: www.pdfautomationstation.com/public/department6.cfm
@francebarbeau699
@francebarbeau699 4 жыл бұрын
Hi David, I have the same problem as Cathy Sechrist, I am getting a syntax error. missing ) after condition 2: at line 3. I'm using Adobe Acrobat Pro XI. This stamp would be very useful to me, please help. Thank you
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
That means you are missing a closing bracket ) at the end of the condition.
@francebarbeau699
@francebarbeau699 4 жыл бұрын
@@PDFAutomationStation if ((event.source.forReal)&&(event.source.stampName == "#ComptFB") { this.getField("Nom").value = identity.name; this.getField("Date").value = util.printd("dd/mm/yyyy", new Date()); this.getField("Journal").value = app.response("#Journal"); }
@francebarbeau699
@francebarbeau699 4 жыл бұрын
@@PDFAutomationStation I have tried all possible combination of brackets and none worked
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
@@francebarbeau699 You must have a closing bracket ) for every opening bracket (. In your first line you are missing a closing bracket at the end of the line.
@francebarbeau699
@francebarbeau699 4 жыл бұрын
@@PDFAutomationStation Thank you, it works, when you were showing the script in your notepad, the view did not show the 2nd bracket, but we see it when you paste it later on in the video. Thank you for your quick response, I appreciate it.
@danielallmon2173
@danielallmon2173 Жыл бұрын
Anyone know of a resource that can assist with creating a stamp with fields that allow the user to enter data not from the dynamic menu? I'm trying to create a stamp to approve invoices. Most of the information is easy (name, date, etc.) I've even created a separate stamp for each project number/cost center. It's the PO that changes every time. I've been having to add a text box over the stamp then flatten. Almost as much work as printing, signing, and scanning, but I aspire to remain as paperless as possible. At this point, I'll pay someone if they can make this stamp for me.
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
I'm sure what the purpose of "not from a dynamic menu" is. Perhaps you need an editable stamp like this: kzbin.info/www/bejne/oGfLiJp3gNJ1asU You learn about all the capabilities of dynamic stamps by downloading the paper in the description above. We also have a link in the description to get a quote for us to program your stamp. Please contact us: www.pdfautomationstation.com/public/department6.cfm
@raymondeldermayeriii8242
@raymondeldermayeriii8242 3 жыл бұрын
I'm not getting the pop up for the input
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
The most common mistake is a mispelling of the field name. The field name in the script must match the actual field exactly, including case sensitive.
@raymondeldermayeriii8242
@raymondeldermayeriii8242 3 жыл бұрын
@@PDFAutomationStation Love your KZbin channel. Lots of great information. Thanks for the Reply it ended up having to add an extra event.source if (event.source && event.source.forReal && (event.source.stampName ==
@merpmerp5059
@merpmerp5059 2 жыл бұрын
Hi Dave. I tried creating a stamp that just says "entered" at the top, and wanted to have the stamp auto populate the date. I tried 2 different scripts; the one you did in your video, and one listed on adobe's website. I'm using adobe pro dc if that matters. 1. if((event.source.forReal)&&(event.source.stampName == "#Entered")) { this.getField("Date").value = until.printd("mm/dd/yyy", new Date()); } 2. event.value = until.printd("mm/dd/yyy", new date); Neither the way you showed in your tutorial and the version adobe lists on their website will populate the date when i add the stamp to any new pdf. are you able to help? Thanks!
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
The second script is incorrect and won't do anything. Use the first script but change "until" to "util".
@merpmerp5059
@merpmerp5059 2 жыл бұрын
@@PDFAutomationStation Thank you for your quick response!! so i deleted the previous stamp from adobe, made the changes you suggested and re did the steps to upload a new stamp and it still doesn't generate any date when i stamp. any suggestions ?
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
@@merpmerp5059 Please contact me outside of KZbin here www.pdfautomationstation.com/public/department6.cfm and I'll reply by email so you can send me your file.
@StarlightDreamer12
@StarlightDreamer12 2 жыл бұрын
Thank you for this and the other video about making a stamp! This was so helpful! This is pretty much exactly what I needed to do with stamps! I do have one question. I'm doing multiple "app.response" lines: this.getField("RecSealed").value = app.response("Received Sealed?"); this.getField("Mail").value = app.response("Mail?"); this.getField("SentTo").value = app.response("Sent to:"); Right now, they pop up one at a time. Is there a simple way for them to be combined in one pop-up, or is that beyond the purview of this? I apologize if this is a stupid question. I don't know JavaScript at all.
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
I'm glad you found the video helpful. We don't use the app.response function if there is more than one response. As you stated, we combine them into one popup using app.execDialog function. Unfortunately, this method is far from simple and is too complex for a quick article or KZbin video. If you would like a quote for us to program the stamp for you, please contact us here: www.pdfautomationstation.com/public/department6.cfm
@jenborder3060
@jenborder3060 3 жыл бұрын
Is there a tutorial on how to share this stamp with others?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
No but all you have to do is send the PDF file to them and have them copy it to the user stamps folder.
@Samantha0207
@Samantha0207 3 жыл бұрын
Having difficulty saving the stamp i created as a template in adobe professional 8.0... anyone know how? thanks!
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
Professional 8 was so long ago that I can't remember how. But you can use a script to create a template. Run the follow script in the console: this.createTemplate("Name of your template", 0); Replace "Name of your template" with the actual name you want. 0 is the zero based page number so in this case it is the first page.
@Samantha0207
@Samantha0207 3 жыл бұрын
@@PDFAutomationStation Thanks so much for the reply!! I think it worked -->[object Template="My Test Stamp"] :D
@Samantha0207
@Samantha0207 3 жыл бұрын
Sorry, another question... here is the code I'm trying to use: if ((event.source.forReal)&&(event.source.stampName == "#MyTestStamp")) { this.getField("Work").value = app.response("Work Order:"); this.getField("Date").value = util.printd("mmm dd, yyyy", new Date()); } but when I test applying my stamp in a blank pdf, just the stamp comes up. Not really sure what could be going on?
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
@@Samantha0207 The template needs to have an equal sign in it to signify the stamp name. For example "#MyTestStamp=MyStamp".
@Samantha0207
@Samantha0207 3 жыл бұрын
@@PDFAutomationStation I really appreciate your responses! I've tried a few different combinations and still am stuck... if I run this.templates [object Template="#MyTestStamp = My Test Stamp"] so I input the "#MyTestStamp = My Test Stamp" into my script: if((event.source.forReal)&&(event.source.stampName == "#MyTestStamp = My Test Stamp")) { this.getField("Work").value=app.response("Work Order:"); this.getField("Date").value=util.printd("mmm dd, yyyy", new Date()); } and still nothing. :( I've even tried removing the spaces in the name like this: if((event.source.forReal)&&(event.source.stampName == "#MyTestStamp=MyTestStamp")) { this.getField("Work").value=app.response("Work Order:"); this.getField("Date").value=util.printd("mmm dd, yyyy", new Date()); }
@gailfisher6264
@gailfisher6264 2 жыл бұрын
Got a error message on the create and Edit JavaScripts - SyntaxError: missing) after condition 2: at line 3 My scripts is the following - if ((event.source.forReal)&&(event.source.stampName == "#MyTestStamp") { this.getField("Approved").value = identity.name; this.getFeild("Date").value = util.printd("mm/dd/yyyy", new Date ()); } thanks
@PDFAutomationStation
@PDFAutomationStation 2 жыл бұрын
You are missing a closing bracket ) at the end of your first line.
@missinmtl
@missinmtl 3 жыл бұрын
I can't get the stamp name. It says "null".
@PDFAutomationStation
@PDFAutomationStation 3 жыл бұрын
Which method are you using to get the stamp name.
@missinmtl
@missinmtl 3 жыл бұрын
@@PDFAutomationStation I solved it by going to your other video and creating a template. I had tried both method and one gave me a null, the other the stamp name wasn't working. Creating the template solved it. Thanks for your reply though :)
@brentcallender5786
@brentcallender5786 4 жыл бұрын
Instead of amount i would like to write project number and let our employees input that value. Does anybody know how i would write that code ?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
It's no different except for the description in the response popup: app.response("Project Number:").
@brentcallender5786
@brentcallender5786 4 жыл бұрын
@@PDFAutomationStation thanks alot !!!! Im not a programmer im just trying to develop this dynamic stamp for us to use on our invoices !!! I got it to work thanks to your video (Y) GREAT STUFF !!!
@kateannbaja5619
@kateannbaja5619 Жыл бұрын
in my case there is no script in javascript, anyone can help me?
@PDFAutomationStation
@PDFAutomationStation Жыл бұрын
What does that even mean? Can you please be more specific?
@Ecualogic
@Ecualogic 4 жыл бұрын
Hi Dave, I have viewed both of the videos, creating stamp from scratch, and make a dynamic stamp. I am having a syntax error at the line that has the character { it says illegal character at that line where the { is at. I have the this.getField....... lines for each of the responses I want for the user to enter in the stamp. I followed the syntax you showed on the video, but for some reason, I am getting the syntax error at that special character. Please help me.
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
It sounds like you used a word processor like Microsoft Word to write you script. Did you?
@Ecualogic
@Ecualogic 4 жыл бұрын
PDF Automation Station yes
@Ecualogic
@Ecualogic 4 жыл бұрын
PDF Automation Station I have copied it to notepad and copy and pasted from notepad to adobe custom calculate
@Ecualogic
@Ecualogic 4 жыл бұрын
PDF Automation Station by the way, thank you very much for responding so fast, really appreciate it.
@Ecualogic
@Ecualogic 4 жыл бұрын
PDF Automation Station figured out the problem. It was “ the quotes, it had opening and closing “ quotes. Changed them in notepad and it accepted in the calculate box.
@kristinerobinson5593
@kristinerobinson5593 4 жыл бұрын
Is there a way to get the script to run if the user doesn't have Adobe DC?
@PDFAutomationStation
@PDFAutomationStation 4 жыл бұрын
The script will run with any Adobe PDF viewer: Reader, Acrobat Reader DC, Acrobat Professional, Acrobat Pro DC, Acrobat Standard, Acrobat Standard DC
@kristinerobinson5593
@kristinerobinson5593 4 жыл бұрын
@@PDFAutomationStation Thanks, it worked after a reboot - not sure why it didn't work automatically! Wonderful video and assistance. I have been wanting to do something like this for over a year but didn't take the time to research. I will save a tree or two with this!
How To Create A PDF Stamp From Scratch
12:53
PDF Automation Station
Рет қаралды 97 М.
How to Create Dynamic PDF Stamp with Popup window in Adobe Acrobat
12:30
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 45 МЛН
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 1,4 МЛН
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 8 МЛН
About Acrobat Automation
18:17
PDFScripting
Рет қаралды 15 М.
AMD Ryzen 7 9700X vs. 7700X: 40+ Game Benchmark [23H2 vs. 24H2]
26:24
Hardware Unboxed
Рет қаралды 155 М.
Adobe Acrobat DC Dynamic Stamp Tutorial
7:34
Aleph Zero
Рет қаралды 148 М.
How To Make A Transparent PDF Signature Stamp
7:02
PDF Automation Station
Рет қаралды 353 М.
PDF Form Field Scripting Basics
16:28
PDFScripting
Рет қаралды 67 М.
Acrobat Tutorial - Creating custom dynamic stamps
7:35
LinkedIn Learning
Рет қаралды 83 М.
How Top Populate Multiple Fields From One PDF Dropdown
9:45
PDF Automation Station
Рет қаралды 39 М.
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 45 МЛН