Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Hi everyone.I´ve got this problem that one of my check boxes didn't hide again after clicking on my reset button as it should do.The code behind of it is this one:this.getField("box").display = (this.getField("s").isBoxChecked(0)) || (this.getField("s+r").isBoxChecked(0)) ||(this.getField("g").isBoxChecked(0)) || (this.getField("g+s").isBoxChecked(0)) ||(this.getField("g+s+r").isBoxChecked(0)) || (this.getField("o").isBoxChecked(0)) ||(this.getField("o+").isBoxChecked(0)) ? display.visible : display.hidden;So it should just hide or show on the choice of the user. Can someone see what I'm doing wrong?I'm sorry for my bad English.
Hello. I'm going to preface my question by admitting up front that I have *zero* knowledge of JavaScript and I have spent the morning searching the web and this forum for answers to my questions but nothing has worked so far.I'm trying to create a form for my leasing agent (who somehow manages to corrupt my Excel spreadsheet despite password protection AND locked cells) for his leasing commissions. I have a drop down field called "DealType" where he can choose the options "New Lease / New Tenant", "New Lease / Existing Tenant" or "Lease or Option Renewal". He then goes along and enters the rent components, which I have subtotaling into a read-only field called "TotalRent".I want to create a read-only field called "CommissionDue" which would read something like this in Excel-speak:If DealType="Lease or Option Renewal",TotalRent*50%,TotalRentUsing articles from Thom Parker, I put this script together:event.value = "";var a = +this.getField("DealType").value;var b = +thi
I have three fields in my PDF form.1st Field : CurrentDate (format date)2nd Field : Number of Days (format numeric)3rd Field : ExpiryDate (format date)What I would like to happen is when I input a date in CurrentDate, the ExpiryDate will be computed using the formula below:ExpiryDate = CurrentDate + Number of DaysThanks in advance.
Hi,I wondered if it is possible to do the following:a.) Connect to a database using the ADBC object and loop through the records.b.) If there are 2 fields in the database 'FilePathAndName' and 'ActionScriptName', can I loop through the records, opening each doc object and running an Action Script based on it's name.ThanksThe ADBC object is used in conjunction with the connection and statement objects to interface with a database. These objects constitute Acrobat Database Connectivity (ADBC), and provide a simplified means of using ODBC calls to connect to a database and access its data. SQL statements are passed to thestatement object’s execute method in order to insert, update, retrieve, and delete data.ADBC
hello all,I used Adobe Reader AstiveX ,1.loadfile XXX.pdf2. Printallthen show a warning ,like this how to disable this warning ,i dont need it .thank u
I have a script execute upon form signature that attaches the saved form to a new email and fills in the subject and part of the body. On the previous version of Acrobat Pro DC this worked great. We just updated to 2019 and the same script now attaches the FDF rather that the PDF. What do I need to change in the script to make that happen on a user's machine?For reference, the script is below:this.mailForm(true,"deptmail@company.com","","","Form submission");I know I can select the format to attach when using the 'Send Form' action, but this needs to be scripted so I can modify the subject and body of the email.Thanks!
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
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.