Unlock the power of Acrobat SDK through our community.
Recently active
Hi. I have the below scenario, whereby there are two checkbox options and if yes is selected for either of them, then they need to provide details in the text field, even if no is selected in one but yes is selected in the other I need the text field to be visible, but if no is selected for both then the text fields should be hiddenI currently have this script (or something similar) in all of the checkboxes:// fields to show and hidevar field1 = this.getField("Specify any restrictions etc and/or failure to comply with restrictions etc 1");var field2 = this.getField("Specify any restrictions etc and/or failure to comply with restrictions etc 2");// check box that changes visibilityif (this.getField("Check Box49").value == "Yes"){//hide these fields field1.display = display.visible; field2.display = display.visible; } else {// show these fields field1.display = display.visible; &nb
Im trying to calculate a total based on numbers typed into 4 fields - which works fine - however, I also have to add a number to that total (a base cost to which the other 4 fields will be added). In the simplified field notation, I have the following: AACCgraphics+AACCFurniture+AACCFloor+AACCExtras+45500 With the addition of the +45500 into that script, it displays the initial total correctly in the total field, however it doesn't add any numbers from the other fields. I feel like this should be a simple thing to do, but I can't figure it out. Help!
Hi AllI while ago I posed a question on this forum asking if anyone knew how to write a script that would have a 'Result' field show "Awaiting Input", "MATCH", or "MISMATCH", depending on whether the value entered into a in a 'Reported' field matched exactly the valued in an 'Expected' field.The original post is here; Script for Dependant Visual Status - I had some fantastic help from George_Johnson and try67, to whom I owe a great deal of gratitude - may thanks once again!I now have a need for a script that will do a very similar thing, but I need the visual status of my 'Result' field to show as "Awaiting Input", "Pass" or "Fail", depending on whether the value entered into the 'Reported' field is at least the value of what is in the 'Expected' field, rather than needing to be an exact match.So, I have a read-only field called 'Expected-Sector-Count'. The expected value is "9,514,260"I need the 'Result' field to show as "Pass" if the value entered into the 'Reported-Sector-Coun
I'm working in Acrobat X, but users are using a variety of Acrobat and Reader of every version. A client needed a PDF to ship with layers turned off, but be returned with layers turned on. After I added this to the script that displays the PDF results, then saved the PDF with Reader Extended PDF>Enable Additional Features:if (layers.state == true){layers.initState = layers.constants.states.on;}else{layers.initState = layers.constants.states.off;}...the regular PDF worked fine in Acrobat, but the Reader Extended version stops execution with the message:Acrobat EScript Built-in Functions Version 10.0Acrobat SOAP 10.0NotAllowedError: Security settings prevent access to this property or method.OCG.initState:11:Field Finalizar:Mouse UpThe error message tells us nothing, but when I comment out the lines that switch the constant.states status, the error goes away. But then the layers are not visible when the head office gets the PDF back.I've looked this up in the Acrobat SDK, but constant
I'm doing a Spanish language form that displays a list of countries in a drop-down:Seleccione el PaísColombiaCosta RicaMéxicoPanamáPerúThe country name is is used to display different options. This worked as expected when the list of country names was in the dropdown validation box. But then I had to move the validation to a document-level script and now the validation doesn't work on any variable that has an accent in it. (Only Colombia and Costa Rica work as expected). So I added the following to the dropdown validation to try passing unaccented values to the document-level script:var dropdown = event.value;if (dropdown == "Seleccione el País"){var resetDropdown = "Seleccione el Pais";}else if (dropdown == "Colombia"){var resetDropdown = "Colombia";}else if (dropdown == "Costa Rica"){var resetDropdown = "Costa Rica";}else if (dropdown == "Panamá"){var resetDropdown = "Panama";}else if (dropdown == "Perú"){var resetDropdown = "Peru";}else{var resetDropdown = "Mexico";}SetCountry(reset
Hi All,Good Morning...Is it possible to Export Tagged PDF XML structure using PDF Javascript or any other plugins.Thanks & Regards,Senthilvel S
Hi,I'm trying to convert an XFA PDF to a Flat PDF using the interop.acrobat dll API,as of now i'm using the printing process which is working but makes a lot of other problems,Is there a way to just save the PDF in as a Flat PDF format instead of printing?I'm doing this with a C# code which suppose to work quietly in the back ground,and not report on every print as of now.My Code:CAcroPDDoc pdDoc;CAcroAVDoc avDoc;mApp = new AcroAppClass();mApp.Hide();avDoc = new AcroAVDocClass();if (avDoc.Open(pdfFile, "")){ pdDoc = (CAcroPDDoc)avDoc.GetPDDoc(); avDoc.PrintPagesSilent(0, pdDoc.GetNumPages() - 1, 0, 0, 0) avDoc.Close(1);}mApp.CloseAllDocs();mApp.Exit();[Question moved to the Acrobat SDK forum. - Mod]
How would I write in javascript for forms tagging that X should be true when Y is not true? Is there a way to do this in tagging without javascript? I have tried all operators of !=, ===, etc.
Field 1 is Acct #Field 2 Sold To (this is the clients name based on the account # selected in field 1)Filed 2 Ship To (this is the clients address based on the account # selected in field 1)It is my understanding that I shoud run a javascript. However, I am VERY new to this and am unsure of how/what code to write.
Essentially, I have an expense codes list, and I want the title of the account to display with the expense code when selecting, but then only display the number once selected. Is this possible with Adobe Acrobat Pro?
SyntaxASBool AVAppOpenHelpFile(const char* fileName, ASBool doSearch)Opens a specified help file from the default installation help directory. If the help file is not found, it optionally opens a dialog box asking if the user wants to search for the help file.as above, so where is the default installation help directory?
From the DC SDK Documentation to find the end of a batch file you have to use the PDF count:if (global.counter == global.FileCnt) { console.println("End of Job..."); delete global.counter; delete global.FileCnt; }This relies on the user to first run the global.FileCnt Action than run the main batch file for doc processing (which cnts the global.counter). How can I find the end of a batch file if all I had was one Batch file? The other method is just not intuitive.
I have Adobe Acrobat DC - and I have a fillable PDF with Columns.I am attempting to divide one field (TOTAL ROW 1) by 2 to answer in the column field beside it COOP AMOUNT x 50Row1.I tried multiplication and that didn't seem to work either. I can easily change the name of the fieldI supplied a small portion of the form below.THank you so much, as I have been trying everything
Can someone please tell me why the result of this script is one day short? (The date fields are formatted mm/dd/yyyy) Ex: the difference between 01/01/2019 and 12/31/2018 == 0 instead of == 1//dateEnd var actual = this.getField("date.Actual.Closing").value; var dateEnd = util.scand("mm/dd/yyyy", actual); //get date object for end date//Start date: construct it from dateEnd as 12/31/ of the yyyy before dateEnd var yr = this.getField("date.YearPrior"); var year = dateEnd.getFullYear(); yr.value = year - 1 var strStart = this.getField("date.LastDec31"); strStart.value = util.printd("mm/dd/yyyy", new Date("12/31/" + yr.value)); var dateStart = util.scand("mm/dd/yyyy", strStart.value);//Calculate and assign the date difference var dDiff = dateEnd.getTime() - dateStart.getTime(); / var oneDay = 24 * 60 * 60 * 1000; var days = this.getField("num.days"); days.valu
When I open a pdf it does not recognize the new document as a variable. The document opens up but in the debugger it shows oDoc as not being assigned. Once this PDF opens up it does not change the two fields because of this. What am I missing here?var oDoc = app.openDoc(orgFilePath);oDoc.getField("GTC_class_year").value = class_year;oDoc.getField("GTC_class_number").value = class_number;I am using the continuous version of DC 2019.008.20081
I have a batch script which combines all files in a folder. I can add an Page processing action to add page numbers but it only pages each document separately. Is there a way I can do page numbers as a sequence of my entire documents. Example:1 Doc = 2 pages2 Doc = 3 pagesFinal doc should be stamped with pages 1-5
In the script at lines 1 thru 7, this.getField("date.Closing.Actual.Date") has a date format of mm/dd/yy and its value determines the yyyy value of this.getField("date.YrOfClosing") which has a yyyy custom date format. this.getField("date.Prior1231") has a date format of mm/dd/yy . I need to use the yyyy value to set the yy value of this.getField("date.Prior1231") to 12/31/yy of the year before yyyy (where mm/dd will always be 12/31). Ex: if the source field value is == 2018 then the value of this.getField("date.Prior1231") should be 12/31/17.1. var actual = this.getField("date.Closing.Actual.Date").value; //mm/dd/yy format2. var d = util.scand("mm/dd/yy", actual);3. var yearOfClosing = this.getField("date.YrOfClosing"); //YYYY format.4. yearOfClosing.value = d.getFullYear( ); //extracts year in YYYY format5. var f = d.getFullYear().toString().substr(-2); //Ex: change 2018 to 18.6. var priorDec31 = this.getField("date.
var openDoc = app.openDoc({cPath: myPath}); var d = app.activeDocs; <--gets all open docs app.alert("this.path: " + this.path); <--this.path is not always the openDoc. app.alert("openDoc.path: " + openDoc.path);How do I make the openDoc the active Doc? Essentially I am needing to add page numbers to it.
HolaTengo varios radio button y me gustaría poder activarles por JavaScript.selecciono cualquier provincia y me gustaría que automáticamente el radio button quedase marcado, activado.un saludo y muchas gracias.
How can i count the number of signatures on a pdf document? and perform some action when the last signature is signed, say save the signed doc to another location in the back ground....
Hi there,I am facing a problem regarding a percentage calculation in my form.As of now my code to receive a proper display of the correct percentage decimal I am using this code:if(event.target.name=="Tax"){event.value=event.value/100;}This works fine so far. However, when I change any other value of other fields this specific field starts to calculate again the value by 100.Example:Tax: 5%-> Changing field of unit priceTax: 0.05% (it calculates the value again by 100).Anybody an idea how to solve this problem?Thank you in advance!Ketch
Basically I'm looking for a master / slave type of behavior.I have four checkboxes, cb0, cb1, cb2, and cb3. I'd like to check cb0 if ANY of the others are checked and uncheck cb0 if ALL of the others are unchecked. I would think there is a simple solution here as it should simply read somthing like:var f0 = getField("cb0");var f1 = getField("cb1");var f2 = getField("cb2");var f3 = getField("cb3");if (f1.value === "On" || f2.value === "On" || f3.value === "On") { f1.value = "On";} else { f1.value = "Off";}Many thanks in advance!
I know how to x-fer the data to Excel, but can't figure out how to get the size from the file.Any assistance will be appreciated.Thanks
I created an Action that creates a text field on the top of the page. How do I get it to repeat it on the top of the remainder of the pages in the document?// Create the "DatePrinted" field on the top of the first pagevar fldTop = this.addField("DatePrinted", "text", 0, [36,774,576,756]);fldTop.value = "DatePrinted";fldTop.textSize = 14;fldTop.textfont = font.Arial;fldTop.textColor = color.red;fldTop.alignment = "center";fldTop.display = display.hidden;fldTop.readonly= true;fldTop.doNotSpellCheck = true;fldTop.doNotScroll = true;Any assistance will be greatly appreciated,Thanks
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.