Questions
Recently active
I keep getting this syntax error, "Syntax error: "Missing ; before statement 3 and 4." Basically, I doesn't like, String Last = this.getField("Last Name");Here is the code I have:this.documentFileName.replace(/.pdf/,"");String First = this.getField("First Name");String Last = this.getField("Last Name");String Middle = this.getField("Middle Initial");String State = this.getField("State");String Patient = Last + ", " + First + " " + Middle;The goal is the code to compare the file name to the patient's name in the PDf form fields. I haven't written the rest yet until I can get this syntax error sorted out.Any help would be appreciated!
Hi there,I apologize in advance in this not a solution that requires JavaScript and if so please let me know.I have a form that currently has a Required or Not required option. If the user selects Required then they fill out the fields associated with it. If the section is not required, they can complete the form without entering anything. I don't have this set up so that selecting Required and Not required are connected to the fields, other than Not required will clear any fields that were filled out.My first question is, if a user selects Not required but later decides they wish to fill in the form, is it possible for it to change to Required as soon as they select the checkbox(es), radio buttons or enter on any field? It currently keeps Not required selected (since they're not actually connected so to speak and Not required only clears any fields that were entered.My second question is, if a user selects Required, is there a way to state that everything in that table (checkboxes, fi
Adobe properly created a form from a Word document. It used the text in the original Word document to create nice and accurate fillable fields in the new PDF and all looks correct.Now I would like to programmatcally change some of the 'titles' that precede the fillable fields. (It was these titles from which the fillable-field names were created) in order to give the title a friendlier name. I know how to cycle through the fillable-field names and change them at will, but is there a way to cycle through the 'titles'? (I can get to these titles chosing to 'Edit PDF' (and showing the bounding boxes, but not sure if this step is needed). I can also manually search for text snippets using CTRL-F, and I successfully replace text that is found one item at a time. Can I automate this 'find' and 'replace' routine.
What I am trying to do is use part of a field that is filled in by a user to fill in another field. The two examples I am looking at working with are social security numbers and dates.I have one field that the user inputs the full social security number into. On other pages, I only need the last four digits of the number. Is there a way that this can be done?My second one is a date that is inputted by the user in a YYYYMMDD format. Some of the pages need each digit added to a single charter block and some of them need a date that takes up two lines, year on top and month date below. Is there a way either of those can be done?My experience with Java is very limited so I would prefer to be pointed in the direction so I can learn the info over just being given the answer if possible.
I want a dropdown box to populate with a list of names that comes from our Active Directory list in a certain area, but I'm not sure if it's possible or how advanced that would be to script something like that.
Hello,I added a simple JS function in Acrobat Pro DC, that creates a bookmark when a button is clicked. It works fine in Acrobat Pro, but when my client opened it in Acrobat Reader it didn't.I also added some debugging alerts before and after the bookmark function to check whether the function is called in Reader and to exclude that there is an error in the line itself. Both were fired.Here is the code:function addBookmark(label) { var index = bookmarkRoot.children ? bookmarkRoot.children.length : 0; //bookmarkRoot.createChild(label, "this.pageNum = " + (this.pageNum), index); alert("bookmarkRoot'"+this.bookmarkRoot.children[0]+"'"); this.bookmarkRoot.createChild("Bookmark label", "this.pageNum = 4"); this.bookmarkRoot.createChild("Bookmark label2", '"this.pageNum=4"'); alert("finished"); }Any ideas why the bookmarks aren't created and how can I proceed with
I need to remove the #number on forms after pages are added for scripts. All pages after the first are identical ordering but scripts will not work after first page. Page 1Page 2EXAMPLE SCRIPTGLOBAL// initialize the auto-populate data to an empty object.var oContactData_Ex7 = {};// Read contents of file attachment into a string// Assume there is only one file attachmentvar stmCSVFile = this.getDataObjectContents(this.dataObjects[0].name);var strCSVFile = util.stringFromStream(stmCSVFile);// Parse data into object// First Split into linesvar aLines = strCSVFile.split(/[\r\n]{1,2}/);// Grab column namesvar aColNames = aLines.shift().split(",");// loop over lines and fill objectfor(var i=0;i<aLines.length;i++){// only operate on non-empty lines if(!/^\s*$/.test(aLines)) { // split out data items on line var aEntries = aLines.split(","); oContactData_Ex7[aEntries[0]] = {}; &n
Hi im creating a form in which i need to limit the input into a text box based on the value of another text box. for example if text box "wpds" has UB36 input into it, I then want text box "pass" to only allow the input of "Root","Hot", "Fill" or "Cap". But if text box "wpds" has UF49 input into it, i want text box "pass" to only allow the input of "Layer1" "Layer2" or "Layer3". Any input into this will be greatly appreciated. thanks
I have Date and Time Start "DT1SI have Date and Time End "DT1EI want to DT1E - DT1S and show the result as decimal hours rounded to 1 decimal point as in XX.xI am using Adobe Pro for Mac on my MacBook Pro using High Sierra.I have it done on my Excel version of this form, but I want to create a Fillable PDF version of the form and I have searched high and low on how do do this in PDF.In Excel it is simply =Round((DT1E-DT1S)*24,1) with the result field formatted as a number to 1 decimal place.Hope someone can make it that easy for me in PDF using "Simplified Field Notation" or last but not least "Custom Calculation Script".
Hello,I need to add on my fillable PDF form a printing button that would automaticaly print the file with PDFcreator. I'm using Adobe Acrobat Pro DC.I know how to create and run the button on Adobe, but I'm new to Javascript coding.Can someone help me with the code?Thank you
Is it possible to divide a single multipage PDF into two PDFs?
Hello am trying to redact particular information from a files, is there any options where we can automate redaction by running scripts. Please let me know
Hi,according to the sdk documentation, the class CAcroApp can be used to control the application via COM.However, any function call seems to have zero effect.I put these lines into the BasicIacVc example provided with the sdk acroApp = new CAcroApp; acroApp->CreateDispatch("AcroExch.App", &e); if (!acroApp) { AfxMessageBox("Creating Acrobat IAC acroApp failed in BasicIacVc sample."); return FALSE; } acroApp->Exit();Could you give me some advice?My goal is to the get the current preferences like the Page Display mode.Thanks
Hi,I have a pdf document with 1000 pages.800 pages is in colour, 200 black and white and I wish to reduce colour pages to 500 pages.I have a list of selected pages that need to be in colour and I also have a list of pages that should be black.There is an option to convert colours in Adobe but there is no way to paste a list of pages and you can not select thumbnails neither and then convert.You can only give a range page 1-1000 for example or give a single page number but you can not ask for conversion of pages for example: 3,5,7, 25, 80, 500 and convert them all in one go.I heard that Java could handle such a task but unfortunately I can not find good example.If there would be some plugin being able to perform such task that would be great!Thank you for your answers.
I have created a formula in adobe pro fillable forms the formula works fine, but i need to be able to manually enter numbers into it as well. Is this something that i can do?
Hi,I have a requirement in my organisation. Current process - We compare, verify & validate data in two different PDF's which are different table formats. Currently this process seems to be manual and tedious.We need your help to explore if there's any possibilities to perform above activity automatically (even partial will also help).Requirement - Build a tool to read 2 different adobe file to compare data among each other and highlight the mismatch values/areasPlease let me know if this can achieved, I will come back with sample pdf to explain further in detail.Thanks,
Dear Acrobat scripters,Is there an way you can get any number and than text in this.getField.value . Do I have to do that with RegExp? if (this.getField("field1").value = 'ANY NUMBER + ANY TEXT') {DO SCRIPT;} else {DO SCRIPT;}Already thanks for the help!Greetings
Hi,We encrypt PDF files using custom security handler. One of our customer is unable to open the encrypted PDF file with Acrobat Reader DC 2019 latest patch 2019.010.20064. If customer downgrade to previous patch 2019.008.20071, everything just works fine.PDDocOpen() API throws this exception "Bad Parameter" - error code 1073741827 = 0x40000003 = genErrBadParm.Our customer security handler is written in C++.The issue only occurs at customer location and we are unable to reproduce locally. Looking forward to hear from experts.Thanks,Sameer
I need to write a function to disable a digital signature, when user hits submit button. Also when user re-opens the form than there should be no digital signatures saved.
Hello. I am attempting to have 3-6 different text fields automatically populate with pre-determined information based on the user's selection in a drop-down menu. For example, my drop down will have Red, Blue, Green, Yellow. If the user selects Red, then Text1 will fill in Apple, Text2 will fill in Fire Truck, Text3 will fill in Rose and Text4 will fill in Tomato. If the user selects Yellow from the Drop Down, then Text1 is banana, Text2 is sun, Text3 is also banana and Text4 is lemon. I know it involves JavaScprit, but to be honest, I'm a novice when it comes to that. Any help would be greatly appreciated!
I'm using the fontWeight method to try to set the font of a text field to bold.I loop through all the fields, and let's say the field I'm looking to make bold is called "Number":loop{get name //cFieldNameget field of name //oFieldif(cFieldName == "Number"){oField,fontWeight = 700;}}in the javascript API manual it says fontWeight 700+ is considered bold, but when the script runs without errors, it doesn't change the font weight at all. I'm editing fontSize and textFont in the same script and they work, so it's not a question of the structure of the script, I don't think.
So let's say I have multiple instances of a text field, three in this case, all titled "Insert Date".I can see when I'm in the "Prepare Form" page, that the fields have number identifiers on them once there is more than one of the same namei.e.Insert Date#0Insert Date#1Insert Date#2I'm running some javascript script to set the font size of the field in question. I loop through all fields and set an if statement for fields named like the ones above:loop{getname // works as it should call this cFieldNamegetfield of getname // works as it should call this oFieldif (cFieldName == "Insert Date#0"){oField.textSize = 10;}}Unfortunately this sets the text size to 10 for all 3 fields, not just the specific one (Insert Date#0). It seems I'm not actually referencing that individual field. I absolutely need the field name to be the same. What can I do to achieve this?
var aNumFields = ["FieldA", "FieldB", "FieldC", "FieldD"];function Min("aNumFields"){ // n = number of fields that have a numerical value > 0 var i = 0; for ( var i = 0; i<aNumFields.length; i++) { var v = this.getField(aNumFields).value; if ( v != ) { n++; min = v; } }}event.value = minValue;I have changed this script around so many times I have probably made it impossible to correct, any assistance you can give would be greatly appreciated.
Is it possible to code a field to log each time a user saves changes or edits the fillable form?
I have been given a task to add a plugin in Acrobat. There will be an icon in toolbar and clicking on that will open an explorer. When user select some text from pdf document then a context menu should open with some options in it. And when user picks an option then selected text becomes the part of explorer. All the selections that user will make becomes the part of explorer in a tree view structure. Once user save the pdf file then it should be saved somewhere in header so that when file is viewed the Adobe Reader then all the selections remain visible in the form of tree view.Can I create a plugin that contains above mentioned features? If yes then what should I read?There are so many things that I need. I have started to look into samples that are provided with Acrobat DC SDK and able to run those with Acrobat. Any help would be highly appreciated.Thanks
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.