Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hello, I'm looking for the Javascript to copy and paste in an Adobe PDF fillable form. I have two groups, Group1 with options A and B, and Group2 with Options C and D. I want to make it so when someone clicks Option B in Group1, then Option C in Group2 is automatically selected. I've done this before with checkboxes, but I can't seem to get it to work with radio buttons. Thank you for your help!
How can I access the 0-based index of an individual radio button or check box widget for a field that belongs to a mutually exclusive group of checkboxes? All the SDK documentation that I've read doesn't illustrate with a clear example of how to work around this if you use .fillColor or readonly . Can anyone confirm if this is a field versus widget attributes issue? In the script below, the condition works perfectly when I use the checkThisBox parameter, for example. However, I can't figure out how to achieve the same results with fillColor and readonly. Here's my script example: //I hve three mutually exclusive checboxes acting like radio buttons //each checkbox has export values assigned like "myCheckbox 0", "myCheckbox 1", "myCheckbox 2" // var g is a dropdown depending on what is selected the conditions below should be met var g = event.value; var f = this.getField("myCheckbox"); if ((g =="True") || (g =
mac OS Sierra, Dell 2155 cdn printer/scanner/copier Acrobat Pro dc was working AOK. Now scan get message "This operation is not allowed, since scanning is in progress." Acrobat Pro dc uninstalled, reinstalled. Problem continued. Help!!!
I'm having trouble combining two fields into calculating:var a = this.getField("field1").value;var b = this.getField("field2").value;if (a == "1" || a == "2" || a == "3" && b == "10"){event.target.fillColor = ["RGB", 254/255, 244/255, 175/255];}else event.target.fillColor = color.transparent;I also tried like this: || a == "3")&&(b == "10")it doesn't work"a" can be 1,2 or 3 but "b" also must be 10.
I would like to try and improve the readability of PDFs in Acrobat DC by changing the Display Theme from Light to Dark Gray. However the View Menu > Display Theme option is missing? I've tried running updates but there were none available.Ideas anyone? If this the wrong forum please direct me to the correct forum.
Hi all, I want to copy multiple text fields into 1 text field (basically trying to create a summary page) using check box. Please note that i have over 100 questions and towards ecah question there are 4 check boxes i. e Yes, No , N/A and N/I. Primarily i want the text field to auto populate for the incorrect answer.Eg,I have text field 1.12.1.1 with text abcd and check box Checkbox1I have another text fields 1.12.1.2 with text xyz and checkbox2 Now i have both these text fields to be copied into "findings" text field if both the check boxes are clicked as NOAt present i am using this code which works very well with one check box. When i copy this to the other checkbox finding is replaced and it shows only one text at a time var fFrom = this.getField("1.12.1.1");var fTo = this.getField("findings");if (event.target.value == "Off") {fTo.readonly = false;fTo.value = "";}else {fTo.readonly = true;fTo.value = fFrom.value;} Thanks for all your help
Loking for the javascript todo the following: I would like a field to autofill the word N/A or allow text in a field depending on the choice from a dropdown box. The dropdown box has 5 choices and each has a numeric value from 1 to 5. Example. If the choice from the dropbox is the 2nd choice, I want the field to automatically enter N/A in the field. If Choice 3 is selected, I want the ability to enter plain text. Thanks for the help.
Hello - I am very new to Java coding, and need some assistance with this task. I am not getting any errors with this code, BUT at the same time, nothing is happening with the form. What i am trying to doI have a checkbox. I need to assign a $ amt to the boxIf check box is checked - I need $ amt to appear in separate text box "ColAMT"If check box is NOT checked - i need 0 to appear in separate text box "ColAMT" What I think should happen in the form, is the unchecked box should appear as "0" in the "ColAMT" box until it is checked. Once it is checked an assigned number should appear This is the code i am tryingvar value = 5365; if (this.getField("COLBox").value!="On") Value += Number(this.getField("ColAMT").value);var newValue = 0; if (this.getField("COLBox").value!="Off") newValue += Number(this.getField("ColAMT").value);event.value = newValue; Thank you, Courtney
I need to remove two text areas from A LOT of pdf files.I am using batch processing with this script:var fields = new Array();for ( var i=0; i<this.numFields; i++){var fname = this.getNthFieldName(i);if ( this.getField(fname).type == "text" ){fields.push(fname);}}for (var i=0; i<fields.length; i++){this.removeField(fields[i]);}My problem is that it removes all text areas.I do not know where to put the value so that it would onlyremove two specific text areas.One has a value Directions and the other one Directions2Would you please help me?
Hi there,How can I change default value of DuplexMode property in Print Dialog Presets to 'Duplex Flip Long Edge'? I need every new PDF file to be created with duplex mode by default. Any suggestions? Or is it possible to achieve this programatically, say using JavaScript etc.?
I am using the date picker calendar in a form on a MacOS 10.15.5 with Adobe Acrobat Pro DC 2020.009.20067. The customs format is dddd mmmm dd yyyy. When a date is picked the initial day is incorrect, however, when the date is selected the correct day is shown. Sunday -> MondayMonday -> TuesdayTuesday -> WednesdayWednesday -> Thursday Thursday -> FridayFriday -> Saturday Saturday -> Jan The pictures above show the wrong day being displayed during the picking process and the correct day being displayed after the date is selected. The problem is further compounded with console.println(this.getField("Date_af_date").value); displaying Jan June 27 2020 (the incorrect day).
I have a custom validation script on one of my text fields (WorkDate) which alerts the user to enter their name first from the drop down list (Employee Name) if it hasn't been filled in.Is there a way to add an alert by just letting them know to enter their name if not filled in but not forcing the user to enter their name first?The reason I ask is there is an issue on my form when clicking on the Clear Form button. The way it is now is when the clear form is pressed it clears everything except the Work Date with the script in it and the alert pops up to enter the name first. So, the name needs to be added again, delete the Work Date and then clear the form. It's not very user friendly right now 😞 This is the script I have in the WorkDate text field...if (this.getField("Employee Name").valueAsString==this.getField("Employee Name").defaultValue) { app.alert("Error! Yo
I need to translate a PDF to Word DOCX and create 2 files as "Retain Flowing Text" and "Retain Page Layout". Two use cases:1. Scan a folder every 5 minutes and translate each PDF and save the 2 files.2. Given a file reference, "C:\pdf\file1.pdf", translate and save the 2 files. Thanks for help.
Hello everyone,I want to write a folder level script using js in acrobat pro that does a POST request to a server. The server returns the response in JSON format. I want to use net.soap.request() function. I do not have any idea about soap. I learned about it using docs and stuff and found that it is an XML based messaging protocol and we can make the request to a soap endpoint using the above function. Now I am confused about how can I know that my endpoint is a soap endpoint and can't we make an HTTP request using the above function to any general endpoint?Could anyone please provide some help regarding this.Thanks in advance.
Hello, I am trying to design a simple Terms and Conditions page at the beginning of a document, where users read the T&Cs, click a button that says "I Agree" and then the rest of the document is made available to them. I have seen many threads about using templates, hiding them, and then using a JavaScript button to unhide them. This would work perfectly for me, except that I am unable to make a template that is more than one page, and the documents I will be attaching this to are hundreds of pages long. It is impractical for me to make every individual page a template, hide them, and then have to write code to unhide them one by one. Does anyone either have a different way they can make this work, or even a way to make a multi-page template? I have done lots of research on this and haven't found any suitable answers. Any help would be greatly appreciated!
When I manually add a signature field I can sign immediately without saving, closing, and re-opening the PDF. When I add a signature field programatically I can sign immediately without saving, closing, and re-opening the PDF. However, when I add a signature field programatically and also add a script to the field to be executed after signing (it doesn't matter what the script is) I get an error message: "This document could not be signed in it's current state. Please save the document, close it, reopen it, and attempt to sign it again." Doing what the message says works but I don't want to have to do that. I have same issue in Acrobat Pro X and Acrobat Pro DC. Does any one know this happens and if there is a way around it?
I'm using a Dropdown List box. I have already added the "Items" to be displayed. However, when I select an item, I would like for a different value to be exported in to the same box. For example: Let's say my list contains the list of the 50 states, each state spelled out. When I select "Texas", I would like for the value exported to be "TX". Snooping around I found this code, but nothing happensevent.value = event.target.getItemAt(event.target.currentValueIndices, true);I'm inserting it in the Validate tab - Run Custom Validation Script. I've also tried it on the Calculate tab - Custom Calculation Script: Is there something I'm missing here?Any help would be much appreciated. Thanks
Hello, I'm new here and new to Acrobat. I have successfully added a button to a form I want to duplicate and it is duplicating the form correctly. This issue I'm having is that I've added a batch Rename in the javascript but it's only taking effect on the third page generated. The page that's generated after the first button press is a direct copy of the original(fields and all), but the button on the newly generated form produces a clean form with empty fields. How do I get my original form button to produce a clean form with empty fields on the first duplication of the form?
I want to get rectangular position with height & width on the mouse drag. Can I make below code more dynamic? For example, eRect value should be come from mouse drag and it position should not be hardcoded. var inch = 72; var aRect = doc.getPageBox({ nPage: currentPage }); aRect[0] += 0.5 * inch; // from upper left hand corner of page. aRect[2] = aRect[0] + 2 * inch; // Make it 2 inch wide aRect[1] -= 0.5 * inch; aRect[3] = aRect[1] - 0.5 * inch; // and 0.5 inch high sigField = doc.addField("signature1", "signature", currentPage, aRect);
Hello, new to acrobat and trying to use the "catalog plugin" to create a full text index of a pdf file(s). At first I was having a hard time finding if this plugin was already installed in the Acrobat DC Pro I jsut installed. Now while in Acrobat, I click "About Adobe Plugins" , I get a dialog box listing what I assume are different plug ins on the left side. I click on "catalog" and on teh right side I see "catalog.api" and it displays "yes" for loaded and certified. So am I all set to use the catalog plugin? I honestly beleive that when I first saw this about screen it said "no" for loaded but I can't be certain. Could I have installed this plugin without knowing? This may seem like a stupid question but I will have clients that will need this plugin. Is there another way to determine if this catalog plugin is installed and ready to use other than this about box?
I have C# DLL which load PresentationFramework.dll .I call it from Acrobat SDK -> Basic Plugin in Acrobat Pro cd.It works normally without any issue, but when acrobat run on sandbox enable it throws this exception"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)"This is the code to call the DLL from the basic plugin "BasicPlugin.api"_declspec(dllexport) void TestLoadDLL(); ACCB1 void ACCB2 MyPluginCommand(void *clientData) { TestLoadDLL(); }This is the code in the C# "ManagedCSharp.dll" String executablePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); try { Assembly.LoadFile(System.IO.Path.Combine(executablePath, "PresentationFramework.dll")); } catch (Exception ex) { string error = "PresentationFramework.dll"; do { error += Environment.NewLine + ex.Message; error += Environment.NewLine + ex.
Very new to Acrobat and using the SDK to interact with PDF files. I am trying to create a program / app that will index a PDF file (ie create a pdx catalog) so the user does not have to open adobe acrobat and manually create a full text index. A little overwhelmed by all the different articles on the SDK but after researching countless articles I think the PDF library API is the best way for me to proceed. I am a Delphi developer but I do have some C experience. Thanks, Joe
I want to create new menu using plugin (Acrobat DC SDK), which will call Certify (Visible Signature) toolbar menu. I want to show custom alert with yes or no before Certify (Visible Signature) exceute.
When creating multiple PDFs in succession, I receive the error: Unable to find "Adobe PDF" resource files. "acrobat.dll\AMT\" and then the error "Error registering Distiller window class. Another copy of Acrobat Distiller may already be running. Error: 1410 - Class already exists."
I'm making a pdf that is beyond my basic knowledge of Adobe writer. I have a few things that I need to add or fix, but I just don't know how to. ** means it's priority**-Paste a dollar amount from other programs into the [Wire Fee] and [Payoff Amount] fields. It just makes a ringing noise when i try**- An action that prompts a completed form to save to a specific file with the [Loan #] as the pdf name. **-A Reset option after the doc is saved**-I keep setting the order I want my fields to progress to, but it seems like it keeps resetting to a default order, line one, left to right.** -I have no idea how to turn this into an Adobe Reader form for others to use and not mess with my formating.**-The[-Per Diem] Calculation reads "Nan" with the calculation I have set up: [Days Per Diem] ("h" Format category is: None, 2 character max ) equals [Overage] "f" divided by [Per Diem] "g" ("f" & "g" both have format category Number, 2 decimal $). Currently [-Per Diem] field's Calcula
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.