Questions
Recently active
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
I have this code to count pdf's in a folder I want to process:/* Count PDF files */ if ( typeof global.FileCnt == "undefined" ){ global.FileCnt = 0; //app.alert("your count: " + global.FileCnt);}I would like to have it finish processing than call another Batch file to process. Currently I have to manually start the other batch file after the count is done for it to work. Can this be done automatically?
My form was working perfectly until I added some script to hide fields based on a button... now I get an errorJavaScript Debugger (window) says: TypeError: f is null1051:byteCodeToolAny ideas?
I'm using Adobe Acrobat Pro DC and would like to set up some validation script for a date field of an application. For example - the start date of the project must be no earlier than May 15 2019. If the user enters a date before May 15 I want an error message that states "start date must be May 15 or later". I also need something similar for the completion date of the project. For example: the completion date should be by May 14 2020. So if the user enters a completion date after May 14 2020 an error message such as "completion date must be before May 14 2020. Is something like this possible with the calendar? Any other ideas on how to achieve this?
I am creating a form that has 2 dependent dropdowns. The first box has 4 choices. The second one will vary depending on the 1st. I am new to java, so I copied a script and edited it. I am receiving an error when trying to apply my script. The error and the script and both below. Please help! Thanks!Acrobat Standard DCWin 10 EnterpriseHere is my script:++++++++++++++++++++++myDropdown4Values = ["","Profitable growth", "Optimal outcomes", "Top talent", "Operational excellence"];this.getField("Dropdown5").setItems(myDropdown4Values);var Strategy = {Profitable growth: ["","Diversification","Differentiation","Sales pipeline","Existing product innovation","New product innovation","Geographical expansion"],Optimal outcomes: ["","Access","Quality","Risk Score Accuracy","Comprehensive Health","Utilization Management","Data Interfaces","Provider Collaboration","Individual Engagement","Stakeholder Satisfaction"],Top talent: ["","Diversity and Inclusion","
Expensive, good morning.I've converted the spreadsheet (attached image) into a fillable form in Adobe Acrobat DC. But it has formulas in some cells, because they need calculations. As I am very lazy in JavaScript. I would like to help you in transforming the formulas of each cell into JavaScript code so that you can perform the calculations. can anybody help me?Hugs,Berg
OK so I hope I can explain this well enough because it won't let me insert a photo in there. I have a group of text boxes that are roughly like this:Header 1Header 2Header 3Header 4PROMISPROMIS1PROMIS2DASSDASS1DASS2DASS3HDIHDI1UEFSUEFS1LEFSLEFS1Each one of those text boxes is where a number score is typed in for the PROMIS, DASS, HDI, UEFS and LEFS tests. As of right now I have those texts box scores populating down to a another text box called "OATS" but when they populate down to the "OATS" text box it is just the numbers and you don't know which test the numbers correspond to. So what I need, if it's possible, is this:if "PROMIS1" text box, if it has a score of "4" typed in it to populate down to the "OATS" text box as this "PROMIS Phys - 4"if "PROMIS2" text box has score of "4" then it populates down to "OATS" text box as "PROMIS Mental - 4"If "DASS1" text box has score of "4" then it populates down to "OATS" text box as "DASS Dep - 4"If "DASS2" text box has score of "4
ok so I hope I can explain this well enough that you can help me: I am making a form where I have this set of text boxes:
Hi all,I'm currently using 2 types of script that essentially do the same thing perfectly, however, I want to also display the comma for large numbers:Here's script 1:if(!event.willCommit)event.rc = /^\d*$/.test(event.change);Here's script 2:var reg = /^\d*$/;event.rc = reg.test(event.value);Does anyone know how I can add the comma to the scripts above or a new one do this?Also note, I've already tried using the basic "number" in the format tab, but I do not want to display or allow the user to enter any decimals - so it has to be custom keystroke script I think.The example above displays 8000 but I want it to display 8,000, I want the user to only be able to enter numerics and no other characters, or decimals (whole number only).Any info would be appreciatedThanks!Alex
How would I convert this excel formula into JavaScript:=IF(E3=0,0,F3/E3)I'm needing this for an Adobe Form so the actually names are:=IF(SCHEDULED1=0,0,COMPLETEDSTORED1/SCHEDULED1)thanks!
Why does my indesign file, when exporting a fully tagged and organized structured document yields <span> tags across the entire interactive PDF? Anyone run into this?I know I can change the tag once in PDF but why is indesign not exporting with the already assigned tags, and mapped styles to the tags that I've set. I recall fixing this one time but all current efforts have been futile. Having to tag for accessibly twice is difficult on documents with pages counts above 30.Any help would be appreciated it!
Good evening, we are trying to find the specific name of a form field so that we can make changes to them.We have tried using the traditional, "Text field name" but that doesn't seem to work much. This is the code that we have so farif (field.variable == "TX"){ console.log("help!")}All of our code is right, except for for the form field name.Any help would be appreciated!
HI all, I have adobe acrobat dc pro. I have a document that I want to add a button that opens an accordion like paragraph below it. Adobe does not give any error codes on the code, which is html, css, and javascript combined. However, when the button is clicked, nothing happens. I created another button on the same page to open google and it works so i know it s not an error in the button function overall. Here is the code I am trying to use. I have tried creating a document javascript, and a action javascript and nothing seems to work. Any help would be greatly appreciated! My overall plan is to try and code into the document an accordion function, since it is not built in.<script><div id="accordion"> <div class="panel active"> <!-- first panel --> <div class="acc-header">header1</div> <div class="acc-body">body o
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.