Unlock the power of Acrobat SDK through our community.
Askettäinen
Hi,So even though this question doesn't pertain to Acrobat I'm asking it here because it's a javaScript question.I have a little scripting experience but I'm brand new to JavaScript.Can someone please explain the example of the ++ operator found on this page?The example is below so you don't actually need to follow the link. Arithmetic operators - JavaScript | MDN // Postfix var x = 3;y = x++; // y = 3, x = 4// Prefixvar a = 2;b = ++a; // a = 3, b = 3A little history...I was trying to increment a variable by one through each iteration of a conditional statement.I was trying to duplicate an item "x" number of times until "x" equaled 10.I basically wrote the offending line of code as x = x++;That statement sent the script into an infinite loop.I did this based on my experience with MEL for Maya.So from what I read & what was explained to me about JavaScriptI learned that unlike the other language I knowa postfix ++ operator would keep the variable the same &a
How to define a shortcut key so that text box can be filled?
HiI use PDBookmarkGetAction (aBookmark) to get the PDF bookmark's actionbut if the bookmark has multiple actions, PDBookmarkGetAction (aBookmark) only get one action.How I can get another action of the bookmark?Thanks.
My organisation keeps thousands of PDFs (mostly scanned forms, documents etc.), many of which have ridiculously large file sizes due to incorrect scan settings. I'm looking for a way to automate the task of reducing the file sizes while indicating that the file's size was reduced in case something goes wrong.Hence, I'm trying to set up a custom Action in Acrobat Pro XI to: Reduce PDF file sizes in a directoryCan be done very easily: Reduce PDF file size on several pdf automatically ()Delete the original PDFsAcrobat allows you to overwrite the original PDFs (by keeping the original file name), however, I need to insert some text in the filename in order to indicate that it was reducedIf text is inserted into the file name, both the original and the reduced files are retained in the directory 3. Output logs for what was doneWhether or not the file size was successfully reducedWhether the file was skipped (for whatever reason)Whether the original file was deletedDa
When I select "preflight" in Acrobat XI pro, the dialogue box which pops up with all the options is very difficult to read because all of the line options in the dialogue box are squeezed together. It's so squashed together almost completely overlaying each other that even the click down option for more is difficult to execute. I've tried resizing the box itself by just dragging its corners but while the box itself expands the text remains crunched together. I'm on a Microsoft Surface Pro running Win 10. I'm trying to get a document print ready and this was to be my first step. Is there a setting I've missed? Anyone have this problem/fix? Thanks in advance.
Every file I have 'Sent for Signature' appears to me as a single page which I then add a signature and date block to before sending. However, what gets sent (and thus returned to me after being signed) always includes this extra blank page with a signature block on it. A lot of my clients don't even realize it's there until they can't send the form back without signing it. For my purposes, this extra signature block is totally unnecessary and I definitely don't need an extra blank page with a signature on it (it confirms nothing for us). I've looked through my options before and after sending and I can't find the parameter to turn this off anywhere. It never shows up until after I send the document. Can anyone help?
Hi,I am trying to use the Embed3dData plugin on Adobe Acrobat DC.However, most of the objects are simply undefined...I tried downgrading my Visual Studio 2015 to 2013, and still, no change...Thank you!!!
I need help with a form I am putting together.The formula i use on excel is:=IF(AGE>70,0,AmountSelected*VLOOKUP(AGE,RatesBelow$A$15:$E$69,IF(GENDER="Male",1,2),FALSE) /1000)*(EDATE(STARTDATE,12)-TODAY())/365)))))the table i have for the ages and rates is as below:Age Male Female18 0.31 0.1719 0.43 0.2120 0.49 0.21and so on and so forth...so if the user selects an amount of 10,000 and the user is an 18yr old male then => (10,000(18Male=0.31)/1000=3.1) *(01/06/17-30/06/17)/365)(3.1) *(43252-42916)/365)(3.1 *336)/365)(1041.6/365)=2.85How do I translate the above into javascript?
Hello, I need help with a form i am putting together and am very new to javascript.If the age entered in box1 is 70, i would like the value in box4 = "Too Old" or "0" and if age is 15, then box4 = "Too Young" or "0". If the age is between 15&70, then calculate box2.value multiplied box3.value.Basically, in MS Excel, my formula is =IF(OR(Cell1>70,"Too Old",Cell1<15,"Too Young",Cell2*Cell3)Thank you.
I have a pdf document that does not contain any date. When I print the document I want the current date to print. I am looking for instructions to do this. I've found previous versions that suggest adding a text field and some javascript using the “document will print” feature under “document processing”, but I can’t find accurate/detailed instructions for it to work with Acrobar pro dc. I’m not familiar with scripting.
HI all,I receive the following message after editing an existing PDF.The document could not be saved. The file may be read only, or another user may have it open. Please save the document with a different name or in a different folder.This occurs whenever any edit is made and the document is definitely not being used by anyone else and I do not want to create a new document.Any help would be appreciated.Thanks,John
hi, I'm working on a form with several check boxes. There is a section in particular that I would like it to auto check a box in this way:When Checkbox A, B and C are checked Checkbox D would automatically check and when checkbox D is checked Checkbox A, B and C would also auto check.i found this code online but its only working for ONE box, tried to make adjustments to it but its not working. Any help would be appreciated. Thanks var v = event.target.value;var f = this.getField("Checkboxb");f.value = v;
If my user enters a number that starts with zero, the zero disappears once they click out of the field. I need for the zero to stay. For example, they enter 09876, only 9876 showsThis is the script that I have so far in it. . var desiredLength = 9; // the number of digits the user should enterevent.rc = true;if (event.value && event.value.length!=desiredLength) { app.alert("You must enter exactly " + desiredLength + " digits."); event.rc = false;}
Hi, Can someone please help me , I have 10 fields which are populated with measured data.The data can be positive or negative, but not greater than -10 or +10If the data being measured is put into any of the fields, is less than or = -10 / + 10 then I want to populate another field with "pass"but if the data being put into any of the fields is greater than -10 /+10 then I want to populate the other field with "fail"This is measured data,microns so can be positive or negative.Many thanks
Hi guysI'm trying to force printing with document+comments with a plug-in as I want to replace the print command.If I want to print silently, it's OK thru javascriptIf I show the print dialog, the user may change the setting, my PDDocWillPrintDocInMode notification will reflect that.If the mode is wrong, how do I cancel the whole print process?ThanksChristian
Hello.I'm trying to use OLE Automation for Acrobat Reader in my application on VFP. There are no problems anywhere, but I came across a question that I can not find the answer to: How do I programmatically get Acrobat Reader to enter the "Read Mode (Ctrl-H)" mode?AdobeApp = createObject ('AcroExch.App')AdobeDoc = createObject ('AcroExch.AVDoc')AdobeDoc.open (AdobeFileName, '')AdobeForm = createObject ('AFormAut.App')AdobeFields = AdobeForm.fieldsAdobeApp.ShowAdobeDoc.BringToFront ()? go into Read Mode (Ctrl-H)Thanked in advance for help
Hi guys, I'm currently using the following script for my day // get the date from the "Date1" var d = new Date(this.getField("Date1").value);if (!isNaN(d.getDay())){switch (d.getDay()){case 0: event.value = "Sun";break;case 1: event.value = "Mon";break;case 2: event.value = "Tue";break;case 3: event.value = "Wed";break;case 4: event.value = "Thu";break;case 5: event.value = "Fri";break;case 6: event.value = "Sat";break;default:event.value = ""; }}else{event.value = "";}My problem here is that for exemple.. today the 28th says TUESDAY not Wednesday... I'm extremely confused. Any ideas?
I need to integrate Successfactors with Adobe DC using SDK. Please suggest if this is possible.
Siempre introduzco las mismas secuencias de comandos JavaScript en los documentos PDF de acrobat.Es decir, en cada documento PDF, tengo que añadir los scripts cargar_municipios y validacion_general.Me gustaría poder hacer esto automáticamente, para no tener que hacer siempre lo mismo en todos los formularios.pdf Un saludoMuchas gracias
Trying to deactivate Adobe Acrobat XI Pro on my old computer so I can install it on my new computer. The Adobe instructions say to sign in, go to Help and select Deactivate. When I sign in and go to Help, there is no option on the drop down menu that says deactivate. How do I transfer my existing license to my new computer?Marge Sedlak
I am fairly new to creating forms via Acrobat. This form is a questionnaire meant to be distributed to many different clients. I haven't had any issues creating it, and it looks fine, I'm just encountering one major issue. I'm trying to insert a dropdown (i.e. Business Unit) ... Upon choosing a business unit from the dropdown, I would like that to reveal a new dropdown with options shown based on the user's previous selection. (i.e. Business Unit 1 only shows NY, NJ & PA as the choices, whereas choosing Business Unit 2 would reveal CA, NV & AZ....etc) I believe I have written the correct javascript to execute an action like this, however I do not think I am putting it in the right place or understand where the right place to drop this is. If someone could help walk me through this, and verify that I am headed in the right direction - any help would be MUCH appreciated! Thank you
I am using the following code to check that the percentage total does not exceed or is under 100%. When I reset the form I get the pop-up 8 times, one for each calculation. What do I need to add to stop the app.alert when the form resets and all values are now zero (under 100%)?if (event.value>100) app.alert("The total cannot exceed 100%.");if (event.value<100) app.alert("The total must equal 100%. Please continue entering.");Thank you for your help!DP
Hi, I have a drop down menu and want to link the subjects from it to .pdf attachments in document. Bsically when I'm calling the items in drop down menu it's triggering to open the attached document. I've created the JS code for the single button: this.exportDataObject({ cName: "Doc_1", nLaunch: 2 }), and trying to make the same with drop down menu. Can someone help me with that?
i have one dropdown menu, with 3 values123and one fill text box.now if user click 2 option then cout++fill box +1 +2 +3 . . .e
I'm creating a pdf that will show the same stats for different subcontractors. I would like to have all the subcontractor names in a drop down menu. When a subcontractor's name is chosen, a layer will be turned on that consists of a text field with the sub's stats.All of the different subcontractor text fields will be located in the same place on the pdf, each with it's own layer. So that when a sub is chosen his layer is made visible and all of the rest are made invisible, until their name is chosen on the drop down menu.Can this be done by adding script to the custom validation window under the drop down menu's properties section? If so, does anyone know what that script would be?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Onko sinulla jo tili? Kirjaudu sisään
Eikö sinulla ole vielä tiliä? Luo tili
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.