Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Hello,I found this topic (How to check if file exists? ) but I would like to do the same, without trying to open the file (the file type I want to check is not ".pdf" but can be anything else.Here are the found scripts (thanks to tehinternets !)Call the function :if(typeof(MJS_FileExists) == "function") { try { if(MJS_FileExists("/C/something/somethingelse/filetocheckfor.pdf") == true) { app.alert("file is there"); } else { app.alert("file is NOT there"); } } catch(e) { app.alert("Processing error: "+e) } } Function to place at the folder level :
How would I go about this? I'm unsure how to listen for events.
Error applying transforms. Verify that the specified transform paths are valid. Message received whenever I attempt to update Acrobat XI
Hello!I am trying to create a form that saves to a specific path depending on the option you select for a drop-down field. So, for instance, you have a drop down field and you select 1,2,3,4 and each selection will change where the file is saved. Is this possible?I've successfully made a document that saves to one location using folder-level scripts but I am not sure how to add an if-else statement so the file location is appended depending on what value is entered in a specific field.// determine the directory path for the current documentvar directory = "/shared$/Manuals & Documentation/MCR/"if (typeof(mySaveAs) == "function") { mySaveAs(this, directory, "MCR-" + this.getField("mcr #").value + " (" + this.getField("model #").value + ")" + ".pdf"); app.alert("Document archived successfully");} else { app.alert("Save script missing or installed incorrectly. Please save-as manually or contact STR");}Thank you so much for all the help!!!!
I have a pdf form that I am creating. I have yest no questions with a check box. If checked yes I have a text box that appears. When checked no it is hidden. Is it possible to get the next question to move up the page over the hidden text box? I am trying to reduce the white space on the form. I saw a closed post that mentioned how to do it but there was not enough information for me to figure it out. I am a beginner so I will need step by step instructions. Thanks
I am trying to create a fillable form, the way the form is created it has the fields throughout the sentences like the example below:I, "Member's Name", am the ....I have used the following script so that the person filling the form would be able to see it as soon as they open the document (rather than being a blank field with a tool tip)if (!event.value) { event.value = "Signing Justice's Name"; event.target.display = display.noPrint;} else { event.target.display = display.visible;}My question is how would I script in Arial with a pt size of 11 - the current sizing for the above script is wrong. Ps.Just to clarify I have set up each field as Arial 11pt so when the client fills the form it is proper, but the initial display of the field is the wrong size.
Friends,Good afternoon.I have 04 Text Box where I preform to perform some mathematical operations.For example:The first calculation is done in Box 3, where I subtract box1-box2 - This is ok.Already the Box4, I do the percentage calculation of the division of Box2 / Box1. When I have values, it gives me the result in%. But when I do not have values or all are zero (0), it returns me an error. I wanted a JS code where doing a division of 0/0 would return me 100%. can you help me?Oh, I'd like to know if you can do some value counting in a textbox. For example, I have 10 textboxes that should be filled with text. in another textbox, can you create a JS to assign the value of 1 to each filled txtbox and calculate the total amount?Abs,Berg
I am trying to figure out how to go about writing a custom javascript format so that the form field allows for either a number with two decimal spaces or an "X" - these fields will later be calculated into a total. If i leave the field with no formatting then I do not get he comma formatting if the user enters a number over 999, and the user can input any letters rather than just X - and I need it to be limited to numbers or an X only.If anyone has a source online that they have used that will help me write my own please let me know, otherwise any input would be much appreciated.Thanks,Kelley
Ok i have a form that has 7 columns in it. if i select something from a dropdown in coulmn 5 how do i get it to automatically put something in column 7 for me....example if i have job numer XX1255 selected in the dropdwon on column 5 and I want it to automacially populate the name of the job "fiber optic" in column 7 ho do I do that
Hello, I am using Acrobat Pro 11. I am trying to create a "Tax" Box that calculates taxes according to "Subtotal" Box. Can anyone please help? Thank you in advance
I am using Adobe Pro and I am trying to use a radio button to complete a calculation. There's text field ("CourseName"), another field formatted as a number field ("Hours") and the radio button ("HourType"). The user enters the course name, and then enters how many credit hours received for the course. The radio button performs a calculation depending on if the user selects Semester Hours (export value is SH) or Quarter Hours (export value is QH). If the user selects "SH" then nothing changes, but if they select "QH", the "Hours" value is multiplied by 0.6667. I'm using the following custom calculation script on the "Hours" field:var total = Number(this.getField("Hours").value);var type = this.getField("HourType").value;if (type=="QH") { event.value = total * 0.6667;} else event.value = total;The script works fine until I toggle back and forth. Each time I go from QH to SH and then back to QH..it performs the calculation again
Using Adobe Pro, I am trying to count days between two dates and if the total exceeds 180 days, I need an error message to pop up and require the user to adjust the dates until it is 180 days or less. I have a StartDate, EndDate, and TotalDays. So far, I've been able to get the total days between two dates with a calc script:var strStart = this.getField("StartDate").value;var strEnd = this.getField("EndDate").value;if(strStart.length || strEnd.length){var dateStart = util.scand("mm dd,yyyy",strStart);var dateEnd = util.scand("mm dd,yyyy",strEnd);var diff = dateEnd.getTime() - dateStart.getTime();var oneDay = 24*60*60*1000;var days = Math.round(diff/oneDay);event.value =days;}What I can't figure out is how to add the additional calculation requirement to check the TotalDays field for 180 or less and have the error message .
I am new to acrobat and am trying to create a few short scripts that ultimately calculates interest. Here is what I am looking to do:No matter what Date of Payment is entered is, the next box (labeled “Interest From”) will show the first day of the following month. Example: If 04/15/17 is entered as the Payment Date, the “Interest From” box would show May 1, 2017. So, I’d need a script to do that part.No matter what date the tenant moved out, the date in the next box (labeled “Interest To”) would show the last day of that same month. Example: Move Out Date is 09/10/17, then the “Interest To” box would show 09/30/17. This would be another script.Calculate the number of months from “Interest From” to “Interest To”. This would be a separate script also (In this example it would be 5 months).Items 1-3 would be in separate boxes (fields?Cells?) so they would be 3 separate scripts. I want it this way so the tenant can clearly see the Date of Payment,
In Acrobat, given two dropdown lists, one with 13 items and the other with 3, the user makes a single selection in each list. The result is to display a text field based on the unique combination of these two dropdown choices. My js skills are quite limited, but I assume there is a way to do that. Any help appreciated.
I would like to know if it is possible to underline a word within a text field. In my example below I want to underline the word MINOR: only. This is my coding: event.value="MINOR: " + this.getField(“BName”).valueAsString; I want the above to look like this: MINOR: Jane Doe Is this possible? Thank you
i need to convert field (number) to words ending "number only" and field 2 (number) to words ending "hundrud","thousand","ten thousand","lakhs"," tenlakhs " , "crore" "Rupees"," paise " when i am using, event.value = ConvertToWord(this.getField("field 1"required output if field 1 is 150 field 2 show "one fifty numbers only"field 2 validation scriptfunction ConvertToHundreds(num){aTens = [ "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"];aOnes = [ "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine","Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen","Eighteen", "Nineteen" ];var cNum, nNum;var cWords = "";num %= 1000;if (num > 99) {/* Hundreds. */cNum = String(num);nNum = Number(cNum.charAt(0));cWords += aOnes[nNum] + " Hundred";num %= 100;if (num > 0)cWords += " "}if (num > 19) {/* Tens. */cNum = String(num);nNum = Number(cNum.charAt(0));cWords += aTens[nNum - 2];num %= 10;if (n
I want to verify that user's entry in a field ("Line41") equals "Line40 * .02" or is blank or zero. Customer will get a discount of 2% if paid by a certain date, otherwise entry on Line 41 will be zero (blank is acceptable). I don't want to use a straight calculation in "Line41" because not all customers will get the discount. I'm using Adobe Acrobat DC. I'm a novice to JavaScript with a little experience. Your help is appreciated.
I have a form that could almost be completed on mobile as well as on the computer with the Adobe Acrobat app. Ideally, I would have liked to have a submit button with a code that picks up the email address from a pre-filled field which can vary. This works very well on the computer but not on mobile.However, the submit action works well on mobile if I just insert the URL “mailto:”, that is, without any address specified… So my work around would be to have a pop up that reminds the form filler to take note of the return address, and once they’ve hit “ok”, the message application is launched with the form attached to an email as usual. All the user would need to do is write the address he/she took note of.So I created a button that runs the pop up first, followed by the submit action. It works fine on the computer, but with mobile, the action breaks after I hit “ok” on the pop up. The submit action won’t follow. Both work well if isolated. Is there a way to solve this? I'm using an IPad
I want to learn JavaScript with Acrobat. I've been limited to the Acrobat menu tools for 3 years now and would like to expand my abilities with JavaScript. I am willing to travel to learn, but nobody is teach it that I've found. I can't figure out something as simple as inserting a time stamp into a PDF. I believe JavaScript can do it.
I installed build 2015.010.20056, but was then unable to fill out and sign forms, which I used to be able to do.
does anybody know where is the training link for Adobe java script it used to be at https://partners.adobe.com/asn/developer/training/acrobat/javascript/main.html
I have replaced save function gcbAVAppSaveDialog = (void*) ASCallbackCreateReplacement(AVAppSaveDialogSEL, AdobePluginHelper::AdobeAppSaveDialog); REPLACE(gAcroViewHFT, AVAppSaveDialogSEL, gcbAVAppSaveDialog); And when i set password security (In adobe acrobat 2015 with last updates) then open this document in Adobe Reader DC standard Adobe dialog appears instead of replaced dialog. I set breakpoint in my function and it not reachable (i mean Adobe for some reason omit my function and calls self implemented func)
Looking for some assistance with a PDF. I have two images that I need to display based on a value in another field. If the value of field A is X then show image 1 is field is Y then show image 2. Is this possible?
I am subscribed to Adobe Export PDF and am trying to convert a pdf file to Word and when I attach the document and start the process the program tells me that I need to enter password and when I do it sends a message that an error occurred while signing in. Has anyone experience this problem? I have been trying all morning.
Hello,I have a sequence of scripts I'm using to create copies of a page based on number of copies requested by the user (TotalPages). Subsequent to that I am running a script to rename all of the copied fields to a unique field by recreating the field name to stop sharing data entered into the field. Both of these scripts run fine for their intended purpose. However, I would like to at the same time as renaming the field to enter the page value before moving to the next field. I am new to JavaScript so I'm hoping someone can tell me what I'm doing wrong.This works for me:var TotalCopies = this.getField("TotalPages").valuefor (var i=0;i<TotalCopies;i++){try{var rct=this.getField("CurrentPage."+i).rect;var pg=this.getField("CurrentPage."+i).page;this.addField("CurrentPg."+i,"text",pg,rct);}catch(e){break}}this.removeField("CurrentPage");When I tried to add entry of text (line 08) into the newly created field I couldn't get it to work. What I tried below:var TotalCopies = this.getField
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.