Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I am not very familiar with javascript. I would like to copy text from one set of fields to another in a pdf (using Acrobat DC) based on the whether a checkbox has been checked or not (i.e., if checked box value = true, etc.). How can I do this using javascript as an action for the checkbox field? Assume the checkbox field name is check_yesno. If it is checked (value is true) then I want to copy an address from one field on the form to another. As an example, one of the fields I want to copy is address_main to be copied to address_secondary if the checkbox has been checked. Any help with this would be appreciated.
Hello everyone!I need a little help. I have been following the advice in the forum located here -How do you spawn a template from a button on an already spawned template and rename the field on it? (JavaScript)I have used the advice in the forum and had great results. Recently the buttons have behaved erratically. (new update?)The add code presented does a brilliant job of insuring the add page button is the last button to be displayed therefore eliminating the possibility of linked fields -this.getField("Button1").display=display.noPrint;var a = this.getTemplate("newpage");a.spawn({nPage: pageNum + 1, bRename: true, bOverlay: false}); this.getField("Button1").display=display.hidden;event.target.display=display.hidden;this.pageNum=this.pageNum+1;however the delete button code has given me errors. (bad parameter) Additionally depending on where i hit the delete button will cause the spawn button to re appear not as the last button on the last page. It will be in addition to the sp
I want to change the formatting of a value entered into a field based on that value. i.e. if value greater than 5, the value will appear bold and in red (6).Thank you in advance for your help.
Hi,is it possible to show and hide pages in Adobe Acrobat using the JavaScript API? If so, how? I've been looking for a solution for two days, but I can't find one.Thanks
I have copied a page from the Dynamic stamp PDF to create a stamp that says "Prepared" instead of "Received". I have updated it on the blue background of the PDF, the forms page, the text field properties screen, the title of the document and everywhere else I can see but when I add it to the ENU folder it still says Received, not Completed when added as a stamp to a document. It does pull in the correct time/date so I know it is updating portions correctly.Does anyone know where I need to change to get the Dynamic stamp to say completed instead of the Received that it was copied from?
Is there a way to show all of the javascript routines in a PDF at once? I am trying to find and replace a specific item that appears in multiple scripts but don't want to have to go into the properties of every field in the form.
I put a lot of time in designing an OK looking interactive form. I want all the textfields to be white on a colored background. No problem so far. Now when opening the PDF in the reader it shows all the fields in the colors specified in the user preferences of Acrobat. Can be any color but in my case everything turns purple! Have to uncheck the setting to see everything back to normal. I want my file to look the same to anybody opening it no matter what their personal settings are for forms. Is there a way to uncheck these settings when opening the file by executing an action javascript? Hope someone knows a way, it's been bugging me too long now, not a programmer myself obviously. Thanks.
Hi, i'm using bellow code to generate new paragraph. my issue is currant Multiline text field line space is 1 line but i want to change it to 1.5 line space. i have tried "Ctrl+E" option but it didn't work. hope someone can help me. thanks.. // Get field valuesvar Chaparral = getField('Chaparral').value;// Build full_name stringvar full_name = "I have put together this outline proposal for " + Chaparral + " and DeVries International, based on previous working knowledge of " + Chaparral + ". As such it is purely a draft proposal designed to show how Clear Commercial Solutions could assist " + Chaparral + " in gaining increased market share and appointing new dealerships globally, to support network growth, brand awareness, global sales and revenues.";// Set this field's value equal to full_nameevent.value = full_name;
Good evening, I am trying to find an efficient way to compare the form field values from two different documents... is there an easy way to do this?Both documents are the same, but the idea is to check for any possible changes made to one of the documents. Any help would be wonderful, thank you!
For the last few days I've been looking into stamps. I've successfully created both types so far. But, what I was, stamps were tamper proof. I found out they are not. In Acrobat Pro X and also, in all the Readers. You can't flatten them in the Reader so if you give your doc to someone that has and is versed in Acrobat they can delete the stamp and create their own stamp which looks exactly like mine. Even if flattening was possible you can use the Edit Object tool to select it and delete it then create your own counterfeit stamp and modify the doc. It's a little disappointing because I don't like people having access to my projects. Give someone your doc with containing some stamps and if they choose, in the Reader they can delete all the stamps under the Comments List. My question is - How do you experts keep your docs a bit more secure?
Looking to make it so that after a user opens a document after a specified number of times that the document expires and they can't open it again.
I am trying to create a pdf with several different functions. 1. I need to calculate the difference in dates to find how many years someone has worked with the company as of April 1, 2019. Second, I need to add the time they will work if they start at 8 am and finish at 5 pm. Third, I need to have a box that needs to read a percentage based on a value inputted into another box (i.e. If a = 15, then b = 45%; if a = 21, b = 50%, etc.). Lastly, I need boxes to read 1% if a "yes" box is checked. I've tried javascript on my own but I am doing something wrong. Can someone please simply tell me how to do this, where to insert my fields, etc.? Nothing I have done has worked. Thanks!
I've been into creating stamps lately. I have successfully created custom stamps which were easy. They're just construction symbols. Easy. But, now I would like to create a stamp that would enable me to have a fillable legend. As with many blue prints there's usually a legend table. But, sometimes not. This is what I'd like to have added to my pdfs when needed. A stamp that would have four to five fields that I could enter data such as job name, address, type of job, etc then flatten and save. I've been reading articles and I also know there's a book out there specializing in stamps. I've done some research and I'm still not getting a clear understanding as to what can be done. At this point I'm just wanting to know if I can create a stamp like what I've described. If you know if it is or not possible, please let me know. Thanks.
I have several checklists in a drop down. Each checklist requires different items to be checked off. How do I make the form fields change to what is required based on the checklist selection in the drop down?
I have a pdf doc that when the user clicks a button, the document scales and scrolls both vertically and horizontally to a certain point inside the pdf. I need to get the user's Preference>Page Display> Resolution to ensure the user is navigated to the correct point in the pdf. How do i get that property using Javascript?
I am looking for some code, when you open the PDF file you see the username in a texrfield.Thanks
I am attaching an image of a portion of a log page. As you see, there are multiple (six) identical records - each has a date field.I need to do two things: 1) Assure that the date being entered does not predate the date field in the previous record, and 2)verify that there is indeed a date in the date field of the previous record (avoid skipping records). Here is some code I have tried, but I cannot get the if condition to work:Please share your thoughts.//THIS VALIDATES THE DATE ENTEREDvar cMsg = "The date you entered is invalid.\n\nPlease enter a date that does not pre-date the previous entry date.";var nIcon = 0;var nType = 0;var cTitle = "DATE ERROR";var str = event.target.name;var res = str.charAt(str.length-1);var d1 = Date.parse(this.getField("0." + (res-1)).value);var d2 = Date.parse(event.value);if (d1 == 0) {if (d1 > d2) {app.beep();app.alert(cMsg, nIcon, nType, cTitle);event.value = "";}} else {var cMsg = "This is an invalid entry\n\nThe previous date entry cannot be empt
Good evening, my coworker, and I, are trying to find the fastest way to extract all the text from a flat text PDF, and using the text for the rest of our program.Currently, we are able to extract all the text, but Acrobat seems to want to be slow... our program was initially very fast at extracting all of the text, but we think Adobe might have made an update which made extracting text take longer?Any help or advice would be greatly appreciated!
My goal is to create an automated Save As function (utilizing a button or something on the document) that will save the document to the same location as the original file, as well as rename the file by reading certain fields on the document. An example of what I would want the save file to look like would be:LastName.FirstName.IDnumber.ReasonForVisitThe last name, first name, and ID number are text fields that would have those obvious details entered and the reason for visit would be one (or multiple) of various check boxes that would have an export value. I wanted to know if it is possible to do something like this, as well as putting a "." between each of the details to make it easier for sorting/searching purposes. I know this would include a folder level script, I also wanted to know if there is a file level script needed or if the call script would only be attached to the button created. I would also like it to prompt the user if there is already a file with the same name (to over
Hello all I am need to using Acrobat for calculations and I am look for some help with an if statement this is what I am trying to do I have an input box and I need to take what ever is put into that box and calculate and show that in the secound box, but I need it to not show anything in the second box if nothing is put in the first box. I hope this makes sense, this is the jave script I have and the calculation works but it will still do a calculation in no number is in the first boxthese are the 2 boxes in the calculation I have this scriptevent.value=((-(+this.getField("Input").value/3-6000)*(1.052-0.7778)/100))Any help would be great and thanks in advance
Hello,I'm trying to create a script which will calculate the proportional percentage of a numerical entry sectioned by date. For example:Date%Adj. %Total2/1/195%100%52/2/195%100%5Date%Adj. %Total2/15/19511.11%451022.22%3066.66%2/18/19675%8225%So, the "Adj. %" values associated with each "parent" "Date" value should equal to 100% when added together. My issue is that my script doesn't seem to iterate properly and I end up with strange "Adj. %" values that do not reflect the respective "Date" and "%" field value entries. I included a link to a pdf, which includes the script I'm having issues with: https://docdro.id/TDcy6RX I'm going crazy over this, any help will be highly appreciated!
Hello all,I'm an intermediate macro-writer but most of my experience has been in vB in Excel, so JS is a bit unfamiliar to me. Apologies if I'm missing something obvious, and any help is appreciated. The task I'm wanting to complete is:Identify Scope (Multiple 1-page, identically arranged PDFs)Open First FilePrompt User to draw a Redact Area around some coordinatesApply RedactionsLoop through the remaining documents, applying redaction to the same area.So far I've been trying to stitch together a few tutorials/pieces of sample code but I'm getting stuck a lot earlier in the process than I expected, hence my reaching out. The code I'm working with is from the below:https://acrobatusers.com/tutorials/auto_redaction_with_javascript https://acrobatusers.com/tutorials/apply_security_with_js https://acrobatusers.com/tutorials/folder_level_scripts But I can't even get the first pieces of sample code to run exactly as-is on the sample file provided. For the below:// Part 1: Quads for the diffe
I have an extensive script, DoSummary(), which when called from a Mouse Down event works fine - all fields are updated as expected. However, when the function is called from the custom validation script from any of my form's text fields and drop-downs, the fields to be updated by DoSummary() are not changed - instead, they change AFTER another change is made to one of the fields. I have checked and enabled all of the 'Commit Selected Value Immediately' for the drop-downs, but no help. Basically, the Summary Page of this document is constructed by DoSummary() using a loop (for six identical records). All non-empty or non-blank fields are counted, with some being summed and averaged. Again, if DoSummary() is called from a mouse up event of a button, all is fine. But, when calling the same function from the validate's custom script, the behavior delayed. I hope this is explicit and detailed enough. If there is other information needed, please post.Thank you,
Hello everyone, I have about 400 page pdfs. I need to delete (20, 21, 100, 150, 300.... pages) some random pages. Page numbers to be deleted are listed in excel. Can I delete those pages with one shot using any script. Or can I delete those pages using bookmark which is one character lengthier than the others. i.e the page need to be deleted having bookmark one additional character comparing to pages which need to retain. Using the bkm length or using the list in excel... any way it is good to me.
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.