Questions
Recently active
Hi, I am very rookie with Java and need a form field to check a condition then return a value, my code looks like this:OnFocus:event.value = this.getfield("R_15b").value;if(event.value < 13){Event.value = this.getfield("R_18")}else{event.value = 0}R_18 is a calculated field and R_15b is an input field both preceding the event however when I tab to the field it seems to pause and run the script but the field does not populate.Please can someone assist in pointing out my error Regards
Goal: create javascript/Adobe SDK code that takes comments from one PDF and inserts them into another Nice to have: trigger this event from commandline, e.g. myScript source.pdf target.pdfIs this goal feasible? Is it possible to trigger this event without opening either PDF in Adobe Acrobat/Reader (if it's even possible to do this using reader only)?Much thanks!
This is my script.event.value = 0;var ProductMargin = this.getField(“ProductMargin”).value;if (ProductMargin = 0) event.value = 0;else event.value = this.getField( "MarginPlan").value - this.getField("NetMargin").value;And I am getting a SyntaxError: illegal character 2: at line 3. Can you tell me what is wrong? Thanks
Hi,I am thinking of getting Acrobat Pro XI and have never used it before. I am currently working with a number of Word documents that embed Excel spreadsheets and Letter tempates in them. Due to the nature of the embedded documents they can't be put on the web with a link and I cannot mess about with the documents too much. When I save the document as a PDF using Word I lose all the embedded files. Does Acrobat XI Pro let me do embedded files with in a pdf? If yes, can I embed Word and Excel files or do I have to convert them all to pdf? Also, if I convert Excel documents using this software does it retain formulas/macros/lists?
I have a form with multiple text boxes with defaulttext. Next to each text box I have a checkbox that starts out as not checked. When I open the form I would liketo see the default text in all of the text boxes, check off the ones that applyto a particular record, then have the default text disappear if not checked offafter saving the form. Any way to dothis?
Good Afternoon, I am working on making permit applications into fillable PDFs. My last hang up is our description dialog box. I have added a character limit to the box but would like away to inform people they reached the character limit. Is there a way to create an app.alert for this or another type of notification? Any input or help pointing me in the right direction would be greatly appreciated!Thank you!Paige
I can fill fields in a PDF using Excel VBA when I have Acrobat Pro installed however how can I fill the fields from Excel VBA if I only have Adobe Reader installed as I can't reference Acrobat Library in VBA.I need to do this however we only have limited Acrobat Pro's installed and I can't get it to work for users that only have Adobe Reader.I would have though there would be an answer to this however I have been search the net for days.ThanksGeoff
Hi Acrobat users,I need to finds all articles in any pdf document and highlight them as definite or indefinite.I have written the source code, yet something is not working when I compile it.Can you help me or clarify me where do I miss? Much appreciated for your time.Am I making wrong in array or variable declaration?app.addToolButton({ cName: "ArticlesCheckFn", cExec: "myArticlesFn()", cLabel: "Articles Check", cTooltext: "Run Articles Check"});var myArticlesFn = app.truArticlesdFunction(function(){var numWords;var bfound = false;var F = ["a", "an", "the"];var R = ["Indefinite article - A", "Indefinite article - AN", "Definite article - THE"];var Articles = new Array(F,R);var lowerpagelimit = 0;var upperpagelimit = this.numPages;var proglimit = upperpagelimit - lowerpagelimit;var progress = app.thermometer;progress.duration = proglimit;progress.begin();for (var i = 0; i < this.numPages; i++){progress.value = i;progress.text = "Processing page " + (i + 1);numWords = this.getPageNumW
I am looking for a smooth way of searching text, not just single words in a pdf document using the api. I am not interested in using the Search plugin. I have started to put together a function using the word finder and a vector of words, but I am a little surprised that it does not exist a better way of doing this. Or does it?
Hi, I have a text field called “customerBName” which by default is always visible and another two fields called “customerBAddress“ & “customerBTel” which by default are hidden.I need a script for the On Focus event on”customerBName” which will do the following:When the user clicks (or tabs) into “customerBName” then the fields “customerBAddress” & “customerBTel” become visible(but not printable).If the user then enters data in ”customerBName” and subsequently tabs out then the other two fields remain visible(but not printable).However, if no data was entered in “customerBName and the user tabs out then the other two fields revert back to their original hidden state.
can't retrieve my serial number
They are exclusive of each other. What I want is, if a value is entered in field A, make field B = 0 [or blank]. The problem is, if a value if placed in field C, then field B, which is not related go blank. Why? there is no other formula for that value.This is how I have the formula set up in each field. this.getField("TRADollar").value = "";this.getField("TRAPct").value = "";this.getField("Rothdlr").value = "";this.getField("RothPT").value = "";The calculation order is correct and listed as follows.
Hello, can you describe problem, why in my 3D object in 3DPDFscene, I cant disable double side rendering? In User Interfaceby Script allso not working. Im using "scene.renderDoubleSided=false;"Also i find problem when Edit some buttons in Acrobat DC in Acrobat X pro is problem with refresh text or buttons which appears/disappearsthank you for help!
Hello everyone,I have no JavaScript knowledge so I need your help.I have a form with multiple fields (they where auto-generated when I had Acrobat detect the fields so the names vary but they should all have the same properties).I would like to change the format to currency ( "0.10" should be "$ 0.10").Could you please advise on the JavaScript code I need to use?I tried to google some solutions but nothing seemed to work.Your help would be greatly appreciated
I am attempting to export the meta-data about the files contained in a PDF portfolio. I am using the code below which I copied from this link.// code followsvar d = this.dataObjects;var csv = ''; if (d) { cfl = this.collection.fields.length; tx_cols = new Array(); tx_names = new Array(); for (i = 0; i < cfl; i++) { tx_cols.push(this.collection.fields.text); tx_names.push(this.collection.fields.name); } csv = tx_cols.join() + "\r\n"; for (var i = 0; i < d.length; i++) { tx_data = new Array(); for (var r = 0; r < cfl; r++) { tx_data.push("\"" + d.getFieldValue(tx_names) + "\"");// tx_data.push(d.getFieldValu
Hi,I would like to extract the first page each out of a batch of pdf files and store it in one separat folder on a Apple MAC.I've got the information, that there ist no action in Acrobat itself.May be someone knows something about an combination with Acrobat and the Automator program from Apple?Or, is there a Script for those doings?Thanks for help.Alfred J.
Is there a way to search all of the javascript in a pdf? For example, if I get feedback in the console about a specific variable, how can I search for that variable?
I am trying to write a custom calculation that adds 3 percent to a specified total when over 500 dollars if a credit card number appears in a field at the bottom of the form
I have a calculated field in my form that adds 30 days to a date entered into DateofHire. I need the resulting date to be the first of the following month. Ex: Using a hire date of 7/1/17 my script results in 7/31/17, I need to calculate it to 8/1/17. If the hire date is 7/2/17, the script results in 8/1/17, I need the field to go to 9/1/17. I hope that makes sense. Here's my current script:// Custom Calculate script for NewDate field(function () { // Get date entered into the DOH field var sDate = getField("DateofHire").valueAsString; // Convert string to date var d = util.scand("mm/dd/yyyy", sDate); // Add days to date d.setDate(d.getDate() + 30); // Populate this field with the result if (sDate) { event.value = util.printd("mm/dd/yyyy", d); } else { &nbs
I'm currently trying to write a JavaScript to Extract pages from PDF files and save those extracted pages as a separate document.Say I have a 100 Page document, I wish to extract 30 Pages, now the first 90 should each be 3 separate 30 page documents, now when I get to last 10 I wish to save those 10 pages as another document. What's the best way to ensure this in a Script?[Here is the list of all Adobe forums... https://forums.adobe.com/welcome][Moved... Encore is to author a DVD and has nothing to do with a PDF... Mod]
Hello all,I use following code to check after clicking a "save" button(which is additional created on the pdf) if all or none of mandatory fields are empty:var i_sum;var i;var RequiredFields = new Array(14);RequiredFields[0]="T_UNTERNEHMEN";RequiredFields[1]="T_BPNR";RequiredFields[2]="T_TEL";RequiredFields[3]="T_ANSPRECHPARTNER";RequiredFields[4]="T_EMAIL";RequiredFields[5]="T_PROJEKTNAME_NR";RequiredFields[6]="T_KUNDENNAME";RequiredFields[7]="T_ANGEBOT_NR";RequiredFields[8]="T_BEGRÜND";RequiredFields[9]="T_PROJEKT";RequiredFields[10]="T_REGULÄRER_NETTOPREIS";RequiredFields[11]="T_ERFORDERLICHER_NETTOPREIS";RequiredFields[12]="T_NAME";RequiredFields[13]="T_ORT_DATUM";var fld = 0;i_sum=0;var fieldCount = RequiredFields.lengthfor (var i=0; i < fieldCount; i++) { fld = this.getField(RequiredFields); if (fld.value.length==0)&n
Hi, I am creating a estimation/quotation form that can be quoted in GBP, Euro and USD. To do this, i have a radial button for each and you select the one you want. In the form i have 3 sets of the same fields with different currency formatted and it hides the un required ones and shows the selected one. I've done this before and it worked perfectly. I needed to do an update to the layout so recreated on word and trying to copy over the custom calculations and javascript however when copied over, only the first bits work - i've tried rearranging it but its the first chunk always, so in the below all the visible work but none of the hiddenthis.getField("T1").display = display.visiblethis.getField("T2").display = display.visiblethis.getField("T3").display = display.visiblethis.getField("T4").display = display.visiblethis.getField("T5").display = display.visiblethis.getField("T6").display = display.visiblethis.getField("T7").display = display.visiblethis.getField("T8").display = display.vi
Good afternoon everyone.At the start of every form we fill out, we usually have to write in our personal information such as name, address, phone number, etc. I have something similar to that, but I want to give the user a chance to save what they have in a separate file before continuing. In theory, what I'm doing is giving the user a chance to save the file to a new location so they don't accidentally overwrite their copy, and once they've entered all the pertinent information, a button will be revealed that when clicked executes a Menu Item of File>Save As . Make sense?Once the user fills all of these fields in, another text field labeled "Submit" will appear. I'm using a text field because I'm using the Custom Calculation Script:var bReady = true; if(this.getField("DateOfReview").value.length == 0) bReady = false; else if(this.getField("ArrivalTime").value.length == 0) bReady = false; else if(this.getField("DepartureTime").value.le
I am updating to a newer version of Acrobat, and I have the following C# code which is giving me an error saying "cannot implicitly convert from int to boolean":var pdfDoc = (CAcroPDDoc)Microsoft.VisualBasic.Interaction.CreateObject("AcroExch.PDDoc", "");if (!pdfDoc.Open(SourceFilePath)) // <-- red squiggly under "Open()"{ throw new FileNotFoundException();}Obviously, in a previous version the Open() method returned a boolean value - now it returns an int. Can someone please provide me a reference to this method so I can determine the "meaning" of the returned int values? I cannot find any reference to this method. Help!!
I have a dropdown menu, that when an item is selected a description appears in a text box from the selection in the dropdown list. This is the script I already have, but it only shows for the first item in the dropdown list. I need help getting the text field to show from every selection in my dropdown list.var v = event.value;var targetValue = "";if (v == "Appliance Repair")'{ targetValue = "Text";}else if (v == "Carpet Repair"){ targetValue = "Text2";}this.getField("Description").value = targetValue;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.