Questions
Recently active
I am completely new to Javascript, so please bear with me!I have an acrobat form. I would like to use Javascript to take the last two characters contained in one field on the form and join them to the current date and time, putting the result in a second field. For example: ABCD, becomes CD-24-Jan-2017-20:39Something like this but it doesn't work, as the "WeighOrderNum" field remains blank with no ID!var n = this.getField("RegNum").valueAsString.substr(-2);var d = new Date(); //current date and timevar df = util.printd("-dd-mmm-yyyy-HH:MM", d)var f = this.getField("WeighOrderNum");f.value = n + df;Any help is much appreciated.
Hi,I want to know if there is a way to disable the ability to edit or export an adobe action (all in java script). In other words, I do not want users to have access to the code or be able to export it for use between users. I noticed the preinstalled Action Wizard actions such as "Archive Paper Documents" do not allow any editing (or access to the code).Thanks.Sue
I have one drop down named Quantity and three text fields named Qty1, Qty2 and Qty3. At the moment I'm using three checkboxes to run these scripts:checkbox1this.getField("Qty1").value = this.getField("Quantity").value;checkbox2this.getField("Qty2").value = this.getField("Quantity").value;checkbox2this.getField("Qty3").value = this.getField("Quantity").value;The scripts work fine but what I'd like to do is to eliminate the checkboxes as the triggers to place the Quantity amount into Qty1, Qty2, Qty3 text fields as I make the selections. Is there a script that would enable me to simply have the drop down populate the text fields if Qty1 is filled in (and likewise for Qty2 and Qty3 fields). Or am I stuck and have to use the checkboxes to trigger? If this is possible can someone shed some light so I can see how it can be done? Thank you.
I have a checkbox that the user can click, which will open another PDF form for them. I put the code below as a javascript action on the checkbox. It works for PC users, but not for Mac users.var document = app.openDoc("/internal.location.com/mke/Group/user forms/Advertising/Site Email Request Form/Z_Blank Form/email request form.pdf");I verified the path of the PDF that I want the checkbox action to open by using "this.path" in the debugger (Acrobat DC on a Mac). I had the "Advertising" volume mounted on the Macintosh. When I ran the "this.path" command, it returned Advertising/Site Email Request Form/Z_Blank Form/email request form.pdf The above code only works on the PC not the Mac. Is it possible to get the checkbox script to work with both a PC and a Mac? What changes do I need to make? Based on the results from running "this.path" on the Mac, it looks as though the script should work as is,since the path is valid, or does it have to match exactly what this.path
I have 2 dropdown Fields.One Field has x Options. The other field has no available options by deafault, but should get different options based on the value of field1.Currently I wrote this script, but it isn't quite working as intendedthis.getField("Field2").clearItems(); //deletes anything in field2if (this.getField("Field1").value != "") // Proceed to check different options only if field1 isn't empty in the first place{ if (this.getField("Field1").value == "Option A") // Is the value of Field1 "OptionA" { values = [" A", "B", "C", "D"]; // Initialize array with possilbe choices this.getField("Field2").setItems(values) //Add choices to the dropdown field "Field2" } if (this.getField("Field1").value == "Option B") //repeat for option b {  
I'm having problems with a PDF form in Acrobat Reader on IOS. There's a function to set a checkbox value based on which range a field's value is within. There are 3 ranges (55 or less; more than 55 up to 85; more than 85). The corresponding values in the checkboxes are 'A', 'B', 'C' (they originally had the range description, but I simplified it to a single letter for debugging purposes). If the value is 0 then I set the checkbox to 'Off'Everything works properly in acrobat, but on IOS, it seems to be completely intermittent. I added a field to create my own 'debugger' on iOS, and I'm populating it with the values that of the field, the range value that needs to be set in the checkbox, and the actual value of the checkbox.Value: 60Range Value: "B"Checkbox Value: "B"Each line is added to the text field right after the variable or checkbox value is set in the function. On IOS, the checkbox is either getting set to 'Off' despite the fact that the range value is 'B' (or whatever the actual
Hello folks.I'm attempting to pull the file folder in which my PDF is contained into a text field. I'm assuming there is a way to do this in the document javascripts, but I cannot seem to figure it out.Is there way to either:1) determine the folder name in which the PDF is located and push that into a text field (e.g., the fold name is "412" and that's what I'd like in the text field), or2) Remove a portion of the file name itself, and push what's remaining into a text field (e.g., the file name is "Review Documentation 412" and I want "412" to appear in the text field.If it matters, I'm using Acrobat Pro CC.Thanks in advance for any assistance!
I need help with the proper javascript for a multi-page form where only page 1 of 3 pages needs to be submitted by email when the user clicks on the email button I added at the bottom of page 1. Right now it creates & emails a .pdf containing all 3 pages when the user clicks on the email button. Page 1 is the form itself [to be completed & digitally signed by the user] and pages 2 & 3 are just informational & I don't need or want page 2 & 3 to be part of the emailed .pdf. I know absolutely nothing about javascript so I'll take whatever help I can get.I don't know how to attach/insert the .pdf file to this message for you to review it.
I created a JavaScript code which imports files into the attachment of a pdf form, then searches for the written pdf filenames within the pdf form and links the texts to the imported files. I employ Adobe Acrobat X (10.1.16)The code (which is run as folder-level JS) is shown here:var impDatObj = app.trustedFunction( function(odoc,filenme,filepth) {app.beginPriv(); odoc.importDataObject(filenme,filepth); app.endPriv(); });var attachpath="/mysrv/subdir/";impDatObj(this, "abcdef_g.pdf", attachpath+"abcdef_g.pdf"); impDatObj(this, "987654_3.pdf", attachpath+"987654_3.pdf");var numPgs = this.numPages; for (var jj=0; jj<numPgs; jj++) { var numWords = this.getPageNumWords(jj); for (var i=0; i<numWords; i++) { var ckWord = this.getPageNthWord(jj, i, false); if (ckWord.indexOf("pdf")>=0) { ckWo
Hello! I am fumi. I want to do zoom-setting named "FitPage" to allbookmarks(include children) of some pdf files using Javascript + "ActionWizard".(I have "Acrobat DC pro".) Could you show me sample codes of javascript for it? I found some addin for acrobat,for example "Ever map",but,I am looking for a method using javascriprt instead of addin. Thank you.
I have a custom form built in PDF and I need the user to be able to type in their Dollar amount at the top ( $10,000) and then have the corresponding breakdowns for each month - i.e. 5.5% of $10,000 in January, 6% of $10,000 in February.Is this possible? I am afraid this is way out of my scope!Thanks in advance.
I'm creating a form and I need the code to calculate 6% tax to the price total (field)? Please advice, thank you in advance!
I created a landscape booklet in Microsoft Word 2007, converted it to a PDF, then tried to print only to have the opposite pages print upside down. The settings are:BookletDoubled sidedDuplex printing, flip on short side.I have tried every imaginable setting to resolve this problem to no avail. Please help! Thank you!
Hi, I have written a script to auto populate a 5th field, I have 4 fields each with less that 20 to be put into them, if all 4 fields have less that 20 (each) then the 5th field is populated with Pass, if any of the 4 fields have more that 20 in it then the 5th field is populated with fail.I works sort of because if I change the value of var d then I can get pass or fail into the 5th field, if I change any of the other fields there is no change to the 5th fieldCan someone help, pleasevar a = getField("450").value;var b = +getField("350") .value;var c = +getField("250").value;var d = +getField("stroke end0").value;if (a,b,c,d<=20) {event.value = "Pass";} else {event.value ="Fail";}Thank you
Greetings, everyone!Is there a JavaScrip code available to export comments from multiple pdf documents into an Excel-like program?Thank you in advance!
How can I convert a folder of jpg files to pdf files?
I need to embed a sound via a button. In 'add a sound' I try selecting either uncompressed WAV or AIFF files, generated by Amadeus Pro. Acrobat Pro DC rejects both with dialogue saying only uncompressed WAV or AIFF files can be attached. Seems to be no way round this. I am trialling Acrobat specifically to embed WAV files in a PDF. So, if I can't fix this, there's no point is buying. Any thoughts?
Hi!I do a lot of work for tabletop gaming companies and I'm hoping to develop a feature in InDesign where the exported PDF creates and displays a random number between say 1-20 inclusive. I was looking at setting this up in the InDesign file, but I've been directed to post this query here. The random number would appear as though it was on the face of one side of a dice, and would be different every time you open the document.I've had a bit of help from a JS savvy mate, and are using the following coding:function d20() { return Math.floor(Math.random() * 21);}the trick I'm facing is associating this function with a particular text box. I've added it to the JS Document Scripts, just how do I get it to display in the document?Thanks heaps for your help.
Hi there,I am using PDDoc.InsertPages to insert 01 pdf page to another 400 page pdf and it takes about 5 minutes. Is there any other way to do it more efficiently? After all, it's only 01 page insert.My environment is excel 2010 and Acrobat X Pro.Here is my code and it works well except too slow!!!Public Function MergePDF(SourceFile, TargetFile, MergedFile) On Error GoTo Error Dim AcroApp As Acrobat.AcroApp Dim Part1Document As Acrobat.AcroPDDoc Dim Part2Document As Acrobat.AcroPDDoc Dim numPages As Integer Set AcroApp = CreateObject("AcroExch.App") Set Part1Document = CreateObject("AcroExch.PDDoc") Set Part2Document = CreateObject("AcroExch.PDDoc") Part1Document.Open (SourceFile) Part2Document.Open (TargetFile) ' Insert the pages of Part2 after the end of Part1 numPages =
Hi,I have created a user form with Livecycle designer 8.It is a xfa form in pdf format.I want to extract the form field data when user uploads the form at client side using javascript or angularjs. Didn't found any solution yet.
I have a form with multiple signature fields and multiple dropdown lists (all lists have same values " " {Space (acting as blank)}, Yes, No). I want to prevent a signature from being added to PrepSign1 if DropDown1 & 2 are not set to either Yes or No. Below is a sample of my form. I have a total of 8 signoff's for each level (Prep/Reviewer).
I'm using C++ for building our Adobe Plugins. I want to disable one of the toolbar buttons when the document is opened in protected mode and until we click on "Enable All Features".We are using this call AVToolButtonSetComputeEnabledProc(cabinetButton, ASCallbackCreateProto(AVComputeEnabledProc, &CabinetEnabled), NULL); to enable/disable the button.I'm checking for Active Doc in the call back CabinetEnabled using AVAppGetActiveDoc()AVAppGetActiveDoc() is returning null when the pdf is opened in protected mode until we enable all features where as its not null when opened in Adobe DC.Is there a way that we can figure out if the document is in protected mode. ?Thanks in advance.
Hello,I would like to create a program which converts 3d files to PDF 3D.I am really flexible. It can be with any version of Adobe Acrobat program, and in any language.The point is that I wouldn't need to open the 3d file with the Adobe Acrobat Reader, and save it as PDF.All has to be Automatically!Thank you!!!
I am trying to create javascript to populate a field (FieldText2) with a dollar amount based upon whether or not checkbox1 (2 hours) or checkbox2 (4 hours) is checked multiplied by the dollar amount that is entered by the user in FieldText1.I've made multiple attempts but cannot get the javascript to work. Thank you.
Hello,I am administrator in our company and I have problem/question.Although I disabled all online features using the Configuration Wizard, Reader DC and Acrobat DC still ask for proxy credentials until the users enter their data + check box 'save it'.Why does the Reader asking for the credentials and for what?Most users don't know what "proxy credentials" are although they use them every day at the internet browser - sad but true.And this circumstance causes error tickets. I am tired to say: "just enter your 'internet credentials' " >.< Is there any way to stop this prompt ?Thank you,Philipp
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.