Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I'm trying setup a validation script that confirms that the user has entered a pre-approved number, and returns an app alert if they do not. I have a the script functioning properly but the array of pre-approved numbers is too large for acrobat (text it too large to be displayed in this dialog). I'm trying to use variables for the redundant portions of these numbers to reduce the overall script size.Here's a sample of my script with a much smaller array of pre-approved numbers. event.rc = true;if (event.value != 1476542 && event.value != 1471222 && event.value != 1476895 && event.value != 1471248 && event.value != 1472347 && event.value != 1476246 && event.value != 1476254 && event.value != 1472833) { app.alert("NOTE: You must enter a pre-approved number.", 3); event.rc = false;}Notice how each number begins with 147. What I'm wondering is if I can use a variable to replace 147, thereby reducing
Hi all,I am trying to get fields to auto-populate based on selections from multiple drop down boxes. I currently have used things to auto-populate based off of a single drop down selection using the below script:var f = this.getField("Dropdown1"); if (f.valueAsString=="Option 1") event.value = "Text 1"; else if (f.valueAsString=="Option 2") event.value = "Text 2"; else if (f.valueAsString=="Option 3") event.value = "Text 3"; else event.value = "Default text"; However I want to set it up so that certain options come up if selections from multiple fields are true. Example would be:Drop-Down 1; selection 1 and drop-down 2; selection 1 gives you response 1Drop-Down 1; selection 2 and drop-down 2; selection 1 gives you response 2Drop-Down 1; selection 1 and drop-down 2; selection 2 gives you response 3Drop-Down 1; selection 2 and drop-down 2; selection 2 gives you response 4Is this possible?Thanks.
I'm creating an Adobe Acrobat Pro DC form using an excel spreadsheet as a template. My excel formula is IF(Productivity=0,,Total/Productivity*8)I can't get the "if else" formula to work in Javascript.
Hey everyone,I have a form with a text field "Total". I'd like "Total" to be revealed if any one of ten other text fields are filled in. So if all ten fields are blank, "Total" is hidden. If any one of "Price_PP_1", "Price_PP_2", "Price_PP_3", "Price_PP_4", "Price_PP_5", "Price_PP_6", "Price_PP_7", "Price_PP_8", "Price_PP_9", or "Price_PP_10" are filled in with any info at all, "Total" shows itself.It seems like it should be simple. I just don't know how to write the custom calculation script that basically tells it, "If this or this or this or this or this happens, show it. If none of it happens, don't show it."Can anyone help?
I have pdf with a hundred of pages i need to delete that contain "Wrong-File" word and following with one page after the "Wrong-File" page,So if my pdf found 1000 pages contain "Wrong-File" word there are 2000 pages i need to delete, because after the "Wrong-File" page there are one page (the attachment of "Wrong-File" page") i need to deleteNote here : the attachment or the page after the "Wrong-File" page have no same spesific word, so i can't search the attachment and delete them.
Hello, I need some help with a document I'm working on. I'm very much a novice when it comes to javascript and I can't seem to figure this one out. Essentially I need to combine three fields and then add sequential numbering to the end so that each print would be increase numerically by 1. Users would enter values into field#1, field#2 and field#3.For example, field #1 would be two characters (AB), field #2 would be a sequence of six numbers (such as 050418), field #3 would be some other characters (CD). At the end of the string, I'm looking to add sequential numbering, starting at 0001 and increasing by 1 for each printout.The final result would be something like this: AB050418CD0001The next printouts would be AB050418CD0002, AB050418CD0003, AB050418CD0004, etc...I would typically end up printing a couple thousand of these hence the four spaces for the numbers.It just makes it look more consistent but I can live without the four spaces if it isn't possible.Also, it doesn't need to sav
Hello Adobe friends,I have now gotten help with my Javasripts I needed and they work.I do have a small adjustment I need to have done with your help.one of my boxes is a "OK" button and I run a Javascript on it so that my users can attach a file, and the file name is listed, I guess as a comment, in a text box I have namned "lst1". What I need is so that I can click on the listed name and it opens the attachment.Meaning that the field that lists the name of the attachment, in my case "lst1", should always link to whatever attachment the user will attach. Is that even possible? Here is my JavaScript as it is now:try { this.syncAnnotScan(); var a = this.getAnnot(0, "Attachment1"); if (a!=null) { a.destroy(); } var annot = this.addAnnot({ page: 0, type: "FileAttachment", point: [500, 500],
Hello Guys,I need help with my 2 buttons I have created in a PDF-form so that the person filling the for can Attach a file from his Browser and the file name will be visible in another field. However I need one more button so that it "Clears" the attached files.This is my JavaScript that works for attaching a file and so that the file name is shown:try { var annot = this.addAnnot({ page: 0, type: "FileAttachment", point: [500, 500], noView: true, author: "Attachment" }); annot.cAttachmentPath; var attachmentObj = annot.attachment; if (attachmentObj !== null) { app.alert("Add this file: " + attachmentObj.name);  
i want to design a pdf form with functionality to attach files and further encrypt/digitally sign it. i want to do it programmatically through javascripts or adobe APIs. i know there are 'security' and 'securityHandler' objects in this regard. kindly help that what i need to do it? Acrobat DC pro is enough or i will have to buy the adobe library also for this task. And what is the role of Acrobat SDK in this??
Hello,I have been attempting to modify the paragraph spacing of a rich text field in my pdf with no luck, and I'm wondering if it's even possible.Using the spans object, I can easily modify the linespacing, alignment, etc.I have a Visual Basic application that dynamically batch builds company pdf documents for the client. However, for one particular document they are requiring the spacing of the field to be more specific, which requires me to adjust the "above/below" paragraph spacing of the rich text and not just the exact linespacing.On a separate pdf file, I have tried enumerating all of the rich text properties of a field that I've manually made these modifications to, like so:var f = this.getField("Text1");var spans = f.richValue;for ( var i = 0; i < spans.length; i++ ){ for ( var key in spans ){ app.alert(key + " : " + spans[key]); }}But none of the properties it returns match
Hi. Currently I am a starter on the Acrobat SDK and going through all the sample codes.When I try to run the CommonInterfaceAIR.air SnippetRunner I get the following error message from Adobe Air.The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author.Any ideas?
Please help with how to best to do this.Once I scan in a previously scratched lottery ticket into a PDF format. How can I? 1. Have the software recognize the numbers only in a specified area. Ideally, only a small box.2. Have the software identity matching numbers. Thanks,Blind Lottery Player.
Hi ! i am working with acrobat DC (15) on Windows.thanks to : Spawn a page using drop down box (JavaScript) , i am able to spawn a template.I have a dropdown list with 3 choices (A,B and C) and a button submit ( the code from the topic are inside this button) and then i spwan a template.However, i would like to delete the template if the user change his choice from A to B ...i konw how to delete a page : {this.deletePages(1)} but where i could apply it ???Thxxxxxxx !!!
My company wants to use PDF as the viewer formats of 3D and 2D, like 3D / 2D PDF into our application.So, I was trying to get SDK toolkit for them, but it seems it's not that easy to find it out.Is there anyone using sdk for 3d or 2d? Or knowing download or manual links?Any comment will be very helpful!! Thanks!!
Hi Friends.Now i found using the following code is more easy than Regular Reset Form for Particular Fields (16 Groups) of Checkboxes., this code working very well form any Button or Document javascript as function, but it really looks crazy! function ClearComboBoxes(){//Remove CheckBoxes Avar CurrentFieldArray= new Array();for (var i=1;i<=20;i++)CurrentFieldArray = "A"+i;this.resetForm(CurrentFieldArray);//Remove CheckBoxes Bvar CurrentFieldArray= new Array();for (var i=1;i<=20;i++)CurrentFieldArray = "B"+i;this.resetForm(CurrentFieldArray);//Remove CheckBoxes Cvar CurrentFieldArray= new Array();for (var i=1;i<=20;i++)CurrentFieldArray = "C"+i;this.resetForm(CurrentFieldArray);//Remove CheckBoxes Dvar CurrentFieldArray= new Array();for (var i=1;i<=20;i++)CurrentFieldArray = "D"+i;this.resetForm(CurrentFieldArray);//Remove CheckBoxes Evar CurrentFieldArray= new Array();for (var i=1;i<=20;i++)CurrentFieldArray = "E"+i;this.resetForm(CurrentFieldArray);//Remove CheckBoxes F
Hi.I know how to populate several fields from data stored in an attachment when an user select an item in a dropdown list.Now I need to populate several fields from an attchment but user must not choose in a list, he must enter his ID in a text field, and other fields must be populated accordingly to the input.Is it possible?How?
Hey there, I need help with a JS-Code.I have two fields in my PDF-Formular one (date of employment) which is edited dd.mm.yyy one Dropdown with 3 or 6 (months)Now I like to calculate means to add to the date of employment.Can somone send me the right Code?THXBjörn
I'm trying to add one or more months to a date field, but I'm running into an issue with the end of the month. If "today" is 01/31/2018, and I add one month, I would like the result to be 02/29/2018, but instead I get 03/03/2018.Is there a way to calculate this, check to see if the date matches, and if it doesn't, set the date at the end of the previous month? In my example, 31!=3, so set the date at 02/29/2018 instead of 03/03/2018.Here's the script that I'm using:todayString = this.getField("today").valueAsString;var months = Number(this.getField("months").valueAsString);if (todayString=="" || months==0) event.value = "";else { var d = util.scand("dd.mm.yyyy", startDateString); d.setMonth(d.getMonth()+months); event.value = util.printd("dd.mm.yyyy", d);}
Hey everyone,I would like to write a script that reveals a field only if an employee puts a particular date range in 2 fields.Basically, there is Date_Field_1 and Date_Field_2. If an employee puts in a date range between the two which is shorter than 3 days, I'd like a certain field to show up. If they put in a date range between the two which is longer than 3 days, I'd like the field to be hidden.I can reverse engineer scripts alright, I guess. But I have no idea how to write them on my own from scratch. Can anyone help?
I need to apply inherit zoom to my documents. Is there a way to do this using Acrobat Creative Cloud? If yes, can you share how?Thanks,Jessica
HiIm looking for some help in creating an HTML form. Using DW CC 2018 I have made a very simple form with 5 checkboxes. I want to save the output when submitted to a text file, ideally using a filename generated from the date. Can this be done without creating a php file. I don't want it stored on a server it is being entered and hopefully saved on a standalone PC. Any help would be appreciated, I'm OK with HTML and a beginner with JS (which I think is the way to do it)
How can i insert a cerificate in a pdf automatically with vba, JavaScript etc.?
I am working in Acrobat Pro X1. and am designing a fillable form that has a column that requires the user to put either a "Y" or "N" only. (This may be changed to "P" or "F" pass or fail). I made an Arbitrary Mask with "A" and this works except that any alpha can be typed into the column. I know that this should be simple but I'm just not finding it.Do I need to run a validation? and if I do, what would that look like? I would appreciate any help.Thanks!
Hello,I am looking for the answer on the question: "How do a give a command to an item of a pull down list?".I have a pull down list, for an inspection form, with a couple of items and one of them is the item "do not apply".When the inspector chose "do not apply" then the text boxes underneath the drop down list need to hide.What code do I need to get this?
How can i insert a cerificate in a pdf automatically with vba?
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.