Questions
Recently active
I need to convert an invoice template in excel to PDF. I have two questions:1. This excel formula needs to be converted into JavaScript. =IF(SUM(N53,-Q53)<0, "$0.00", SUM(N53,-Q53)) I tried a formula converter and replaced N53 and Q53 with Text1 and Text2 and I could not figure it out.2. I want to know if I can make a field required under certain conditions. Say I enter a dollar amount and want to know if the service was performed in CA or in the US I want the consultant required to check the option that applies. However, there may be extra lines that are available to enter amounts but not completed because they only need a few lines. Can I have a required field with an if statement for the other lines available but not in use, so it will not be required if certain fields are not completed.The only way I can work around this is putting a N/A option but then they would have to complete all the lines t
Hi Everyone, I have a form that creates a project name based off of selected values in a series of dropdowns.For example, Dropdown 1 has the values Maryland, Virginia, Pennsylvania and DelewareDropdown 2 has the values Architecture, Engineering, Construction Management Dropdown 3 has the values New Build, Modification, Demolitionwhen selected, the selections form a project name, ex. Maryland - Construction Management - New Build in read only fields.Because of the way I wrote the validation, the values in Dropdown 2 and 3 are dependent on the selected value in Dropdown 1. What I am trying to do is create the project name with an abbreviation of the selection from the dropdown. So when you select "Construction Management", it populates "CM" and when you select "Demolition" it populates "DEMO", etc. I am not able to adjust the export value in the Options tab since the selections are completely based off of a switch validation script I have built into the State dropdown. I am using the bel
I have been searching all over the internet for full information on this, and I'm just having a very difficult time figuring it out and would appreciate any help I can get.I have a function which is intended to automatically split PDFs based on the text of the page. According to the console, everything works fine in this function except for the "extractPages" function, which returns the following error:RangeError: Invalid argument value.Doc.extractPages:31:Document-Level:splitPagesAs I looked into it, it appears that this function is a privileged function, and this is where I start getting confused. As far as I know, there is some folder-level script that needs to be added in a certain folder (which I believe I've found) which gives the program privileges to do this sort of thing. However, past that, I'm totally lost. Does the splitPages function itself go into that .js file in the folder level? How do I call it? How do I set the correct permissions?If anyone can help me out, or direct
How to edit "Show Document title" using javascript on document property window in acrobat?Thank you
Hi,I am trying to open a collection of PDF files and execute script in each annotation 3D found in each PDF.I have created a program that does the trick using addScript but I have encountered issues I can't resolve regarding Security when a PDF is secured and addScript fails. Using jsObject, I am getting the scene of the 3D annotation and I am able to access scene.nodes.But I can't figure how to reach each node by its index. I have tried to do (C#) : Type javascriptObjectType = a_javascriptObject.GetType();return javascriptObjectType.InvokeMember("getByIndex", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance, null, a_javascriptObject, new object[]{ 0 });where a_javascriptObject is my COM object of the result of scene.nodes. I am able to access the property count of scene.nodes though.Is it possible to get a node by its index? What am I doing wrong?
When the Use custom list radio button is selected I would like the 2 groups below it to become required fields. Group 1 will have one of the two radio buttons selected and the same with Group 2. Is this possible?
I am running this at the document level and it is being executed by a bookmark calling the function.function oneFourOne() { var ocgSchematicArray = this.getOCGs(this.pageNum); // Look through all the layers on this page for (var i = 0; i < ocgSchematicArray.length; i++) { // Find the layer name that matches the defined wire color if (ocgSchematicArray.name == "141 (Lt Orange)") { // If the layer is turned on... if (ocgSchematicArray.state == true) { // Turn the layer off ocgSchematicArray.state = false; &nb
I am currently working on a pdf form that uses Javascript. I have a Javascript setup to validate that all required fields are filled in, followed by a save as, and then followed by email that populates the subject field using form fields. There are three javascripts built into one button. Is there anyway that I can put a stop in that if all required form fields aren't filled in that the other two javascripts won't run?
I am trying to extract a start date and return date into one field to show travel date. These text-boxes are formatted as Date fields except for Travel Date. one is (departure) and the other is (return). I want to extract these two fields into one field so that the travel date text-box is: ("departure" - "return").Below is what I currently have however it is not working.var sDate = this.getField("text4").value;var rDate = this.getField("text15").value;var tDate = this.getField("dateTravel").value;tDate.value = sDate.value + " - " + rDate.value;
I have an application using AcroPDF after the most recent adobe update the program will not open some files. Possibly due to special characters in the file path.One example is O:\AP_01\@@@\@@#\@=&\00086717.pdfThe I am using the LoadFile() function. This worked fine just last week. Is there any fix for this issue? Thanks in advance
Hi,I was wondering if there is a way to pause or delay script in batch sequence of acrobat. I have tried app.setInterval, app.setTimeOut but in both case app go to read next lines. timeout or interval script does not get a chance to run because action for current files finishes before timeout time reach and batch action proceed to next file without dialog being executed.. I have tried setting it very low.Let me give more details, I am working on the scanned files. with batch sequence, when batch sequence open first/any file a dialog box appear to allow input a ref no from the scanned image but since document view is not clear and one cannot read the number from screen. See attached.While document view is expected to look as. I need to read the red marked area. Is there any way to do this?Thank you
I have created a adobe form with server side signature from SAP. When i opened the document in adobe reader the digital signature is present in the document but the green tick/? for the signature validation is not present in the document. But when i verify the signature i get a message at the top of the PDF document stating that the signature is verified. Please let me know what i need to do to get the green tick or question mark symbol to indicate the signature is verified.
Hi,I am wondering if someone can help me..I am automating a set of actions.My first action step is "var cRtn = app.response("Enter Invoice number");"My problem is that this app response window appears before the pdf page has finished rendering on the screen. I want it to fully render so that the user can read the invoice number and then input it into the window.Is there a way to delay the window appearing until the pdf page is fully rendered and visible ? ThanksAndrew
This is what I have so far however I do not know how to get the 35 and 45 in the statement.I am using Adobe Pro XI. This is my first time adding scripts to document for validation.event.rc = true;if (event.value.length != 12 && event.value != 'Must be 12 digits Select Prefix and enter Account number behind. cheq - 25 ushceq - 35 plan 24 - 45') { app.alert("The entered value must be 12 characters long and start with prefix cheq '25' or uscheq '35' or plan 24 '45'!"); event.rc = false; }var n = event.value.indexOf("25");if (n == -1) { // substring not found app.alert("The entered value must be 12 characters long and start with prefix cheq '25' or uscheq '35' or plan 24 '45'"); event.rc = false;}else { event.rc = true;
Hi,I am converting a document to a form and there is a ratings section with 6 categories where a rating of 1 to 5 is given. A read only field Total-Score calculates the ratings given for each category.However, one category Kitchen, is only required if it a kitchen is present. Thus, a radio button with Yes and No option is present and if Yes is selected, the Kitchen-Rating field goes from hidden to visible, allowing the user to enter a rating. Otherwise, if No is selected, the field remains hidden.How do I go create a custom calculation script to sum up these fields yet factor in the change of state of the Kitchen-Rating field, i.e. if hidden it is not included and if visible it is included? Below is my attempt to create the script but I receive the error message "SyntaxError: missing : after property id 3: at line 4".if (this.getField("Kitchen-Rating").display = display.visible);event.value = {this.getField("Bathroom-Rating").value + this.getField("Beds-Rating").value + this.getField("
Hi, I'm trying to use the code below to add a barcode to a document. The variable cRtn is set to '1234' by an earlier script. this.addWatermarkFromText({ cText: cRtn, nTextAlign:app.constants.align.center, cFont: "Free3of9", nFontSize:36, aColor: color.black, nStart: this.pageNum, nOpacity: 1.0});SyntaxError: syntax error1:Console:ExecundefinedI can add the barcode if I use the UI to add the barcode, but seem to have a problem if I call this from JavaScript. The console gives an error and nothing appears on the document. Any idea what's going wrong?
Hello,Is there a script to display only the last 4 of a string of numbers where the full number of numerical characters can very?Either display as "xxxx2298" or "2298". Or any other method.Thanks,Ed
I'm attempting to write a C++ function that will generate the following on a PDF page:A top bar that that has a solid line of color around it and inside a gradient that shades from white to this color top to bottom inside this bar.Place within the top bar an icon, some text and then some optional icons on the right hand side.Under the top bar have one or more lines of text with the color bars on the left and right hand side to match the width of the top bar.Between lines of text draw a black line.Below the last line of text have a color line to act as the bottom of the box.Does anybody know of sample code that does one or more bits of this?
HI all - apologies in advance, I'm a complete laymen when it comes to JS. I've searched high and low for the answer, but I worry that I don't know how to phrase the question to find the right answer.In short, I have a form that will have three figures manually entered into three different fields. A fourth box will run Adobe built-in code to sum three other fields. I then have a fifth text field. I'm having trouble with the fifth field. I want it to look at the sum total of the fourth field and depending on the value, return the words "Low", "Medium", or "High". From my first image below, you'll see this will then be repeated for "Simple", "Intermediate", and "Complex". Each half of this form will determine Seriousness and Complexity.I've only worked on the Seriousness side at this stage. If the value is 0-5, I want to return "Low", 6-10 "Medium", and 11+ "High". The second image is the script I've been trying to use. I've seen multiple variations of different ways, but none of them see
Not when opening a file, but when opening a program?
Hi All,I'm fairly new to javascript. I've been working my way up more complex combinations, but I can't seem to figure this one out. I'm trying to get the results of two sets of radio buttons to determine whether multiple fields are shown and which message comes up when clicking the submit button.If button 1 = yes and button 2 = yes, I need to show fields 3, 4, 5.If button 1 = yes and button 2 = no, I need to show field 6.If button 1 = no and button 2 = no, I don't show any fields.I've been at this all day and unable to write the script that works. PLEASE Help!
Is there any way using the Acrobat API to say search through a PDF, and find, the location within the document (say page number) of where any image shows up?I want to have a script where I can present to the user the areas of the document that contain images for review.
Good eveningI am wondering if there is a way to change text that the user puts in into "ERROR" if that said text is wrong.For more clarification, I am trying to make a script where, if the user puts in the code "Z85" in a field where it shouldn't be there, it'll change the "Z85" into "ERROR."
Good morning,I have to create a "checklist" for our office and would like to add a text frame with a onClick event behaviour. My idea is that after exporting as an interactive PDF file the user can click (or double-click, doesn't matter) on this specific frame and it shouldauto-complete this field with date and the windows login name. Is this possible and if yes, how can I do this?What I've got so far is this command--> alert($.getenv("USERNAME"));which returns the actual logged in user but I'm struggeling with the onClick event (javascript is not really my business)Thank you in advanceKind regardsMoritz
Hi,I'm developing a Plugin for Adobe Reader, where we (form a stand alone program) can read the selected text range aloud. The words are highlighted during read.The plugin can read now read and highlight selected body text.I want to extend the plugin so it would be able to read and highlight text in form fields. (where user can enter data).If I select text in a form field AVDocGetSelectionType return "AcroTextEditSelection". I cant' find any information about this selection type.Does anyone know how to get and highlight text in form fields?Thanks in advance.Carsten
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.