Unlock the power of Acrobat SDK through our community.
Recently active
I need some help to see if its even possible for a message to display if I person enters a date, that is less than 2 days from today. The message would just be a read only pop up that warns the form completer that if their event is less than two days from now, they should call a specific person to arrange their reservation space. I tried some options in LiveCycle but I think LiveCycle is a little more complicated for me and the date field threw the message no matter what date was entered. So now I am using Acrobat Pro DC. And the field is currently a date field m/dd/yy format. No other validation or calculations currently set on the field.I'm not a coder, so I may just be overthinking it or the script I'm looking for isn't a scripting thing at all but some other option I'm not aware of. I don't want it to stop the user from entering the date, but prompt them to call ahead because of short notice. (our organization has approval processes in place for
Bonjour à tous !Je cherche un code personnalisé pour mettre une tranche horaire dans un formulaire Acrobat.Je veux y mettre une date : jour/moiset la tranche horaire : de 10h00 à 12h30donc logiquement cela donnerai : d/m de HH:MM à HH:MMmais cela ne donne rien, qui aurait la formule exacte, je suis novice en codage ^^Merci !!!!Moderator: Moved to JavaScript space
Hi,We have a created a form to be used internally within the business, we have noticed everytime we print the form we are then having to change the tray the form prints from via the "Page Setup" in the print screen.Is there a way to have the properties of the form changed so that the form automatically selects the same tray each time?
How can I generate a unique sequential number on a PDF form field? I want the sequence to be locked once form is saved (Save as) and generate a new sequence when a new form is opened. I also have a reset form button to clear all fields on the form and wouldnt want to affect the sequence field unless it is saved.
Hello,I'm trying to use AcroPDF interface to show a PDF form, get it filled by the user, and get back the filled-up form, to save it into my database.How can I do this (the interface doesn't allow me to save it into a temporary file or to get back the pdf or an image of it) ?Thanks for your help
HiI have a button on my test document that makes all fields read only when the salesrep has finished editing.for (var i = 0; i < this.numFields; i++) { var fname = this.getNthFieldName(i); this.getField(fname).readonly = true; // makes all fields readonly}It works perfectly, but I've realised that when I add the rest of the pages back into the document, there are fillable fields on pages 2 and 3 that a customer might need to complete once they've received the document.So, is it possible to make only page 1 read only and leave pages 2 and 3 editable?Thank you
I receive a no. of pdf files daily which need to be send for Reviewing. We are trying to develop a workflow through which I can enable Commenting and Analysis on received pdf and start the process of Reviewing by sending an email. Do we have any option in Javascript SDK for this ? I see a old post of 2010 that says it is not possible , Is that true now also. Please help.
Hi there,I'm having a dropdown (CN) where client chose one of the options from A to G. Depending on this choice, some of my fields are brought from readonly true, to readonly false (this is done by doc level function EnableFrom... and DisableForm...) .So for example when B, C and G are chosen in dropdown, radio button ( field P6RB01) can be filled.Now I want to set a default value of this radio button to "No", when "G" is selected. Here comes the script placed on a hidden field in "Calculate" tab that triggers radio button:// target amount status togglevar CN = getField("CN1")if ((CN.value == "B") ||(CN.value == "C") ||(CN.value == "G")) {EnableFormFieldFromGray("P6RB01")}else{DisableFormFieldToGray("P6RB01")this.getField("P6RB01").value = "Off";}//set value of RB to "no" if G chosenif(CN.value == "G") { this.getField("P6RB01").value = "No"; }Value is set to "No", but the idea is that the user can change this default value afterwards. Now this script is st
Need to get page dimensions like it shows here Quick way of showing the trim size in Acrobat Reader and Pro Have looked everywhere cannot find a link anywhere
I have created a button to run the following actions:Mouse Down > Execute a menu item > File>Print...Mouse Down > Run a JavaScript as follows function copyToAnother() { &nbs
how do you make app.openDoc() a trusted function in Reader DC. My function works if i have Preferences - >Security ->"Enabled protected view" unchecked.I would rather keep this checked and and just make openDoc trusted function.function OpenToPrint(filePath, numCopies) { var doc = app.openDoc(filePath); if (doc!=null) { var pp = doc.getPrintParams(); pp.NumCopies = numCopies; pp.interactive = pp.constants.interactionLevel.automatic; doc.print(pp); doc.closeDoc(true); }} function printSets(filePath, numCopies){var cResponse = app.response({cQuestion: "Enter the Number of Documents",cTitle: "Enter the Number of Documents",});var
app.execMenuItem("SaveAs");var Dropdown;var Radio;if (Radio == 1) { Dropdown = this.getField("Dropdown1");} else if (Radio == 2) { Dropdown = this.getField("Dropdown2");} else if (Radio == 3) { Dropdown = this.getField("Dropdown3");} else if (Radio == 4) { Dropdown = this.getField("Dropdown4");}var theSubject = "TII | " + Dropdown;this.mailDoc({ bUI: false, cTo: this.getField("Text Field 4").value, cCc: "george.fray@optimasystems.com", cSubject: theSubject, cMsg: "Hi, can you please review the attached Engineering Change Request? If you feel that this Engineering Change Request Form can be improved, please contact George Fray"});Apologies to say I am back.. my variable code isnt working. I get a result and it is only undefined.
Hi,I'm looking to automate the name generation process within my PDF.Essentially I wish to add a save as code the start of the below code. which reads the code within a folder, then saves as takes the next available number and opens it with the email code belowvar theSubject = "ECR-X01 | " + this.getField("Dropdown3").value;this.mailDoc({ bUI: false, cTo: this.getField("Text Field 4").value, cCc: "sample@email.com", cSubject: theSubject, cMsg: "Hi, can you please review the attached Engineering Change Request? If you feel that this Engineering Change Request Form can be improved, please contact George Fray"});Thanks in advance.(PS. the above code is working spot on!)
I need the user to enter a dollar amount in field A then reenter it in field B. I want to compare fields A and B and throw and error if they don't match. how do I do this? i have ZERO java experience so dumb it down for me!! thanks.
I posted this question on Stackoverflow but did not receive any usable answers.I have just joined the Adobe forums in the hope someone knowledgeable here will be able to answer this specific Adobe Acrobat SDK automation question.*******************************************************************I am parsing a .pdf using the acrobat.tlb libraryHyphenated words are being split across new lines with the hyphens removed.e.g. ABC-123-XXX-987Parses as:ABC123XXX987If I parse the text using iTextSharp it parses the whole string as displayed in the file which is the behaviour I want.However, I need to highlight these strings (serial numbers) in the .pdf and iTextSharp is not placing the highlight in the correct location... hence acrobat.tlbI am using this code, from here: http://www.vbforums.com/showthread.php?561501-RESOLVED-2003-How-to-highlight-text-in-pdf' filey = "*your full file name including directory here*" AcroExchApp = CreateObject("AcroExch.
Not looking for app.browseForDoc() function. This one only gets the files. I am looking for a way to bring up the Folder selection box so a user can select the folder location where a list of files are kept and then have a simple script to loop through the folder selected and combine them into one document. Does anyone know how to do this?
I am creating an assessment form for our preschool.I have cells for each letter of the alphabet, numbers 1-20, Sounds, and several other areas.They would like to be able to just click the field and have it highlight to show that the child completed the request. Click and highlights green, click again and highlight is off, click on.....
I would like to display all the attachments in the document in a list which are attached by addAnnot. For that purpose I created a list which will run below script on mouseUp event.. But whenever the script runs, it basically invalidates the certified document with an invisible signature. I need to prevent any unauthorized modification in the document, for that purpose I created certified document. Any Idea how to make it right or please suggest me if I am doing something wrong as I am new to acrobat development.attachList = [];var annots = this.getAnnots();var aAttach = annots.filter(function(a){return (a.type=="FileAttachment");});for (var i = 0; i < aAttach.length; i++)attachList.push(aAttach[i].attachment.name);event.target.setItems(attachList);
Hi all,I am working on writing a doc-level function to be triggered when a particular page opens.A salesperson enters information for warranties (up to 4) that a customer has purchased for their vehicle on the first page of the document. When the page for the Bill of Sale opens, I want the "Notes" section to populate with the warranty information (description and cost).I don't want to take up more of the Notes section than necessary, so the function I'm writing will ultimately shift the line items up/down (i.e. if there is only one warranty package included, I want it to only show up on the last line). I haven't gotten that far yet as I keep getting a "field is null" error when I test this function.It will work for one line and populate it with information, then error and stop. If I run it a second time, it populates the next line, then errors. I can keep running it and it will fill everything correctly, but I can't figure out where the error is coming from. Any help would be greatly a
Hello and thank you in advance for any light you can shine on this subject for me.I'm creating a form in acrobat pro 10 that I want the users to be able to attach files to. I don't know if the user will be filling out the form using Acrobat Pro or Reader so I'm using a logic statement in the document level Javascript to determine whether to use the "ImportDataObject" (Pro) or "AddAnot" (Reader) method.The problem that I'm running into is that while I can export document level attachments using the "this.exportDataObject" function by referencing the name passed to the "ImportDataOjbect" function... I don't know how to export a page level file attachment added using the "AddAnot" function.Really appreciate any help. I've written code in Visual Basic but Java Script is brand new to me, as is programming for Acrobat forms.Document Level Java Script Added Below for Reference...var oFAP = {x_init: -72, x: -72, y: -72}function Attach(FileName) {if (app.viewerType === "Reader") &nbs
Hi Everybody,I want to go for automation in tagged pdf, How to generate accessibility tags using acrobat javascript. Is possible to generate script?Any one help me, Regard'sMuthukumar
Hi everyone.Is there any way to create a pdf from a excel with a different format, i mean, create the pdf from 0 but using the cells data.For example, i have a table (on excel) with students and their exam notes, there is any way to create a pdf with a different format, with a logo image at the top with the table with an ammount of cells inside that depends on several facts that had been introduced on the excel. It CANT be the same as the excel format.Thanks
Hi,I have two files. One original and second modified. And I have list of pages for replace.So I want replace few pages (from the list) from modified pdf to original pdf.is there any API or list of functions for use with PAGE management with javascript?Or what do you sugest?
Hello,Background - I have a couple PDF floorplans with close to 100 cubicles and due to internal staff turnover, it needs to be updated often. I was able to use Excel vba to dynamically update the cublicle assignments, but since the floorplans were plotted with all the layers, including dimensions, fixtures to plumbing, the drawings are very clutter. My question - is it possible to turn layers on/off with VBA. Something like AvDoc.Lyaers("xxx").visible = falseThanks.
I have the following code on my Submit button set for Mouse Down.Not sure where this code is messing up. I am trying to have the submit button check that all required fields are filled out and if they are to make 2 specific fields required.var emptyFields = 0;for (var i=0; i<this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); if (f.type != "button" && f.required === true){ if((f.type == "text" && f.value == "") || (f.type == "checkbox" && f.value == "Off")){ emptyFields++ } }} if (emptyFields = 0){ this.getField("Executive or Director Signature").required = true; this.getField("Executive or Director Name").required = true;}
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.