Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
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
I'm not able to connect my app with google spreadsheets. The text won't appear. Thoughts?
I have a number of pdf files with numerous comments added. Is it possible to use advanced search to look for more than one word contained in a single comment. Eg if I want to find all comments containing the words business and worker how could I do it. ThanksRob Hamilton
HiI have a lot of documents to be commented on with the draw free form tool and I wish for them to be flatted automatically after the user close the document.I can run "this.flattenPages();" for ether 1) Document Actions at the Document Will Close in the JavaScript tools or 2) page properties -> actions -> Page Close -> Run a JavaScript.But the problem is it will only work for one document I set this up in. Is it possible to set this up globally/permanently so every single document will run the code?I am using Adobe Acrobat XI Pro
We are planning to sell a plugin to help manage medical records in Acrobat. Is there an Adobe store to sell plugs through? If so, what are the terms and conditions?
I am trying to make a float label in an iterative pdf form. I currently have this and its not working. Any ideas?if (!event.value) {event.value = "For Translated French";event.target.display = display.noPrint;} else {event.target.display = display.visible;}// On Focus script:if (event.target.value==event.target.defaultValue) { event.target.value = ""; event.target.textColor = color.black;}// On Blur script:if (event.target.value=="") { event.target.value = event.target.defaultValue; event.target.textColor = color.ltGray;}
Hi Everyone I want my program to detect if a field has an entry and if it has an entry set the output field to a value. Currently the program gets stuck on the if statement.The following code is in custom calculation script. Running on Adobe Acrobat Pro 2017. Also if there is a easier way to do this please let me know, thanks in advance.var nameOne = this.getField("Name1").valueAsString;var nameTwo = this.getField("Name2").valueAsString;var nameThree = this.getField("Name3").valueAsString;var nameFour = this.getField("Name4").valueAsString;var nameFive = this.getField("Name5").valueAsString;if( nameOne != "null"){ event.value=1;}else if(nameOne && nameTwo != "null"){event.value= 2;}else if(nameOne && nameTwo && nameThree != "null"){event.value= 3;}else if(nameOne && nameTwo && nameThree && nameFour != "null"){event.value= 4;}else if(nameOne && nameTwo && nameThree && nameFour && nameFive !
A form I created has a drop down list which, when clicked, opens a second PDF. I need the second PDF to open in a smaller window, not overlay the initial file. Thank you!
I currently have this custom validate script. event.rc = true; if (event.value) { var d = util.scand("dd/mm/yyyy", event.value); if (d==null) { app.alert("Please enter a date in dd/mm/yyyy format."); event.rc = false; } else if (d.getFullYear()<1900 || d.getFullYear()>2100) { app.alert("Error! Invalid year."); event.rc = false; } }This works well except it will allow you to put letters 10/nov/2018 and nov/10/2018. I need only numbers and slashes in the field (no letters for month).What can I add to this script to make this happen?Format/Date/Custom, does not work with script.And without script they can enter "01/01/0994" Format number no decimal, does not work with script either.
Hello,I am a bit of a novice when it comes to using javascript with PDF forms. I have some experience with VBA. I've reached the limit of my understanding I came across a form that has a shaded box on a page that changes colors when all of the fields are successfully validated, along with a message that says, "Valid" or "Not Valid" with a color change depending.My question is, what is controlling the location of this box? Why is the output displayed in the dimensions displayed, and in that specific location?Here is a link to the copy of the document. (Page six)Thank you for any suggestions.
I have created a PDF that I want to distribute to people to complete. Once they complete the form and hit submit I want the completed PDF to be sent back to me as an attachment in an email. Is this possible?
Hi,I am trying to programmatically hide certain OCGs by putting them into separate layers and setting their states to falseHowever, when the PDF is reopened, such state is not retained and they still show up in the PDF.Example code:this.setOCGOrder(this.getOCGs()); var ocgs = this.getOCGs(); for (var i=0; i<ocgs.length; i++) { var ocg = ocgs; if (ocg.name === "Hide") { ocg.state = false; } }I have tried several alternatives (described below) but still no luck:Set the initState to falseSet the state of the layers to false when PDF is opened.Does anyone know how to solve this issue?Much appreciate it!BTW, I am using Adobe Acrobat Pro DC
hello,i need to find out the original color-profile settings (us web coated, fogra etc.) of a pdf file that was exported directly from adobe photoshop. i was not able to find this information in the document description. the preflight setting itself is set to "fogra" which seems to be the default setting and not the original color profile the pdf-file was created with. anyone got an idea where to find the original color profile information?thanks,matthias
I am compiling an ebook and want to make it so that the title of each pagecan be copied to another page by clicking a box, each page will be copiedto the same page if box clicked and that page is (Journey Planner)...in adobe acrobat socorrect Javascript required please.....
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.