Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I have been working on this form for a few months now. I've taken it from 81 KB to over 1 MB. I'm afraid that if I put too much script into it, it'll freeze or crash on the user. Is this possible?
Good morning,I have managed to get the stamp to produce the date, however I am unable to get it produce a fillable field. As stated in the description, I am new to java and adobe, I am a quick learner but am unfamiliar with how java works so I have been trying to cut and paste script but have been unsuccessful. If someone could give me the coles notes on Java or run through how to do this task and I'll look into getting some education on Java later that would be great.Thanks,John M.
Hi,I am trying to change the crop box by a 10th of its height and length on every page of a PDF. So if the 1st page is 100 by 100 it would be come 110 by 110. If the second page is 200 by 200 it would become 220 by 220 leaving new white space to the top and right which I intend to add a watermark.This seems to work fine, but for some reason its only working on the active page, and not looping thorough each page.I am no Java expert so I am probably missing something very simple, here is my code:for (var i = 0; i <= this.numPages; i++){ var rectCrop = this.getPageBox("Crop",i); var width = rectCrop[2]; var height = rectCrop[1]; var new_width = width+width / 10; var new_height = height+height / 10; var rectNewCrop = [ 0, new_height, new_width, 0 ]; this.setPageBoxes("Crop", i, i, rectNewCrop);}It is hurting my brain trying to figure this
Hi,I have generated some action sequence files in my Acrobat application. I need to interact this action sequences files using JavaScript. Is it possible, please suggest me.I am using Adobe Acrobat DC Windows. Thank you for your help.
I'm trying to come up with a script that would function as an if/then scenario. I very new a writing in JavaScript and have done a reasonable job developing an interactive form. My form has a section where there are 3 lines of information that adds up to a number. That number can be either a positive or a negative number which would populate in field "l100". The other field consists of a number that adds up three fields "l37"+"l38"+"l39" which will always be a positive number this populates in field "l41". "l41" final number will be determined if field "l100" is a positive or a negative number. If "l100" is a positive number then "l41" will be the sum of "l37"+"l38"+"l39"+"l100". If "l100" is a negative number then "l41" will be the sum of "l37"+"l38"+"l39". Here is the direction I thought might work. Wondering if I'm on the right track or not:var theField = this.getField("l100");var theValue = theField.value;var theField2 = this.getField
How to remove watermark from pdf programatically in .net using adobe object type library
I wrote a Javascript in Acrobat for a form that I'm working on. The result could be either a positive number or a negative number that populates as my answer. I30 is supposed to yield the difference between I28 less I29. If I28 populates a number $1,000 and nothing shows in I29 then the result in I30 would be $1,000. This is correct. If nothing shows in I28 and $1,000 populates in I29 then I30 is supposed to show as (1,000) because I28 less I29 would equal (1,000). This result is not showing up. I cannot figure out why. I'm wondering if my validation script is the issue. I've included this below the script. Any suggestions? Thank you so much for any input. (Note: I am learning and trying to figure out how to write this code)var theField = this.getField("l28");var theValue = theField.value;var theField2 = this.getField("l29");var theValue2 = theField2.value;if (+theValue - +theValue2 > -10000000000.01) { &nb
I have an array of information I have collected from radio buttons. I need to know when they chose No to a certain question. Right now I have an app alert displaying the no's for the user. Now I need to copy that information into a Word/Excel document. I need to know the code to copy the array to the clipboard. Also, I named my radio buttons 1, 2, 3 etc. Here is my current code. I'm not sure where the copy code would go:var questions = ['Question 1: Do you smoke?','Question 2: Do you drink?']//I had 69 questions total that I added to the above array// the number of radio buttons you have in the pdfvar question = 79;//question starts at checkbox 5. I made the mistake of taking out questions so my radio button started at 5.var counter = 5; var myArray = [];var arraycounter = 0;for (; counter < question; counter++) {if (getField(counter).value=="No") {myArray[arraycounter] = questions[counter-5];//variable for question stringarraycounter ++;}}app.alert('These questions were answered no
Hi, I have two fields linked together in a pdf, so that the text flows from one line to the next... using this code:// Move to next field when this one is fullvar t=this.getField ("strongpoints1"); if (event.fieldFull) { getField("strongpoints2").setFocus();}Can anyone direct me to a coding solution that allows me to backspace from the second field back through the first field? Right now, I have to click each field individually to backspace the content on that line. But I would like it to automatically backspace up through the previous line.Thank you!
Is there any way to add additional actions in JS?I'm trying to use the setAction() method to add an additional action to a form created in InDesign. It already has nearly 100 show/hide actions that were set up in the InDesign document. When I try to add a JS action on mouse up using the setAction() method, it deletes all of the other actions instead of adding to. There wasn't previously a JS action on the button I'm trying to add it to, only show/hide fields.Any ideas?I've been trying to create a workaround by using the visibility of a checkbox as a trigger without success...
Good morning. I have field in a pdf form that reacts to another fields drop down selections. I added some code with popup windows because there are questions that need to be asked before output can be completed. The problem is that the popup window code is in the Custom Calculation Script box so every time I put information in other fields, it pops up...I'm assuming that it's recalculating every time there's change in the form. How can I stop that from happening? Here's my code:var v = this.getField("System Name").value;var vName = this.getField("01: Name").value;var vOrg = this.getField("02: Organization").value;var vTitle = this.getField("06: Job Title").value;if (v=='Select from the dropdown menu'){ event.value = "";} else if (v=='NIPR'){ event.value = "Needed for daily access supporting our operations.";} else if (v=='SIPR'){ event.value = "Needed for daily access supporting our operations.";} else if (v=='NIPR and SIPR'){ event.value = "Needed for dai
I want to create a acrobat action to extract single page pdfs to specific names. first I'am using the "Search and Remove Text" under Protection to find the text to be used for the individual file naming. This creates Comments for each page with the unique text for the names. Then I want to use javascript to to do the extracting.I found this code on the forum that extracts single page pdfs. I need the extracted pdfs named by the Contents............ Annots:/ Redacts:/ Contents: with the Annots removed.I've tried to modify the code with no luck. I am new to scripting, I understand the concept I just don't know the method/properties to perform the function to apply the Annots Contents from each page to the naming of each extracted pdf.code that extracts single page pdfs. var re = /.*\/|\.pdf$/ig; var filename = this.path.replace(re,""); { for ( var i = 0; i < this.numPages; i++ )
I need to add a pdf page as background to another pdf file of 16000 pages.The "Add Background" from acrobat pro is not an option because it is very slow.Thanks
Hi,I have a dropdown list and a group of radio buttons on my form.I need that the appropriate radio button should get automatically checked based on the selection of an item from a dropdown list.For example,If Item 1 is selected than radiobtn1 should be checked and if Item 2 is selected than radioBtn2 should get checked.
I am using a combo box a shift scheduling layoutis there a way to have the value displayed with just a letter after the selection is madeFor example, the Combo Box options are Sick, Vacation, Comp time, Bereavement, Military, and so forthSo if the selected item is Bereavement can it display B or vacation a V ect.Space is limited, so just an initial would be sufficient I have explained to the bosses that we can just use the initials, to begin with, but they don't believe an individual would remember that S stood for Sick Leave and a C stood for Comp timeAny help would be greatly appreciated.
Hi,I have been trying to write a script that automatically populates a price in another field once an item in a dropdown box is selected. From looking at the tutorials, I have a good portion completed but I am running into the issue where every "cost" field is populated and I am not sure how to create a 1:1 selection with each row.Example: desc1 populates for cost1 desc2 populates for cost2Code:var cateringData = { "Large Cheese Board":{ cost: "165"}, "Regular Cheese Board":{cost: "98"}};function setFieldValues(cCateringName){ this.getField("cost1").value = cateringData [cCateringName].cost; this.getField("cost2").value = cateringData [cCateringName].cost; this.getField("cost3").value = cate
i create a drop down menu with option to allow user to add custom text...now how to add a permission for max user character = 100 and if characters is max (100) then go to next field automatically?
i work this javascript code menu :var MyItems = new Array("1","2","3");this.getField("Dropdown14.0").setItems(MyItems);now i want a script help if user choose option "2" then count ++ field name BOX (1...2...3..4...5..............)i try this but not working :count=0if (event.value=="2"){count ++;}
I have tried so many different ways, that I finally decided to break down and ask the "experts"! I have a text field where users will input what organization they are with. I have a popup window "On Focus" that tells the user if they are working for our organization, to input our company name "XYZ"; Otherwise, input whatever. Later on in the form, there's a submit button to email the PDF form. If that text field has XYZ G6, it'll send an email to a certain group of people; Otherwise, if that text field doesn't have that key word (XYZ), it sends the email to a different group of people. Here's what I've been working with:var sendTo = "john.doe@mail.com";var sendOther = "bill.jones@mail.com";var keyWord = this.getField("20 Supervisors Organization").startsWith("XYZ);if (this.getField("31 Sec Mgr Sig").value != "" && keyWord == true) { this.mailDoc({bUI:true, cTo:sendTo...} else if (this.getField("31 Sec Mgr Sig").value != "" && ke
Hi,I have a PDF form with 2 buttons at the top that are set to run a Javascript. One of them saves the file to a specific server location under a certain file name. The other saves it in the same way and also sends an email with the form as an attachment.In previous versions of this form, both buttons worked perfectly fine. I have changed a number of things now about the form itself but no changes were made to the buttons. However, the save function of the buttons no longer work (though the second button still generates an email fine).I've run through every line of Javascript code and confirmed it's the same as the previous version, so I don't think it's the code. I feel like it's a setting on the doc itself, but as far as I can see, they're all the same as well. Any ideas what else (settings or anything else) might block the save function on the buttons from working?Thanks in advance!
This is my first post so any help would be greatly appreciated. My question involves 2 parts:1. I have a PDF form (which was created in Adobe Acrobat Pro DC from a MS Word 2010 document) which has 2 radio buttons, each of which will hide a section of the form. I have managed to hide the form fields using "Actions"-"Run javascript" and code for each field which looks like this: this.getField("Field Name").display = display.hidden;However I do not know how to select and hide the text in that section (which is not a text form field) as well as any of the other objects like a table outline. Any help in this regard would really help.2. Now assuming I can hide the section (from part 1) is it possible to get the next section to move up so that there is no white space between the sections?Thanks in advance for the help
Bonjour,Certains convertisseurs en ligne offrent de type de service, comme par exemple pdfcrowd.com | Pricing Comme nous possédons une licence Cloud Adobe, serait-il possible de l'utiliser sur notre serveur Web afin de générer des pdf pour nos factures actuellement en version html.Merci pour une réponse.CS
I would like to insert an image by pressing a button and have it automatically insert an image from my downloads folder.Currently:I have a button field and under action I have it run the following javascript event.target.buttonImportIcon();With this javascript when i click the button it brings open another window where i have to browse for the image file before opening.Is there a way to modify the javascript such that it will automatically open the image file by coding the address of the file?I have tried event.target.buttonImportIcon(":C/Users/..../imagename.pdf") and that did not work.Thanks
Hi! As there are no solutions at the Printing & Prepress community, I would like to launch the topic over here.How to set up default printer by page format/page dimensions?For example, I print A6 pdf shipping labels (real A6 pdf format) with a labelprinter. Other A4 pdf documents must be printed by another printer.Now I sometimes forget to change the printer and the last chosen printer isn't always the right choice.Is there an existing method or javascript to set up the default printer, affected by the pdf page format?In that way in my case the default printer will be automatically selected by this unique variable: the page format or page dimensions.Another way might be by the pdf filename, as those files have a certain pattern/structure.
We have a timestamped audio file that has been synchronized/timestamped to a text file. We are trying to see if we can somehow have each word in a pdf be synchronized to each synched/time stamped audio and if possible select a word or a consecutive string of words and have the pdf either play back the timestamped audio or open a third part to play the audio?If anyone can help i would appreciatePJH
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.