Questions
Recently active
I've used both of these approaches successfully but would like to know which is the preferred way to add numeric field values? a. Is example 2 preferred to example 1, or 1 preferred to 2? b. When adding a series of numbers as in these examples, is it always preferable to enclose the number variables in parenthesis? c. In example 1, is using "this.getField" preferred over "getField" d. Is there a better way to do this? e. Does either of these approaches encourage concatenating values vs. totaling their values, so that 1 + 2 + 3 + 4 = 1234 instead of = 10?Example 1var m01 = getField("num.CD.M.01");var m02 = getField("num.CD.M.02");var m03 = getField("num.CD.M.03");var m04 = getField("num.CD.M.04");var creditsTotal = this.getField("num.CreditsTotal"); creditsTotal.value = m01.value + m02.value + m03.value + m04.value;Example 2var m01 = +getField
Hi. I have created a form in Acrobat Dc using form fields to input data, then finalised by initiating an actional button to make content 'read only' which was configured using a java script with mouse up action. This form is saved in an EDRMS as a template to allow the end user to raise automatically in their respective folder to submit for approvwl. When tested by a user that has adobe pro dc installed this works well and releases automatically once the form is completed and made read only by iniating the button. However if this action is completed by a user that only has Adobe reader, the form will launch another 'save as' window which will require saving the form through navigating back to their folder to save, even though the original form (generated by the template) is still in edit mode. Hope this makes sense, appreciate any assistance. Regards Annemarie
I have no javascript experience at all, but a client has told me it was possible to have scrollable content within a PDF. It would look something like this, but on an interactive PDF. I can create interactive buttons and forms, but It seems that only javascript can create scrollable text/content like they are asking for. I just want to confirm if this is the case, and how difficult it would be for someone to accomplish this. Really appreciate any help from the community!- John
Trying to convert following formcalc script to javascript, and not getting to work. Just wondering if someone could take a look at and possibly convert to javascript? Thank you so much! IF(Personnel_nab>=0,Personnel_nab+-Personnel_osb)
I’m working in Acrobat DC I’m creating a business card template. The fields are EmpName, Title, PhysicalAdd, Telephone, FAX, and EmailAdd. My dilemma is with EmailAdd. The employee can choose to have their email address on the card or not. Below in span 5 you will see that I have added the @HSa.co.merced.ca.us to the span. All the worker does is enter the first part of their email in the EmailAdd field. If the employee leaves the EmailAdd fieldblank/empty, @HSa.co.merced.ca.us will still print on the card. How can I accommodate for an blank/empty EmailAdd field? var spans = event.richValue; spans[0] = new Object();spans[0].text =this.getField("EmpName").valueAsString + "\r";spans[0].fontWeight = 700;spans[0].textSize = 9; spans[1] = new Object();spans[1].text = this.getField("Title").valueAsString + "\r \r";spans[1].fontWeight = 700;spans[1].fontStyle ="italic"; spans[2]= new Object();spans[2].text = this.getField("PhysicalAdd").valueAsString + "\r \r"; spans[3] = new Object();spans[3]
I am new to javascript. I have a PDF form that adds all the total services [TOTAL SERVICES COSTS]. The next field is TOTAL SERVICES COST 2, where I have used a javascript to deduct 10% for pre pay. It is in the custom calculation field and reads [event.value = Number(this.getField("Total Services Costs").valueAsString) * 0.9]. It is not calculating correctly. Any help is appreciated.
Hello, I have a folder of files having over 8-10 thousand pdf file on it.... most of these files has only one bookmark on them but maybe around 1000 of them has multiple bookmark on them...I need to split these files into separate file using top level bookmarks. Problem/bug that Adobe Pro split function has, is that for all those files with one book mark it creates duplicate file for it.... i.e. there is a file called A.pdf with one single bookmark on it called BM. Now when I ran the Split function to split it using top level bookmark, it creates another file called A_Part1.pdf in the same folder now in the same folder I have two identical file called A.pdf & A_Part1.pdf. I do not need duplicate file with two different name. I need to stop this duplication of file... if there is only one Bookmark then splitting operation should be skipped so I only have one file in the folder called A.pdf or if it creates A_Part1.pdf then it should delete the original file if ther
Buenos días, necesito hacer en mi trabajo un formulario que haga sumas parciales sin sobrepasar un valor y al tiempo realice la suma total de los subapartados, entiendo que solo se puede hacer con JavaScript y no tengo demasiada idea de programación, por no decir que soy nulo en ello.Muchas gracias de antemano.Un saludo
Hallo. Wir konfigurieren gerade einen Terminalserver, auf dem unter Anderem auch Adobe Acrobat DC läuft. Beim Remotezugriff und starten von Adobe Acrobat DC tritt das Problem auf, dass sich der schwarze Mauspfeil nur sehr langsam und ruckartig bewegen lässt. Kann man diesen schwarzen Pfeil irgendwie deaktivieren, sodass man den Standard Winows Pfeil nutzen kann?Das ganze passiert nur über VMWare
Dear All,I use Python to call Acrobat JavaScript to convert PDF to EXCEL. The code is like following: aApp = win32.Dispatch('AcroExch.App') pdDoc = win32.Dispatch('AcroExch.PDDoc') if pdDoc.Open(r + "\\" + e): jsObject = pdDoc.GetJSObject() jsObject.SaveAs(des + "\\" + e + ".xlsx", "com.adobe.acrobat.xlsx") jsObject = None pdDoc.Close() pdDoc = None aApp.Exit() aApp = NoneI have converted 6000+ PDF successfully without any problem.But recently when I reused this code to conver an
Hello, the problem is the following ... When I execute the command:this.mailDoc({ bUI: false, cTo: "apstory@example.com", cCC: "dpsmith@example.com", cSubject: "The Latest News", cMsg: "A.P., attached is my latest news story in PDF." }); Notice that the window minize button does not appear in the image. Why is this due?The window that emerges from outlook is blocked and I can not return to the tray to enter and open other emails to complement the information. please help.
Hi,How to get FileName path from dialogBox?I want one dialog box with two question.First question is: which file do you want work with? and open buttonSecond question: enter page range AND here some INPUT FIELDSo I want get string with file path and string with range
I have Windows 10 and Adobe Acrobat DC Pro. I have a Fujitsu fi-6140 scanner. When I attempt to use Adobe to scan, most of the options (greyscale, B/W. color document, etc) are grayed out. The only option is Custom - which is also crippled with most options blank. It will not scan both sides of page, even though that was option selected. How do I repair this so all options work?
How can it be done with Java Script to scan a document (HP Scanner) and that it is automatically saved in a specific location?
I am trying to identify what page number a certain layer is on. So I am getting all the OCGs then comparing for 2 specific layer names. "No Color" and "651 Highways"I am trying to identify what page number these reside on in the document and output it to the console. Here is my code that I am running from the document level. It works with the exception of this.pageNum which obviously gives me the current page...not the page that the particular layers reside on.var ocgArray = this.getOCGs();for (var i = 0; i < ocgArray.length; i++) {if (ocgArray.name == "No Color") {console.println("Found " + ocgArray.name + "\nPage number: " + this.pageNum);}if (ocgArray.name == "651 (Highways)") {console.println("Found " + ocgArray.name + "\nPage number: " + this.pageNum);}}On a side note....I will be searching for a pretty long list of layer names.... would this be better to create an array of layer names to search against?Any help would be much appreciated!
Hi,Everyday I have to review several pdf documents, search for specific words that are not allowed, mistakes, typos, etc, and do comment annotations, either highlights, text boxes, insert text at cursor or replace.I have found useful tool sequence that finds specific words in the pdf and highlights them, this is very helpful already but I want to take it to the next step.I am trying to find a script that instead of doing the highlight annotation, it does the replace annotation and gives an alternate option to not permitted words, for example:Lets say that the word "colour" is not permitted, it should say "color" instead. In the sequence I already have I input the "colour" in the list of words that should be highlighted, and after running the sequence the pdf would look like this:"The colour is blue"what I want is, instead of highlighting it, it should do the replace annotation and suggest the word "color" that I should've already inputted as a replacement everytime "colour" is found. T
I am working in a PDF Form and trying to do this calculation. I understand that I need to do it in javascript, which I have never done. Any help is appreciated.Total Services Costs x .9 = Total Services Costs 2
Good morning,I am having an issue figuring out what is wrong with my java script. I copy and pasted an old one I used (and worked/works fine), but this time it's giving me a syntax error. Any help is greatly appreciated, I'm sure it's something simple I'm missing. I am creating a submitable form.It tells me "SyntaxError: missing } after property list 5: at line 6".var DEPT = this.getField("DEPT").valueAsString; var RQSTNAME = this.getField("RQSTNAME").valueAsString;var PROJNAME = this.getField("PROJNAME").valueAsString;var LEADER = this.getField("LEADER").valueAsString;this.mailDoc({cTo:"email@email.com", cSubject: "Project request for: Dept "+DEPT+" - Requestor "+RQSTNAME+" - "+PROJNAME+" - "+LEADER+", cMsg: "Please see the attached project request."});
Hey Guys!I found a lot of information online on how to create a custom dynamic stamp - success after a few goes of adding in text and creating a form field to add javascript code for the date section.Then I managed to work out the tricky part of actually importing this stamp to work as dynamic (seems most online resources are outdated) including editing page templates and copying the file over to ENU stamp folder in the Adobe Program Files directory.Now my only problem is the stamp that I imported is pasted in as an entire A4 page with my small stamp in the corner. The stamp is the correct size and I can paste it in just where I want it but there is all this blank space that looks to be part of the stamp. It doesn't affect the look but it messes with the documents because it is harder to insert other text or comments in a space that already has a stamp on it - even though it is just blank space covering most of the document...I tried cropping the stamp file but this appears to complete
I have some code that allows the user to select from a dropdown list, and based on that selection, another dropdown list is populated with specific selections. Once the user makes a selection from the next dropdown list, 3 text fields are populated (this information is coded into the Document JavaScript). I am running into an issue where I am trying to add a new selection to the second dropdown list, and its corresponding information to the Document JavaScript, but nothing is happening when I select the new addition (i.e. the text fields stay on the previous selections information). I've double checked the code and seems correct, it just doesn't seem to want me to add another selection!Any insight would be greatly appreciated.Thank you.Gary
I used adobe acrobat pro to make a binder of duplicate forms and when open on my iPad using the reader app I can fill in the forms, but because the forms are all duplicates, all of the box names are the same, so each page comes out identical. I can't just rename the boxes because each form has over 200, and it would take forever since I have 10 of the forms in the binder. I tried creating a portfolio, which seems to have worked, but once i open it on the reader app, it says "modifying the document is not allowed because it is an attachment". Does anyone have a suggestion on how to either fix the binder so that all of the boxes are not named the same without manually changing the names individually, or a way to make the portfolio editable, and not viewed as an attachment?
Hello all!I have a pdf (well several) that contains an image box. Is it possible to use either java script or the action wizard to:1 - replace the image with the next image in a file,2 - save the pdf as a new pdf3 - save the new pdf as a jpeg4 - repeat indefinitely until all the jpeg have been used and all the pdfs/jpegs have been created?Would LOVE input!Peggie
i use this : event.target.value = util.printd("dd/mm/yyyy",this.creationDate); to add automatically system date to a fill form... now how i check if date is Sat or Sun? and how to check if month is Jun July or Aug?
Hello guys i need your help,i have 5 Checkboxes. Everyone of them can be checked or unchecked by itself. If the 5th Checkbox is checked, a RadioButton with 2 options should be activated. If the 5th Checkbox gets unchecked the linked Radiobutton should be unchecked and deactivated, so that both options are blank.So my first question is what to write in js and my second question is where to write it or which trigger i need to choose.I've tried it now for houres and didnt come to a close, i hope u can help me.Below u can find what i already tried. "Chechbox5" is obviously the name of the fifth Checkbox and "RB_1" the name of the Radio Button. My Acrobat DC Version is 2015.006.30452.ThanksFirst Tryvar source = null;source = this.getField("CheckBox5")if (source.isBoxChecked() == false){ this.getField("RB_1").value = false;}Second Tryif (this.getField("Checkbox5").value == false){ this.getField("RB_1").value = false;}Third Tryif (this.getField("Checkbox5")
I'd like to program a "bug" into a proofreading test form I'm working on. The form is just a text field and my idea is that every so often, when a character is pressed on the keyboard, the field will select a different character to input into the field rather than the one pressed based on the character count. Input example: The quick brown fox jumps over the lazy dog.Output example: The quick lrown fox tumps overjthe lazy nog.In the output example, every 10th keystroke is replaced by a letter 10 places after the letter pressed on the keyboard. (A-Z & space = 1 through 27)I'm not a whiz with JavaScript, but not entirely uneducated either. The only part that's eluding me is the "I'm pressing 'A'! Why is the &$+!?#@ field printing a 'K'?!" effect. Can such a thing be done?Thanks in advance!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.