Unlock the power of Acrobat SDK through our community.
Recently active
Hi there,A quick question regarding text field validation, please can someone point me in the right direction?I'm trying to validate a text field, that's a comb of 2 characters, to only allow values from 01 - 11.Setting the form field format to number means losing the leading zero which I'd like to keep.So far I've come up with this...event.rc = true; if (event.value != "" && event.value != "01" && event.value != "02" && event.value != "03" && event.value != "04" && event.value != "05" && event.value != "06" && event.value != "07" && event.value != "08" && event.value != "09" && event.value != "10" && event.value != "11") { app.alert("The entered value needs to be from 01 to 11."); event.rc = false; }This code does what I need however it allows the user to enter anything into the field because there is no format on it.Is there a nicer way to restrict the user to entering numbers only, check
My project is creating a dynamic stamp with a custom dialog box that stamps a group of files with an auto-incrementing exhibit stamp. I have an issue that I could use some guidance on. The dialog box asks for Exhibit Type, Prefix, Starting Value, Case#, and Page Location. I want this dialog to appear once before the first document, and then to batch process the other documents using the stored values. I know the variables need to be stored in a global variable, but I don't know how to prevent the dialog box from popping up each time. I've searched community post and read "All About PDF Stamps" with no luck on finding what I need. Does anyone know how to script this or if there a resource I can look at?
Hello, I am using a MouseUp script on both Image9_af_image (star) and Image8_af_image (peach background). However, when they are overlapping, as in the screenshot below, and I click within the star's box, only Image8_af_image receives the MouseUp event. Is there a way to make Image9_af_image receive it instead or have both receive it?
I am setting up a fillable form using Acrobat DC. It is intended to be a quick and easy way of creating invoices to customers. There are fields for FirstName, LastName, Address1, Address2, PostCode, TelephoneNumber, Email, InvoiceNumber, ItemDescription, ItemCost, Total. I have created a submit button for the form. When I click it, it currently opens my mail client, fills the Subject field with a specified text, creates body text, including taking the recipient's first name from the form as a greeting, then sends a copy of the pdf to my email address, and to the recipient's email address, again, taken from a field on the form. That's all working well. I want it to do more though. This is the workflow I would like: Click Submit > OnMouseUp > Hide the submit button > Flatten the entire file so that it is no longer editable, Create a new PDF file from the original pdf, naming it with input from the InvoiceNumber field on the original > Save the new file to the same folder as t
Hi all,I hate doing this because I know, at its core, this is easy...but, I'm crash-learning Adobe/Javascript after developing basic interactivity in VB for a document that now is getting transferred to a pdf, and thus losing its VBA'ness. But, enough whining, and onto the issue:I got two sets of two checkboxes (which, could - and probably should - be radio buttons grouped as two groups of two), lets say Group 1 contains Checkboxes A and B, and Group 2 contains C and D...they are named CBA, CBB, CBC, and CBD respectively. I also got a text box that needs to be populated with different text based on the four possible combinations of selections that could be made amongst the CB's. The text box is named "Text2". So essentially, I need a script to replace the text in Text 2 based on the checked or unchecked (or radio'd) nature of the combinations:CBA-CBCCBA-CBDCBB-CBCCBB-CBDAny assistance you can provide in putting this code into Acrobat - would be appreciated. Thanks, in advance
I am collecting data from a form I created and sent out to several recipients. I have created the response file and have correctly added Returned Forms. My issue is that for two response forms, it appears that the participant somehow changed the field names, and for these two sets of data, they "have different fields." I need the data from all data sets to align properly, otherwise I cannot do the appropriate analysis of the information. Is there a way to fix this? Is there a way to fix the field names on the returned form so that it matches with the rest of the other returned forms' field names?
I'm trying to create a work flow "pop up" when my form is signed... i.e. once signed, a popup will then direct the user to email the form to the next person for signature... I've tried several scripts...does anyone have one that will workthank you
Is it possible to change the signature color properties? I don't see a way. thanks.
Hi. I am trying to add a custom calculation formula and I don't have much experience with these. I would like my form to automatically update one text field depending on what is added to another text field. For example, if 951000 through 954000 is added to DeptID I want Fund to autofill as 225 and if 956900 is added to DeptID I want Fund to autocalculate as 569. If 957000 is entered in DeptID I want Fund to autofill as 570. I am using the custom calculation below and it works the first time I enter the DeptID but it doesn't update if I change the DeptID. And if I leave the DeptID blank it is keeping 569 in Fund. What am I doing wrong? I am entering this code in the Fund custom calculation:var DeptID=Number(this.getField("DeptID").valueAsString);if(DeptID=956900) event.value=569; else if (DeptID=957000)event.value=570;else event.value="225";
Is it possible to get bounding box of a field as an AcroRect object ? CAcroApp acroApp = new AcroAppClass(); CAcroAVDoc avDoc = new AcroAVDocClass(); CAcroRect acroRect = new AcroRectClass(); CAcroPDDoc pDDoc = new AcroPDDocClass(); if (!avDoc.Open(sample_pdf, "")) return; else pDDoc = (CAcroPDDoc)avDoc.GetPDDoc(); IAFormApp formApp = new AFormAppClass(); IFields myFields = (IFields)formApp.Fields; IEnumerator myEnumerator = myFields.GetEnumerator(); while (myEnumerator.MoveNext()) { IField myField = (IField)myEnumerator.Current; string fieldName = myField.Name; string fieldType = myField.Type; } I need to replace myField of type checkbox to a text field of same size at same location. I can remove checkbox by while (myEnumerator.MoveNext()) { IField myField = (IField)myEnumerator.Current; string fieldName = myField.Name; string fieldType = myField.Type; //Remove Checkbox field type if(fieldType=="checkbox") myFields.Remove(
Hi there, Just a quick question regarding checkbox groups. I have a group of checkboxes and they're all named the same - xyz.I can reference each checkbox as below:var w = this.getField("xyz.0") w.checkThisBox(0,true);Using the index xyx.0, xyz.1, xyz.2 etc I can reference each checkbox individually. Is there a way to get the number of checkboxes, or widgets, in the group?I've tried a couple of things, such as w.length and w.count, but as yet haven't succeeded.Obviously when trying to reference the group I'm using var w = this.getField("xyz"), there is no index as the code above. Thanks in advance.
I have a form with 3 dropdown lists to select from.box 1 = product (works)box2= location (not working)box3 = Pipeline (works) Box 1 is supposed to determine the data for box2 and box 3.for some reason, box 2 is not populating ...Im only getting a value in box 3 when box 1 is selected.var drop = this.getField("drpLocation"); var drop = this.getField("drpPipeline"); if(event.value == "DSW-CUSHING"){ drop.setItems(["CUSHING, OK"]); drop.setItems(["ENTERPRISE"]);} else if(event.value == "WTI-CMA"){ drop.setItems(["CUSHING, OK"]); drop.setItems(["ENTERPRISE"]);} else if(event.value == "WTI-COLORADO CITY"){ drop.setItems(["COLORADO CITY, TX"]); drop.setItems(["WTG","BRIDGETEX","MAGELLAN","NUSTAR","PE2","PE3","PE4", "ex-WTG","ex-BRIDGETEX","ex-LONGHORN","ex-PE2","ex-PE3","ex-PE4"]);} else if(event.value == "WTI-CORPUS"){ drop.setItems(["CORPUS CHRISTI, TX","ROBSTOWN, TX","INGLESIDE, TX","TAFT, TX","BUCKEYE"]); drop.setItems(["CACTUS I","CACTUS II","EPIC CRUDE","GRAY OAK","NUSTAR","PLAINS
Hi, since I updated my Mac from OS X El Capitan to Sierra, I'm facing several problems. One is, that can't print PDFs anymore (other file types o.k.). I get the message:Gestoppt "Filter" fehlgeschlagenWhat kind of "Filter" is the system talking about?Anyway, I thought maybe reinstalling Acrobat Reader would help, but that won't work either. In the middle ion "Paketskripte ausführen" it tells me:Derzeit wird eine Instanz von Adobe Reader ausgeführt. Schließen Sie die Anwendung für alle Benutzer und wiederholen Sie den VorgangTo what "instanz" is the system referring and what "Anwendung" should I close.I'm completely stuck. Can you help? Thanks a lot, Mojo
Hi there,I've written some code to create a combo box and all works fine in JS debugger.The values for the combo box are passed in via an array like this:var aOptions = new Array('Choose an Item','Apple','Pear','Banana','Grape','Orange');I'm now trying to pick up the values from a text field, on a form, and generate the combo box.I've tried a number of different ways to take the values from the text field and generate separate combo items. The value taken from the text field ends up as one big item.I've tried splitting down the values from the text field in a number of ways, for example using a comma to separate them, but as yet haven't succeeded in generating separate combo box items. As mentioned earlier, the code above works fine in the debugger it's when I try to pick up the values from a text field I'm having issues.Please can someone point me in the right direction. Thanks in advance.
How can I find the index of an annotation ? int annotIndex = pDPage.GetAnnotIndex(pDAnnot); For getting the pDAnnot, we need to specify the index before hand pDAnnot = (CAcroPDAnnot)pDPage.GetAnnotIndex(annotIndex);Feels like a closed loop. Any idea on how to get AnnotationIndex
I am creating a custom dialog box, and I am trying to add two sets of radio buttons with four choices each. I have them appearing as I want with the script below, but I want the two sets of radio buttons to operate independently of each other. As it is right now, you can only select one button in the entire dialog box. Codedescription:{name: "Exhibit Stamping",elements:[{type: "view",elements:[{type: "cluster",name: "Type:",elements:[{type: "view",char_width: 8,align_children: "align_top",elements:[{type: "view",alignment: "align_left",elements:[{type: "radio", item_id: "PEx",group_id: "ExType", name: "Paintiff's Exhibit"},{type: "radio", item_id: "Ex",group_id: "ExType", name: "Exhibit"},]},{type: "view",alignment: "align_right",elements:[{type: "radio", item_id: "DEx",group_id: "ExType", name: "Defendant's Exhibit"},{type: "radio", item_id: "JEx",group_id: "ExType", name: "Joint Exhibit"},]}]}]},{type: "cluster",name: "Position:",elements:[{type: "view",char_width: 8
Hello, I am a complete beginner with javascript and need help with creating a script in Acrobat DC. Maybe someone can help me 🙂I have several 1,000 pdf documents with varying numbers of pages. However, all documents contain a specific text that only appears once in the document, but on a different page in each document.I would like to use a script to find the page with the specific text and then delete all pages after this page. Example:Total number of pages: 125Specific text: "Document attachment"Number of pages with specific text: 27 Task:Delete pages 28 to 125 It would be great if someone could help me with a script that does this task.Many thanks in advance
Hello,I'm trying to figure out how is working the merge process while creating a multi template agreement using REST API, my scenario is the following:Using the website I create two template(template1 and template2) with two readonly data fields type "Text Input" named respectively, customerName and customerSurname (in fact I do have the need of repeat that fields value in more than a template) Using API I create an agreement using both templates and passing a mergeFieldInfo array with customerName="John" and customerSurname="Doe" [Here come the problem]Only the data fields on the first template are correctly replaced/updated and all other fields are completely ignored. After a brief investigation I've retrieved the agreement fields (using the API https://secure.eu1.echosign.com/public/docs/restapi/v6#!/agreements/getFormFields) and I've observed that the name of the second template fields are changed appending an apparently random "_n" where n is a
In a created form, I am trying to figure out how to use javascript to ensure that a selected date in a date field labeled "Start Date" is greater than 90 days from the current day/today. I would also like to implement alerts to convey a message to the user when the start date is greater than, less than, and equal to 90 days. I dont have any experience in javascript. Can anyone help with this?
Hello, I have a form that once cleared can be used for another task, I was wondering if anyone knew of a simple method to let the user know that the from has been submitted before they clear it and move to the next job, something like a colour changing button or a green banner at the top of the screen would be fine. Thanks
Hello, I have a form that once submit is clicked it auto fills an email for the user and attaches the PDF file etc. I would also like it to open up a Onedrive loaction for each user (there are 5 users in total) this will be to add photos into a file that are related to the job number on the form. The system uses PDF expert as the forms are on IPads. Is this possible? Thanks
Hi, BACKGROUND:I am using an Action Wizard in Adobe Acrobat Pro DC to automatically label a batch of pdf's. It has various steps: JavaScript (Initial Error Trapping) > Remove Hidden Information > Reduce File Size > Save to "Prepped" Folder > Add Header & Footer > JaveScript (Adding incremental labels to all documents in "Prepped" Folder so if there are 4 documents, it will label them in sequence as EX01, EX02, EX03, and EX04). REQUEST:1) I need to bring up an error message for the user when a signed pdf is detected in the batch b/c once we upgraded to Adobe Acrobat Pro DC, such files are skipped and therefore, not processed. I researched this and found it is b/c a signature in the pdf makes it so "Changing the Document" is not allowed.Note: In my example, Document 3 is the signed pdf and all the processing steps above are skipped and the file is not saved in the "Prepped" folder. I tried the following to alert the user of a signed pdf b
Dear CommunityMy name is Sebastian and this forum has been a valuable read-only resource for me in the past months or so. I am developing folder level javascript tools for Acrobat and - I hope that's OK - XChange Editor which is almost entirely conformant with the API.Now I am having a problem that is driving me nuts and it is this:I am trying to oupload an entire PDF along with a couple of parameters to a web service under my control.The server side is functional and is flawlessly handling file upload forms POSTed from browsers.The server expects Content-Type: 'multipart/form-data' and requires 'basic' authentication.The Acrobat API offers several options, none of which works for me out of the box:doc.submitForm({cUrl:..., cSubmitAs: 'PDF'})- doesn't allow authentication Net.HTTP.request ({cUrl:..., cVerb: 'POST', oAuthenticate: {...}})- doesn't *cooperate* with my server when using oAuthenticate- requires additional custom headersSo I ended up implementing the request from scrat
Hello,I have been working with the api for text extraction with Python. I am using it both with not-well-structured tables and with very well defined documents as the ones of formularies of the public administration, pretty similiar to tables. I decided to work on the json files generated by the apis. Even with the very well defined ones I encounter two main problems:- the api fails to spot 100% of the 'cells', ocassionaly joining two or more 'cells' into a single one ('Text' field of the json doc)- the errors are not consistent, the output of processing the same document several times is not exactly the same; even worst: extracting text from the same document several times seems to increase the quantity of errors in the json output and their dimension, even joining the contents of a whole page in a single text cell of the json doc. I would need to understand the reason for the increase in errors and how to avoid the most serious ones, I need reliability and I have learned to deal
I am using following EMBDE PDF REST API GIVEN BY ADOBEcurl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \--header 'Authorization: Bearer ' \--header 'Accept: application/json, text/plain, */*' \--header 'x-api-key: ' \--header 'Prefer: respond-async,wait=0' \--form 'contentAnalyzerRequests="{\"cpf:inputs\": {\"documentsIn\": [{\"pageRanges\": {\"cpf:inline\": [{\"start\": 1,\"end\": 4}]},\"documentIn\": {\"cpf:location\": \"InputFile0\",\"dc:format\": \"application/pdf\"}}, {\"pageRanges\": {\"cpf:inline\": [{\"start\": 1,\"end\": 25}]},\"documentIn\": {\"cpf:location\": \"InputFile1\",\"dc:format\": \"application/pdf\"}}, {\"pageRanges\": {\"cpf:inline\": [{\"start\": 1}, {\"end\": 25}, {\"start\": 1,\"end\": 25}]},\"documentIn\": {\"cpf:location\": \"InputFile2\",\"dc:format\": \"application/pdf\"}}]},\"cpf:engine\": {\"repo:assetId\": \"urn:aaid:cpf:Service-916ee91c156b42349a7847
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.