Unlock the power of Acrobat SDK through our community.
Recently active
Hi, I'm trying to turn off all layers that begin with a text string.So far I have:var l = this.getField("SELECT.Language").valueAsString;var n = this.getField("SELECT.Number").valueAsString;for (var x=0; x < ResetOCGs.length; x++){ ResetOCGs[x].state = false; }for (var x=0; x < docOCGs.length; x++){if(docOCGs[x].name == "Logo" ) { docOCGs[x].state = true; }if(docOCGs[x].name == l ) { docOCGs[x].state = true; }if(docOCGs[x].name == l + ".1" ) { docOCGs[x].state = true; }if(docOCGs[x].name == l + ".2" ) { docOCGs[x].state = false; }if(docOCGs[x].name == l + ".3" ) { docOCGs[x].state = false; }if(docOCGs[x].name == l + ".4" ) { docOCGs[x].state = false; }}I'd ideally like to get rid of Reset OCGs a turn off layers that begin with l + ".3".I was thinking something like l + ".3*", with the asterisk acting as a wildcard but it doesn't seem to work.Can anyone help please?This is a form created in Acrobat, with all fields created in Acrobat.
I have a text field whose required status is based on a selection made in a drop down. What I need to add to the code that I've already got (see below): if (this.getField("Bedrooms").value=="Points"){event.target.required=true}else if (this.getField("Bathrooms").value=="Points"){event.target.required=true}else if (this.getField("Occupancy").value=="Points"){event.target.required=true}else{event.target.required=false} Is that if this field is required it cannot equal 0. The problem is that any other time, it can be 0. I don't doubt that it is doable. I just don't have the knowledge to make it happen... Any help would be appreciated.
Essentially I'm trying to pull two different lists into two separate dialog "popup" lists but for some reason only one of the lists will populate at a time. I'm doing all this in a folder level script and I am unable to change that. The data is being pulled from a proprietary application. My code is below, please let me know if there's anything obviously wrong with it or if clarification is needed. function newElement(type, id, name, elements) { var ele = {}; if (elements === undefined) { elements = 0 } switch (type) { case "radio": ele = { type: type, item_id: id, group_id: 'grup', name: name }; break; case "check_box": ele = { type: type, item_id: id, name: " " + name }; break; case "edit_text": ele = { type: type, item_id: id, name: name }; break; case "popup": ele = { type: type, item_id: id, name: name, char_width: 10 };
I'm trying to use radio buttons to select a "sample type". Upon selection, I want the form to default certain tests to that particular sample type. For example, selecting PARTS would default the Salmonella, Campylobacter, and EB testing radio buttons on.. I'm fairly new to Acrobat and JS so any help or advise is greatly appreciated. I'm learning on the fly. Thank you in advance!
Hello,We are using Acrobat plug-in to save PDF from our application. For one particular scenario we are trying to save a non-english filename (like Chinese, Japanese, Korean, etc) to PDF. We are using AFExecuteThisScript to call the saveAs method to actually save the PDF file.As per documentation we found here:ASBool AFExecuteThisScript (PDDoc pdd, const char * cScript, char ** pRetValue)AcroForm Methods Executes a JavaScript script.Parameters: pdd The PDDoc in which the script is to be executed. cScript A string containing the text of the script to be executed. If Unicode, the string must begin with 0xFEFF and end with 2 null bytes. If this is not the case, it is assumed to be in the application's language encoding, as returned by AVAppGetLanguageEncoding. pRetValue To get a return value from the execution o
Looking to convert lots of documents to text. Need meta data about the document and the text. One data point that is needed is the indent. Need to know if a line is indented from the left margin and some sort of quantification of that indent such as spaces, tabs or something else. If such a tool does not exist I am willing to code it but this new to me. What tools might help solve this problem?
Hi, I am creating a an editable PDF with multple form fields including an image field. I have a shape that is 1.5x1.25" for the field. I want to know if there is a script I can add so the importaed image scales up so it fits the shape 100% instead of just scaling proportionaly to the width or height. Thanks D
Has anyone been able to accomplish this? This is a rather annoying 'feature' of Reader XI
Hello,I'm having a problem converting a scanned document from pdf to word. I'm using Adobe Acrobat Pro 9 on Mac.I'm scanning sections of a book into pdf format, then I have ran them through OCR by exporting them to word in order to get editable text. I have two problems: (1) The scanned document is in landscape, but I need the final editable text in portrait and the text itself to be formatted like a normal word document, i.e., not the format in which it was scanned but as if I opened word and began to type sections of the book, trying to mirror how it is presented there - I cannot simply change the orientation from landscape to portrait because its a scanned document, and everything becomes scrambled and the text doesn't actually fit on the page; and (2) some of the text is not showing up because there are glitches or missing portions of text, some areas have strange symbols instead of text as well.My biggest problem, at this point, is that I cannot seem to convert the scanned documen
Hi all, Trying to figure out the custom calculation script to be able to add multiple values of different form fields if a form field includes a value above 300. For context, I am trying to sum the number of upper division credits, (courses at 300 level or above,) for a form that I use to meet with students. In the attached file, I would love for "UD Credits" to add the value of "a" if "Fall 1" includes in a string a value above 300, such as MATH 321. I would then need to add the respective values of "aa," "aaa," "aaaa" and so on based on their respective left form fields. Sorry to ask this question! I'm very, very new at javascript and I've tried to experiment with the script by using boolean logic, .includes, etc. but I'm just not able to make anything work!
I am looking to create a new PDF with lines drawn on it.I was wondering if there was a way to draw lines/shapes on PDF using JavaScript. ( I know that this can be achieved by C++ coding or the comment mode function in PDF)
Dear Experts, kindly help in getting the appropriate currency in amount in words in the purchase order form.For ex. p.o currency is dollars, total amount is 200.50and amount in words should be like two hundred dollars and fifty cents.if another p.o currency is riyal, total amount 100.50and amount in words should be like one hundred riyal and fifty baisa.i have done amount in words using wordnum function.please let me know how to get the appropriate currency in the amount in words, which it should fetch from p.o currency field. Thanks & regardsYogi
Hi, we're trying to add headers and footers to locked pages. Long story short: We get about 300 pages of signed documents that we used a script on to flatten the documents then we could add headers and footers to the pages and save as a new PDF. However, the addon is too old and does not work any longer.Is there any other way to do this? At present we are running "Optimize PDF" with a few settings and that works but it is not an ideal solution. We would like to take the 300+ pages, keep them locked (either via saving as image or something), merge them all together, and add a footer (like page numbers, dates, etc...)
Hi - I am creating a form and need help. I do not have much javascript experience. I have multiple check boxes - when a box is checked I would like it to auto fill that name onto a bullet point list. Example: Check Box: name 1 Check Box: Name 2 Check Box: Name 3 when selected the list would look like this Name 1Name 2 Name 3 Thank you
Hi! I am trying to create an invoice form that will hold varying VAT tax percentages. Each row has both a total price before tax (Field A), and a number indicating the VAT % of that row (Field 1).I would like to show the total sums for three different tax levels on the bottom of my form, where each field would preferably autopopulate with the sums for that tax %. For example: Fields A, B, D, and G should be summed because fields 1, 2, 4, and 7 show the same number, while fields C, E, and F sum because fields 3, 5, and 6 show the same number. I am not super familiar with javascript but assume I will need to use a hefty amount of if statements.I've looked at this thread to try to figure it out but need some help figuring out how to code it for acrobat: https://stackoverflow.com/questions/50879417/sum-field-values-based-on-condition-in-another-field-in-javascript I'm working directly in Acrobat, right clicking fields > properties > custom calculation script. Woul
hey all, i am in the process of creating a form for jobsite management to use when tracking force account work. i pretty much have everything but ive seem to hit a roadblock. i have a couple dropdown lists and i want to have 3 fixed selections and the option for custom entry just incase its needed. so for example dropdown list 1 = employee classification: and the options are N/A, Journeyman, Apprentice. i want these 3 options to be fixed values which is easy but i would also like a 4th selection added called custom and when this is selected the user is able to input custom text. any suggestions are much appreciated. Thank you
I just recently switched over to the 64-bit version of Firefox v44.0 which was surprisingly painless. All of my extensions and plugins are working great with the exception of my Acrobat Create PDF plugin. I tested the 32-bit version of Firefox 44.0 and the Create PDF plugin is working fine so I'm assuming this has something to do with the plugin needing to be updated for 64-bit support.Are there any updates on the horizon or perhaps a hack/tweak to allow the plugin to work in 64-bit Firefox as well?
Hello: I am very new to this community but after some research I created a Dynamic Stamp that requests user input and then stamps a case number on my 100 plus page documents. Right now I have to stamp every page on the document. I would like the stamp to apply to every page automatically after the user inputs the information. This is the simple code I am using for my dynamic stamp. I placed it in the custom calculations porperties of a form text field. if ((event.source.forReal)&&(event.source.stampName == "#ClearStamp")){this.getField("Case Number").value = app.response("Enter Case Number");} That works great so I found this additional script from another post: /* Multiple Page Stamp */this.syncAnnotScan();var annt=this.getAnnots(this.pageNum)[0];var props=annt.getProps();for(var i=0;i<this.numPages;i++){props.page=i;if(i!=this.pageNum)this.addAnnot(props);} So I combined this script all together: if ((
I am combining multiple pdf forms into a portfolio.When I do so I am no longer able to TAB from one field to the next. How do I preserve this function?
-
Hi there, I am creating a pricing form for a client. I have a dropdown menu of services to choose from. We then have working calculation fields where they add in their [quantity] x [price] and then it spits out the total in another text box. All is working great. They've asked if I can add in a custom calculation if they select [Digital] from the services list, which then divides the [quantity] by 1000 and then multiplied by the price to calculate their total. Current calculations can stay the same if they choose any other service. Based on one dropdown item: [Quantity] / 1000 x [Price] = [Total] I'm sure this is doable, but i'm pretty new to scripting in the forms and can't find anything online to know what parts to start with. Any help is much appriciated.
I have searched and tired several javascripts, but being a beginner in this area I must have forgotten something along the string. I have a checkbox that if selected a sentence shows up. (I've named the checkbox and the text box, too)Another checkbox, that if selected also a popup sentence and another exisiting filed must be required and filled out.
I deal with larges sets of medical treatment records that I must submit to the government in my client cases in a specific order. The government wants the treatment notes ordered from most recent to the oldest. The records typically come from a doctor or hospital, however, in an order in which the oldest are "on top". Now if every treatment note for a given date was only one page, it would easy enough to get my records in shape for government submission by simply printing to Adobe PDF printer in reverse page order. But of course that is not the reality: treatment records for a given date can be multi-page. So for example the 3 pages for treatment records of ##/##/#### must be "kept together in the deck" so to speak. I am fortunate in that I can rely on this 3 pages already being in the right order (page 1, then page 2, then page 3) but I need to create some type of javascipt that keeps that group together, but puts it along with treatment notes for o
Does anyone have a way to use keyboard shortcuts to change the color of a field? I am trying to write a VBA code, that takes a status from Excel, and then exports that to a visual color in to the pdf. I can't use a mouse action because it is coming from a MACRO. Is there a different way to do something like this? Maybe change the color of the font? I am trying to think of many ways to figure this out and I'm drawing a blank. So, here is what I need to do...Complete an Excel spreadsheet that contains all pertainent data and a RAG (red, amber, green) status fieldMap the data from the excel spreadsheet to the corresponding fields in the pdf FormWhen I need to map the RAG status of the project -- (this is where I'm stuck) -- how to I tell the pdf to color code a particular text box, radio button, etc to FILL IN the object with a corresponding color from the excel file? I am open to all and any suggestions. Here is the issue, in o
Hey, is there anyone who could help me write the commend to my PDF form in JavaScript?What I would like to achive is function "if".If the responder give the answer "czynnik, który miał decydujący wpływ" then PDF plese open additional question below with required text answer.To make myself 100% clear i attached screenshot with explenation. Please, please, please help me. I would be very apprecieate for any tips.
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.