Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
At work, for each project I submit, I use a pdf form that has the information from the previous two editions of that project, as well as the current. We manually copy each field down each year (CurrentPages gets copied to PrevPages, etc.). I was hoping I could use javascript and a button to make this automatic. Can anybody help? Some of these fields are text fields, some are drop down lists, etc. Each field that needs populated will already need filled and will need cleared and/or overridden.
Good evening, I made a script to print specific pages in a range from my document, except that the page information being printed are all different dimensions on the paper.Here is my script: print.this(false, 0, 6);print.this(false, 7, 23);Is there a sepcific printer setting I must use, to make the pages print out correctly? Any help would be wonderful, I intended the pages to print out, "fitted."Thank you!
Hi,I am trying to write some code on the "exit" button of a survey that will close the form and export the data as a .csv file to a location on the user's computer of their choice. The data consists of simple radio button answers, some yes / no, and some multiple choice (four possible answers).I've been messing around but haven't found a good solution..Is this possible?Thanks!
Have a custom action setup to reduce pdf file size in a specific folder and its subfolders. However, I need the action to skip over all other file types that are NOT pdf files. If it's a javascript command that needs to be inserted into the action, that would be fine. But haven't found a way to accomplish this. Current action (without javascript command) fires error message when trying to open, .docx, .xlsx, .txt, etc. files. Any help would be greatly appreciated - even if it's to tell me to stop trying, it cannot be done. Then I will move on.Thanks.
I have a java script that I use to submit a form to 2 different addresses depending on a certain field.But when it send the form it sends as an FDF not a PDF; I need it sent as a PDF.How do I ensure it is sent as a PDF not an FDF?I am an absolute novice at java script so any help would be appreciated.thanks in advanceR.Keevvar addr= "";if (this.getfield("DropDown1").value=="Yes"){addr="1stmaillist@whatever";}else{addr="2ndmaillist@whatever";}This.submitform("Mailto:" + addr);
Hii am trying to create a form to that has a text field change color to either green or red depending on three things. the first variable is a the text field "wpds1", the second is text field "dia1" and the third is the text field "Amps". the user would input UB36 into the "wpds1" text field and either 5/32 or 1/8 into the "dia1" text field. When the user inputs a number into the "Amps" text field i want the color to change based on the input. here is what i got so far.var f = event.value; var wpds = this.getField("wpds1").value; var dia = this.getField("dia1").value;if (wpds = "UB36") { if (dia = "1/8") { if(f >= 70 && f < 131) {event.target.fillColor = ["RGB",0.800,1,0.800]
i am trying to create a form to that has a text field change color to either green or red depending on the calculation of values from two other text boxes. at first i had consecutive If Else statements and the calculation would work but the color change would seem to be delayed. . say the range of values to turn the fill color green is 19 - 26, if i type in 19 the color wont changeto green. but when i type in 20 it does change green and if i go down to 18 it stays green. is this issue because i had consecutive If Else statements? var f = event.value; var wpds = this.getField("wpds1").value; var dia = this.getField("dia1").value;var pass = this.getField("pass1").value;var Distance = this.getField("Distance").value ; var Time = this.getField("Time").value ;var Travel_Speed = Distance / Time * 60;if (Distance > 0 && Time > 0){this.getField("travelSpeed").value = Travel_Speed ;}else { this.getField("travelSpeed").value = ""}if (wpds == "UB36") {&
I am trying to make a field change its fill color based on its expiration date. I have tried to figure out a way to do it using the action builder to no avail.Example:User enters expiration date in the date fieldif the date is greater than 90 days out the fill color stays whiteif the date is greater than 60 days out but less than 90 days out it turns greenif the date is greater than 30 days out but less than 60 days out it turns yellowif the date is less than 30 days out it turns redI was easily able to make this work in excel using =XX>TODAY() + 60 and a quick format change but livecycle is proving to be much more difficulty. Obviously I could stick with excel but PDF is so much cleaner IMO.Any help would be greatly appreciated.
Greetings. I have looked all over for this solution and am hitting a wall.I have two dropdown lists on my Adobe Acrobat DC form. Here is the pseudocode I am trying to create into a javascript action:If (dropdownList1 value == "department1") && (dropdownList2 value == "building1") then textBox value == "Mr. Church"elsetextBox value == " "Anyone had any luck getting something like this working?Thanks.[Moderator moved from non-technical forum Lounge to JavaScript .]Nancy
We have multiple PDF files in Lotus Notes that needs to be migrated to SharePoint 2013, each PDF in lotus notes has link reference to other PDF.But as we migrate to SharePoint these link reference needs to be updated to point to new location, we are looking for some code solution to read and update these links.Any server side or client side code will work, but we are not willing to use any third party DLLs.Ankit
Hi,I am creating a mental health pdf form survey with very basic yes/no radio button options (See image below). Each page has one question. I am trying to create some simple code that transitions to the next page if a user selects one radio button (Q1 choice 1), but skip to the 11th page if they select the other (Q1 choice 2). I want this to happen when they click the "next" button.I assume I add the code to the "next" button... Something like "if radio button Q1 choice 1 = true, go to next page, else go to 11th page" (excuse my lack of coding knowledge).How would I go about this?Thanks!
Is there a Javascript available that automatically renames a PDF based on the content? Some fields in the PDF should be reflected in the PDF name.
I'm using the javascript map object and its not working as expected. I searched the forum for any issues with the map object, but found nothing. The relevant javascript documentation is here. I created a form with javascript at the Page Level. The javascript uses an iterable literal for initialization:this.myMapIterable = [ [ "002", { "code": "002", "rate": 0.0165 } ], ];this.myMap = new Map(this.myMapIterable);I shortened myMapIterable to one entry, but in the original there are over 50 entries. The length of the iterable does not present itself as an issue. Given the above code one would expect that getting an entry, using the following code, would produce the associated object:this.myMap.get("002");The above, should according to the Javascript documentation, produce the object:{ "code": "002", "rate": 0.0165 }Unfortunately, it doesn't. What I get is undefined!? I been battling this issue for the past day. Playing around in the Javascript debugger, I have found that the Acrobat imple
I tried the instructions below but it does not work:In Acrobat:The script you create to display the current date when the document is opened is a document level script.To create an automatic date field:1. Select Tools > Forms >. Edit > Add New Field > Text Field and create a text field. (For more infor-mation, see the section on Creating Form Fields in the Acrobat online help.) Select All Properties > General tab and name the field Today.2. Select the Format tab, chooses Date for the format category, and chooses a month, day, and year format option (for example, “mmm d, yyyy”). On the General tab, make sure the field is read-only because it will be a calculated field, and click Close.3. To create a document level script that is executed each time the document is opened, choose View > Tools > Document Processing > JavaScript > Document JavaScripts. Name the script Today, and click Add.4. Delete the automatically generated text, defining a Today function, that
I've created a PDF with a list of 'results'. Each have a Title, Link, Date and Description.For some Links, the converted hyperlink in Acrobat Pro / Reader CC is incorrectly appending part of the second line, the Day.This only happens in Acrobat apps, not Chrome PDF preview or Edge PDF preview.here is a link to the dochttps://drive.google.com/a/bitvore.com/file/d/0B-_yL1qkqD-_a2oyMWwtLU9iWjA/view?usp=sharingIt is looking like a bug in Acrobat. Does anyone know why this might be happening? !
I am working on a vacation request form that has a field for start time and end time in h:mm tt format. I have a script that is working for calculating the difference in those fields, however, I need this have an exception and I am not sure what to add/change.If an employee request 8:00 am to 12:00 pm the script works fine, however, if they request 8:00 am to 5:00 pm it fails because it doesn't take the hour lunch period into consideration.Please advise.// get the values of the fieldsvar sStart = this.getField("Start TimeRow1").value;var sEnd = this.getField("End TimeRow1").value;// clear field as a default actionevent.value = "";// compute only if we have valuesif(sStart != "" && sEnd != "") {// add a formatted date value to the time field valuessStart = "1-Jan-1970 " + sStart;sEnd = "1-Jan-1970 " + sEnd;// convert the date time strings to date objectvar oStart = util.scand("d-mmm-yyyy h:MM tt", sStart);var oEnd = util.scand("d-mmm-yyyy h:MM tt", sEnd);// convert date ob
Hi,I'm new to Adobe Javascript.We use the Extract and Print commands to create new pdf files which we send to clients. One of the problems is that we are not able to print more than 32 pages using the menu print command. We need to print up to 100 pages. We are using Adobe Acrobat Pro DC, version 19.0.10.20069.49826.So, what we do is perform two print commands to pdf files, then use Adobe Combine to merge the two files together.We want to avoid having to print multiple files and then stapling them together. We are happy just using the print command to one file.Any suggestions?Rico
Hi! I am trying to pull form data from a PDF document and place it in an email using app.mailMsg - I have a button placed on the page where the data will come from with a mouseup trigger. I've cleaned up the data and email structure that I want to use a few times so I'm not sure if there is an error in my code/syntax (I'll paste below) or it is something that I am completely oblivious to. Any help is greatly appreciated! Thank you! var cMyMsg = "DOEE Notification\n\n"cMyMsg += "Client Name: " + this.getField("custName").value + "\n";cMyMsg += "Date Inspected: " + this.getField("inspectionDate").value + "\n";cMyMsg += "Address: \n";cMyMsg += "Structure Type: " + this.getField("structureType").value + "\n";cMyMsg += "Year Built: " + this.getField("yearBuilt").value + "\n";cMyMsg += "Owner: " + this.getField("buildingOwner").value + "\n";cMyMsg += "Building Structure Consists of:\n";cMyMsg += " *Framing: " + this.getField("typeStudFraming").value + "\n"
Liebe Leser,wo bitte finde ich die aktuellen DDE-Kommandos für Adobe Acrobat?
Created pdf from InDesign and imported graphics and text has hyperlinks. These are interactive in the pdf BUT do not show up as links so I can edit.
I am looking for information on how to mirror text in Acrobat XI Pro. I can mirror an image but not text. I can also flip text horizontally and vertically but I cannot get the TEXT to mirror. Is that still an option in Acrobat XI. I need this for our prepress department. We plate the text on the left and then mirror it on the right so our press can print both sides at the same time. I have had to resort to using an old copy of Acrobat 8 on an old machine and then copying that pdf to the machine I am using now in order to accomplish this task. I have been looking for an answer for a while and can only find information on mirroring an object or image. I hope someone can help.
Hi,I'm trying to setup a button to turn off 9 layers on an interactive pdf form.8 out of 9 of the layers turn off no problem but the 1 layer remains turned on. Really not sure why this is happening. Double checked obvious things like layer names but to no avail. The WR1 layer will not turn off when I click the reset button.Could anyone please help me with this 'simple' task as I am not particularly advanced with Javascript.PDF form attached here https://we.tl/t-gS6R4unxWlThanks in advance.var layer = this.getOCGs();for(var i=0; i<layer.length; i++){if(event.target.value=="Yes"){if(layer.name=="WR1"){layer.state=false};}{if(layer.name=="CL1"){layer.state=false};}{if(layer.name=="NC1"){layer.state=false};}{if(layer.name=="WR2"){layer.state=false};}{if(layer.name=="CL2"){layer.state=false};}{if(layer.name=="NC2"){layer.state=false};}{if(layer.name=="WR3"){layer.state=false};}{if(layer.name=="CL3"){layer.state=false};}{if(layer.name=="NC3"){layer.state=false};}}Message was edited by: Ro
Ok so I have a situation where I have Check boxes and text boxes that are related and need to populate together to a single text box BUT I have another set of check boxes and text boxes that are related that ALSO need to populate together to the SAME single text box mentioned previously. So here are the separate java scripts for each set of data that I want to put into the same single text box. How do I join the scripts together? or is it possible?Script 1:var values = []; for (var i=280; i<=281; i++) { var fname = "CheckBox "+i; var f = this.getField(fname); if (f==null) { console.println("Error! Can't find: " + fname); continue; } if (f.valueAsString!="Off") values.push(f.valueAsString); }if (this.getField("SLS EO").valueAsString!="") values.push("SLS EO: " + this.getField("SLS EO").valueAsString)
When populating a "list_box" from an already (case insensitive) sorted json object, the results display in the list box as being sorted with case sensitivity in mind. Does Acrobat apply its own (case sensitive) sorting logic to this/all element types?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.