Introducing Community Challenges: Create & win Firefly Pro 👗✨
Unlock the power of Acrobat SDK through our community.
Recently active
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
Making a form which is 11 pages long on page 2 is Surname1 1st field Givenames1 2nd Field on page 11 I have a Name1 i want to combine the first 2 into the 3rd automatically. Really dont know what I am doing do I do script in the first 2 fields or just tell the 3rd field to look and enter info....thanks in advance
We save a lot of PDF files one a daily basis and we need to stamp on top of each document a section of the filename.The sample filename would be - 023 - PID 123456789 - ABC 1234567The PID and 9digit number after it will always be different, and needs to be stamped on each document. Is there a way for us to batch stamp each document and is there a code to section off just that part of the filename for maybe, a dynamic stamp. We only have Acrobat Reader DC.
Hey,I am trying to underline (or highlight) a text (few words) in a PDF using AppleScript. Can someone provide me with an example (script) for doing this?ThanksL.
I have a section of Yes/No radio dials. Each of these dials needs to equal a numerical value for calculating a score for example:Do you like the color red?-Yes (3 points)-No (3 points)Do you like ice cream?-Yes (1 point)-No (1 point)(Each question holds a different numerical value for calculating a score)The Yes and No radio dials equal the same number for each individual question; however, each question has its own value. I need to assign values to the Yes and No radio dials so that I can total them by their answers of Yes or No based on their assigned values.Is there any script to do this or is there a simple setting I'm missing to accomplish this? Thanks!
Hi All,I have a form we are giving to service guys in the field to fill out on a Galaxy Tablet.My goal is to have a button on the PDF that attaches the PDF to an email, makes it read-only, and names the document a combination of text from fields. I have done similar very simple things with PDF buttons for use on a desktop, but never on a tablet and not with these many items.Any ideas if this can actually be done and if so, some code examples?Thank You!Hunter
I've been refreshing/expanding my understanding of how to use the Acrobat Interapplication Communication OLE Automation in Powershell to work with PDFs.I'd appreciate any feedback on the following code, which I view as the basics of creating the App, PDDoc, and AVDoc COM objects needed to open, work with, and clean up after working with a PDF. Are there better/more efficient ways to accomplish the same end?(I had to paste the code in as an image because I didn't see a way to paste code in this editor.)ThanksChristian Bahnsen
Hello, I am trying to make a code, where the "check-spelling" feature will work on fully capitalised words, I was wondering if there was a script to insert into the document for this to work in any way?
i have a if loop to check some parameters :var A0 = this.getField("Dropdown14.0").valuevar A1 = this.getField("Dropdown14.1").valuevar A2 = this.getField("Dropdown14.2").valuevar A3 = this.getField("Dropdown14.3").valuevar A4 = this.getField("Dropdown14.4").value...var A500 = this.getField("Dropdown14.500").valueif (num1!=0 && A0=="check" && A1!="check" && A2!="check"... A500!="check")now the problem is A0 go to A500.....the only solution is to write A0=="check" && A1!="check" && A2!="check"....any smarter solution?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.