Unlock the power of Acrobat SDK through our community.
Recently active
After a migration from win7 from win10, my team do not know how to execute the script anymore. Here is the script I want to execute, it should append another PDF to the end of document and send a mail (I did not write it) : https://justpaste.it/61gxj .From what I understand from google, I have to put this script in C:\Users\UserName\AppData\Roaming\Adobe\Acrobat\Privileged\10.0\JavaScripts to be able to execute trusted methods/functions. Then, how do I actually use this function ? Is the path correct ? Thank you for your help, I'm really new to this.Edit : app.getPath("app","javascript"); returns /C/Program Files (x86)/Adobe/Acrobat DC/Acrobat/JavaScripts so I added my script there
Hello,I have a PDF form with 33 pages. I want it to work this way:- Every time you fill in the fields of a page, you click on a button to lock that page, and then you move on to the next one.- Sometimes, when you have a specific value entered on the text fields, you click on a button in order to duplicate the page that is already locked and re-enter the needed information. (The button duplicates the page and unlocks its text fields).- A page can be duplicated as many times as needed, and everytime you need to be able to fill in the text fields.By using Javascript, I was able to do all of the above, except of one thing: Once my page is duplicated (using a Template), I cannot predict the name of the new page, thus making it impossible for me to unlock the fields that were already locked on the Template.I wanted to use a For Loop in order to do this, but I am not sure how to insert a variable in the instruction. I tried this but it did not work:var k;for (k = 0; k < 1000; k++){this.get
Good evening, I am trying to figure out why the text fields on my document are going blank.Here's what Im running into:I have a document which has text form fields, and these fields already have text written in them.When I insert another PDF, which also has the same named form fields, (so they can auto-fill with the text in the PDF that's already filled out...)All the form fields go blank, even the ones that previously had text in them. Is there a way to prevent this from happening?I would like the information to carry onto the new PDFs I insert, from document that has the necessary information.Thank you for your time!
I feel like this is simple, but I need a dropdown that allows users to pick a number from 1 to 15. Then I need that dropdown to display a set of fields that repeats for the number of times they selected so they can input data for each one. Basically, I have clients who have anywhere from 1-15 candidates that all have separate information I need, and I don't want to have 15 sets of field for someone who only needed 2. Please help!
I am currently testing several forms in acrobat that use email submit buttons and after testing several forms I start getting this error:GeneralError: Operation failed.Doc.mailDoc:8:Field AfterMarketSubmit:Mouse UpWhen I restart my computer the errors go away. Is there a way to never receive this error?
Hello Everyone,I am new the forums here.I need assistance with creating a script shortcut that would make the PDF non-editable.In a way, i require a shortcut of instead of going to settings to make the PDF non-editable, i would like to use a script instead.Any ideas?Thank you.
dear adobe support,i was wrote some JavaScript with AcrobatSDK used to create one button as an add-on tool, the function is run properly as is.but the problem is when I have to use the button, I should add the "add-on tools" button before we use the JS button.mean while the add-on tools looks like not stable, I've been tried open and close acrobat with more than 10 PC with many different PDF document, and my JavaScript "add-on tools" always unplug from acrobat toolbar after 5-9 attempts to open and close document for views the document.and after 5 times or 7 times i closed the acrobat, the shortcut in the right side is removed and I don't know why it's removed and I must "add" the shortcut againanyone can help to solve this problem or maybe adobe staff can solve this problem or any suggestion on it? (eg. calling JavaScript Object from C++) or something else.I'll keep looking forward on this issue until this problem is solved,thanks.
Hi There,I have created a form with fields (Mac - Acrobat pro 2019). One of them is a text field (name=serverpath) where people can paste a server path in (is an Apple File Protocol path). Next to that field is a button (name=button1) which needs to open a finder screen with the location of "serverpath".If nothing is filled in, there should be a dialog box saying you have to fill in a path.Does somebody has a suggestion or a solution? Help is very welcome!!Thanks in advance!
I can change an Acrobat text field FROM the Acrobat 'Number' format TO the 'None' format with this script: var f = this.getField("num.SDebit.22"); f.setAction('Format', ""); f.setAction('Keystroke', "");I would like to do the opposite: i.e. programmatically set an Acrobat text field format TO the number format and specify the number options available in the Format dialog box of text field properties .Can this be done, and if so, how.
Hi, I’m creating a document with multiple forms. I’m having issues with combining the natural mother’s name and natural father’s name in a field.On one form the names are three separate fields so I have named the fields as follows for mom’s complete name: NMFirst, NMMiddle, NMLast.I did the same for the father’s name: NFFirst, NFMiddle, NFLast.On another form there is one field for each parent’s complete name. For the mother I combined all three fields into one, naming that field NMName.Again the same was done for the father, I named that field NFName.Here is where I have run into an issue. Another form is a letter and in the address block it should have the mother’s complete name and the father’s complete name.This is my coding:var nm = this.getField("NMName").valueAsString; //natural mother’s full namevar nf = this.getField("NFName").valueAsString; //natural father’s full nameif (nf =="")event.value = nm; //if no natural father, s
I've a licence for Adobe Acrobat 8 Pro, but i've no more installation cd. Support tells me that i need the italian installation program but online on adobe site there's only english. Where i can found it?
i want a user add new entry in array when write custom text to dropdown list e.g.:var MyItems = new Array(" ","apple","orange","mango",);MyItems.sort();this.getField("Dropdown7").setItems(MyItems);user write in dropdown list : apple system return message this value is in array!user write Bananavar MyItems = new Array(" ","apple","banana","orange","mango",);MyItems.sort();this.getField("Dropdown7").setItems(MyItems);also if user want to delete a entry in my array how to solve this on PDF mode?
dear adobe support,i was wrote some JavaScript with AcrobatSDK used to create one button as an add-on tool, the function is run properly as is.but the problem is when I have to use the button, I should add the "add-on tools" button before we use the JS button.mean while the add-on tools looks like not stable, I've been tried open and close acrobat with more than 10 PC with many different PDF document, and my JavaScript "add-on tools" always unplug from acrobat toolbar after 5-9 attempts to open and close document for views the document.anyone can help to solve this problem or maybe adobe staff can solve this problem or any suggestion on it? (eg. calling JavaScript Object from C++) or something else.I'll keep looking forward on this issue until this problem is solved,thanks.
Hallo liebes Forum,zu dem Acrobat Preflight habe ich eine Frage an Euch: Gibt es eine Möglichkeit die Daten aus der Preflight-Übersicht als Textausgabe, PopUp auszugeben?D.h. ich benötige bei Preflight oder mit einem Javascript eine Prüfausgabe mit dem jeweilig enthaltenen OutputIntents einträgen, wie in der Anlage eingekreist.Ist das irgendwie möglich?Vielen Dank für AntwortenLG
Buenas, soy nuevo con Adobe DC y me ha sorprendido el hecho de que no funcione Ejecutar JavaScript en una casilla de verificación, con ninguno de los desecadenantes (ratón soltado, ratón pulsado, etc). Sí funciona con otras acciones, como ejecutar elemente de menú, etc.Pruebo a ejecutar códigos muy sencillos (como alert ("hola"); pero nada).Qué se me estará escapando? tengo que configurar alguna característica? o simplemente en la versión DC no deja ese tipo de acciones en casillas de verificación (javascritp sí me ha permitido en campos de texto).Muchas gracias, y disculpad mi ignorancia.
Is there a way to use JS to create a custom tool set? I've got all my buttons working and loaded using the user javascripts folder configured for Acrobat DC but I would like to take this a step further and group all those buttons under one tool set. I can easily create and group them in the interface and export the aaui file but was hoping for a single JS approach.I didn't see anything specifically in the SDK that discussed this in terms of JS.TIA
The TAB and SHIFT-TAB keyboard keys will jump to the next or previous highlight. I would like to add two buttons to the toolbar to do this. Opening the comment pane to click on comments takes up too much display space.What function can be used to perform what TAB and SHIFT+TAB are doing? I can't figure out how to jump to the next or previous highlight annotation in javascript, or how to get a button to emulate a TAB keypress.
DearI need your help, I have a large pdf file which contain invoice number, how can i split different invoices and rename it as invoice number?
I want to start off by saying that I am not a JavaScript writer... I know the code for printing page ranges, and even the code for printing this page only. But I can't seem to figure out what code to use so that once the button is selected, it will print current (this page) and next page together...?Any help would be greatly appreciated.
I have five checkmark boxes (1,2,3,4,5) and when any of the boxes are checked, I need that value of the checkbox to be added to a text box. Is there a script that can do this and separate the values with a comma?
Attached is a link to the photos of my invoice form. I have the following columns:Q=QTY.$=$DISC1=DISCT.SUB=SUBTOTALI would like the subtotal to accurately calculate from the corresponding row values. Essentially the calculation of (Q1*$1)-(DISC1/100) so that the discount column presents as 35% instead of .35 when I present it to clients. Then, how do I code SUBTOTAL as empty when the corresponding rows are empty.
Hello, I am making a dynamic form and I want the field "ScoringKey" to return a string based on a score that is calculated in the field next to it, "FinalScore". Is this possible? I cant seem to get the field "ScoringKey" to return a string no matter the parameters. Basically if final score is greater than 1.00 but less than 1.99 return “Unsatisfactory”If final score is greater than 2.00 but less than 2.99 return “Needs Improvement”If final score is greater than 3.00 but less than 3.99 return “Meets Expectations”If final score is greater than 4.00 but less than 4.99 return “Exceeds Expectations”If final score is equal to 5.00 than return “Outstanding”This is what I have for code:if (FinalScore < 2 && FinalScore > 0.99) text = "Unsatisfactory";if (FinalScore < 3 && FinalScore > 1.99) text = "Needs Improvement";if (FinalScore < 4 && FinalScore > 2.99) text = "Meets Expectations";if (FinalScore < 5 && FinalScore > 3.99) text =
I've seen this question asked several different ways and everyone has a different way of doing it which is great but has made it difficult for me to apply it to my form.I have several instances where a start and stop time are entered via a button in the HH:MM:ss tt format. I need to be able to calculate elapsed time in hours, minutes or seconds. The easiest way I figure is to standardize to seconds and have field calculations convert to whichever I need in that section.I found a document level script on the acrobatusers.com page that works great for converting to minutes but doesn't take into account seconds. So a difference of 5 minutes and 10 seconds would only show as 5 minutes.// document level functions for reusefunction Time2MinRE(cTime){// convert time string h:MM tt or HH:MM to minutesvar nMin = 0if ( /(\d{0,2})[:](\d{2})[ ]?([ap])/i.test(cTime) ) {// civilian timeif(RegExp.$1 != 12)nMin = 60 * RegExp.$1; // hour not 12nMin += Number(RegExp.$2); if (RegExp.$3 == "p")nMin += 12
I would like to develop a plugin for Acrobat DC using Acrobat DC SDK (using C++ and JavaScript). One of the requirement is that the plugin need to be able to createa WebBrowser control Window. Reviewing “Acrobat DC SDK Documentation”, I did not found any API ( JavaScript for Acrobat API Reference, Acrobat and PDF Library API Reference ) that I can use to create a WebBrowser control Window. Is there a way to achieve this?Thank you
I am not able to see my Android application in Share menu list while sharing pdf from Adobe 18.3 version application but below versions of Adobe app, I am able to see my app in Share menu.i placed the intentFilter in activity as follows [IntentFilter(new[] { Intent.ActionSend }, Categories = new[] { "android.intent.category.DEFAULT" }, DataMimeType = "application/pdf")]Do I need to change in my Android to make it work? any ideas?Please help me resolve the issueThank you,Babu
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.