Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I have 36 Adobe documents with roughly 2500 pages in each one of them. I need to export the pages out of each one of those documents based on a list of identifiers I have in an excel sheet that would show up on the pages in the pdf. Please help
I'm having some issues with this script. I've used it successfully, but slightly different than this version. I have confirmed each checkbox has a export value, but I can't get it to display the checkboxs' export value within the text field I have it assigned to.I'm using this in the "custom calculation" section:var ybl = this.getField("Length.Youth").value ;var abl = this.getField("Length.Adult").value ;if(ybl <= 31) { event.value = (ybl.value) ;}if(abl >= 32) { event.value = (abl.value) ;}
Hello,I am trying to create an employee evaluation form. I'd like the calculated field to be the sum of the check boxes then divided by the total number of categories (6). Eachcheck box has the appropriate export value according to the rating (1, 2, 3, 4, 5).So if an employee was rated all 5s across the 6 categories they would average out at a 5. (5 rating x 6 categories / 6 categories). Any help on how to accomplish this would be appreciated. Thanks in advance!
Believe or not but I couldn't find the answer. I have two fields. Field1 and Field2. Field1 calculates. If and when Field1 is populated then I would like to show and populate Field2 with a phrase, not the total from Field1. Then if Field1 is not populated then to hide and reset Field2. Can someone help me solve this? Thank you all.
I currently have an 8 page PDF form and at the end of the document I would like to have a button that would export / save, as one long PDF page. Is this a possible?
I have a submit button on the form I'm creating. 1) After researching various examples, I have the following JS set up:var emptyFields = [];for (var i=0; i<this.numFields; i++) { var f= this.getField(this.getNthFieldName(i)); if (f.type!="button" && f.required ) { if (f.valueAsString==f.defaultValue) emptyFields.push(f.name); }}if (emptyFields.length>0) { app.alert("Error! You must fill in the following fields:\n" + emptyFields.join("\n"));}It seems to be working but it still allows the document to be sent by email after clicking OK on the warning window. Any ideas on how to fix that? Ideally, I would like the user to be returned to the form to finish completing the document.2) Is there a way to send the form in a read only format without changing it for the user? I'm noticing in my tests that when I have t
Hello All,I am attempting to create a simple dialog box with a dynamic number of checkboxes. My goal for the dialog box is to take a number the user selects beforehand (in a separate dialog) and create that many checkboxes. I can successfully prompt the user to enter the number of checkboxes desired, but I'm having difficulty looping through the "initialize" and "description" properties of the dialog box to create the desired number of boxes.Any help you all could provide would be appreciated.Thanks in advance.
This should be pretty easy. I made a drop down with rather long entry listings. The selection from the drop down shows into a text field (multi-line). What I wanna do is control how the text flows in the text field. I wanna break the line of text where I want it to break to the next line. In essence making a double space or single. I've tried placing the \n and \r in the drop down listing but that didn't do anything. So, I was wondering how that would be done (or even if it's possible). Can someone help me figure this out? It's driving me a little more nuts. Thanks.
Hello all, I really hope someone can help me with this issue. (I'm not a hugely well-educated javascripter, so please feel free to assume zero knowledge in your responses...)(I'm running Acrobat DC)I have a form that contains a LOT of fields. the form is called "front.pdf". The fields are arranged on it in 32 rows of sixty fields (I know: that's a LOT!). Each field is named as follows:A.01, A.02, A.03, A.04 ... up to ... A.59, A.60B.01, B.02, B.04 ... => ... B.59, B.60The rows go up to Z, then AA, BB up to GG. (All rows go from 1–60)There is another pdf form, called "back.pdf" that is attached (as an attachment) to the first. It contains the same amount of fields, named exactly the same way, the only difference on this one is that the rows run from 60 down to 1 rather than from 1 up to 60.Each cell, on both forms, will have a value that is either empty: ("",) or the lowercase letter Z: ("z").I'm trying to write a script that, when attached onMouseUp to a button on the parent pdf (fr
Acrobat DC Pro on Win 10 Pro.I have created a dynamic stamp and called the file "Receipt.pdf". I want to use it to signify that my invoice has been paid by my client.There are two text fields, one above the other, the first to show the current date and the second field I want to generate a dialogue for me to insert particulars of the payment, e.g., a cheque number or other identifier.When I apply the stamp to the pdf invoice, the date field works fine, but no dialogue is generated. So the stamp appears with the current date and a blank space beneath it.The "custom calculation script" for the date field is:event.value = (new Date()).toString();AFDate_FormatEx("dd mmm yyyy");The script for the dialogue field is:var cAsk = "Enter Receipt Details" ;var cTitle = "Receipt Details" ;if(event.source.forReal && (event.source.stampName == "#Receipt")){ var cMsg = app.response(cAsk, cTitle); event.value = cMsg; event.source.source.info.exhibit = cMsg;}I am ignorant about
I am moving value ‘x’ to a combo box field. If the value ‘x’ does not exist in the combo field, will it trigger some sort of value that can be used to determine ‘x’ does not exist in the combo box field?var x = “ABC123“;this.getField(“Combo Box-myfield”).value = x;
Hello everyone, I'm trying to create a group of fields that would have pre-populated text in the export value. Then combine those fields into one, which would make a complete sentence (or paragraph) of those field values. For example, Field1 would have "We propose to install". Then in Field2 would have the (total footage) "of 8' high CLF". In Field3 would have the total footage then "8' high WIF". In Field3 would have pretty much the same but this would be "of 8' high Wood Fence". Giving me the choice to show/hide the particular fields.Is this something that can be done using javascript? I don't know enough but I'd like to learn. Or, does anyone know of a way to accomplish something like this in a PDF. I'd like to create a short cut to be able to put the combinations into a job description. If you can show me how to create the first one, then I can do the rest. Thank you all so much.
in my digital forms using pdf expert on ipadi have ( submit by email ) button with mailDoc, mouse up run JavaScript actioni added another mouse up actionif(this.getField("CAP1Signature").value !=""){this.getField("CAP1Signature").readonly = true;}////if(this.getField("CAP1Signature").value =""){this.getField("CAP1Signature").readonly = false;}to make the a signature field is readonly if the field is already signedand (not) if the field is still blankto ensure that the file will send with readonly signatureand also make a chance for the user if he forgot to sign before click on the buttonmy script is working half or the other halfi tried alsoif(this.getField("CAP1Signature").value !=""){this.getField("CAP1Signature").readonly = true;}else{this.getField("CAP1Signature").readonly = false;}i got the same resultany help please !?thank you in advance
Hello everyone, I am new to using Acrobat. I have ten (10) pages named page 1 through page 10. I'd like to have page 1 have a drop down box and a button. The drop down box would have number 1-5.A default selection in drop down box would be 1. The default setup for the PDF would be pages 1-4. I would like it if the user selects number 2 from drop down box, then I would like page 5 added to PDF. If user selects value 2 from drop down box then page 6 would be added to PDF.If user selects value 3 from drop down box, then I would like page 7 added.To be clear...the default setup would be pages 1-4 visible. Pages 6-10 as non-visible. Then depending on selection an additional page (from page 5 to 10) would be added to PDF.Also I would like after user picks number 1-5 from drop down box that the user has to press the button to actual have the above action to happen.And if possible I would like a selection to delete or hide a selection made an error. Like if they wanted to select value number 2
I am needing some help creating a script for an vehicle order form I am working on. Below is the file I have (please do not mind the deleted section as I could not share it online).The form needs to be able to do the following ...If I check a few boxes on Page 1 (like Ford Ranger and 4x4 option, the Estimated Monthly Lease cost for each -"MC_Truck1 "and "MC_Option_Truck1" which are hidden text fields with numbers) of those boxes will sum up and appear on Page 2 (the "Monthly_lease_value" text field) as a total of the boxes selected.I read a thread similar to what I would like to like to use here: Conditional sum field with checkboxes.,but I have tried may ways to adapt the JavaScript to meet my needs with no luck. Second, I would like to know if I can do the same with words... where If I check a few option boxes on Page 1 (like Meyers Plow option and Salt&Sand option, the hidden text fields -"TF_Option_Plow "and "TF_Option_Sand&Plow" with words) will appear on
I setting up a pdf using DC Pro. I have a drop down box “A” with a list of DODAACs alphanumeric box and if you select a DODAAC the text box “B” will reflect the corresponding Unit Name of that DODAAC. I have this script but I have over 30 DODAAC and units and I keep getting an error “SyntaxError missing ) after condition 21:at line 22”All lines are exactly the same format, only difference is the DODAAC and Unit Name.if (event.value=="W90WQ1") this.getField("Unit") .value = "7th MSC"; else if (event.value=="W90Z6S") this.getField("Unit").value = "361ST CA BDE"; else if (event.value=="W58193") this.getField("Unit").value = "457TH CA BN"; else if (event.value=="W9111P") this.getField("Unit").value = "457TH A / CO"; else if (event.value=="W9111L") this.getField("Unit").value = "457TH B / CO";else if (event.value=="W9113R") this.getField("Unit").value = "457TH C / CO";else if (event.value=="W91Z4A") this.getField("Unit").value = "457TH D / CO"; else if (event.value=="W90WQ4") th
How to create custom Page Thumbnail Menu item. It should be visible on right click on Page Thumbnail and the Javascript should be executed on click
Hi there my question is to save a pdf form to JPEG image by a button on the form ? with script of any other option.regardsam
I have the following script in my "Documents JavaScript." It is my understanding putting the script in "Documents JavaScript." should cause the script to execute each time the document is opened.The intent is to look at three fields in a specific row... if all are $0.00 and a date has been put in the date field for that row, then remove the date. If any one of the three checked fields has a value >$0.00 then leave the date. The field is defaulted to currency, thus the Dollar sign. I have tried both with and w/o the "$." This is repeated 8 times as there are a possible 8 rows all with the fields as noted in the script.This is not working on testing. What am I missing or is this not going to work as is?var v1 = this.getField("FUEL COST TOTAL1").value;var v2 = this.getField("REEFER COST TOTAL1").value;var v3 = this.getField("DEF COST TOTAL1").value;var v4 = this.getField("DATE_FS1").value;var v5 = this.getField("FUEL COST TOTAL2").value;var v6 = this.getField("REEFER COST TOTAL2").valu
I have a form related to contracts. There are two fields for the contract terms: start date and end date.My wish for the validation of these two fields:1) That users are alerted to enter a start date before they enter an end date2) That users are alerted to correct the end date if it comes before the start dateHere was my attempt:event.rc = true;if (event.value) { var startDateString = this.getField("StartDate_af_date").value; if (startDateString=="") { app.alert("You must first fill-in the contract start date."); event.rc = false; } else { var startDate = this.getField("StartDate_af_date").value; var endDate = event.value; if (endDate>startDate) { app.alert(
I have a text field (named DeptEmail), which automatically populates based on the selection from a dropdown field. I want the text from DeptEmail to added as a CC when the submit form button is selected.My inspiration came from the following link: https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address and my current JavaScript looks like this:// This is the form return email. It's hardcoded// so that the form is always returned to the same address.// Change address on your form to match the code belowvar cToAddr = "email@email.com";//Now get the CC email address var cCCAddr = this.getField("DeptEmail").value;// Set the subject and body text for the email messagevar cSubLine = "CRT Submission";var cBody = "This CRT and attachments are hereby submitted.";// Send the entire PDF as a file attachment on an emailthis.mailDoc({bUI: true, cTo: cToAddr, cCC: cCCAddr, cSubject: cSubLine, cMsg: cBody});The button works on every level EXCEPT it does not add the CC
How to Use ActiveX Control in Acrobat Plugin?
Hello, I was testing the sample with the given test folder. It had a htm file in it and also a txt. When I rid of the filter in plugin and ran the plugin in Acrobat, it could not convert the txt and htm files into PDF. Is there any way to do so for these file types?
I want the selection of a dropdown field to change another field based on it's selection....for example, if I select Administrative Services, I want contact info for that selection to populate other fields. After tons of research, trial, and error, I'm close but the code only works if the selection is one word, such as Accounting. How can I get it to recognize selections that are more than one word? I was able to mostly build what I need using the following link as an example: https://acrobatusers.com/tutorials/change_another_field Thanks, in advance.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.