Unlock the power of Acrobat SDK through our community.
Recently active
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
I want to compress a batch of pdfs using the sdk in vscode. can anyone guide how to do it .I am getting [ERROR]: Unexpected Error, request could not be completed Error: socket hang up Exception encountered while executing operation ServiceApiError: request timed out, 10 seconds expired at ClientRequest.<anonymous> (D:\Desktop\adobe\node_modules\@adobe\pdfservices-node-sdk\src\internal\http\http-client.js:276:13) at ClientRequest.emit (node:events:520:28) at TLSSocket.emitRequestTimeout (node:_http_client:758:9) at Object.onceWrapper (node:events:639:28) at TLSSocket.emit (node:events:532:35) at TLSSocket.Socket._onTimeout (node:net:501:8) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) { requestTrackingId: undefined, statusCode: 0, errorCode: 'UNKNOWN' }
I have an image which contains text. I imported it to Acrobat DC and tried to use the OCR but the text does not get recognised, made into live text or placed in to editable text blocks. Does OCR not work on certain types of images?
Hi AllI'm trying to make 2 fields one is "Grade" and the other is "Result". I'm trying to make it so that if I put in a certain grade, it'll show pass/fail. I googled how to do this but couldn't get it to work. Any pointers is greatly appreciated. I have a validation script on "Result" as: var fieldA = this.getField("Grade").value;if (fieldA=="A" || fieldA=="B" || fieldA=="C")event.value = ("Pass");else{event.value = ("Fail");}
I get anxiety worrying about how I should store my javascript functions. Should I put all the functions in Config.js?Should I put (non-menu related) functions in one file like Functions.js?Should each function go in its own separate file Function_01.js, Function_02.js, etc.. What is your experience? Is one way better than the others?
Hello.I have been running the following VBA code without issue for a while. After the latest update to Acrobat Pro DC I have been getting the following error: Save As Failed To Process. No document was created. The code is failing on the JSO.SaveAs line.Function SaveAs(NewFileName As String) As Boolean Dim ExportFormat As String Dim extension As String extension = "html" ' get the path w/o the "." Dim acroApp As Object Set acroApp = CreateObject("AcroExch.App") Dim acroAVDoc As Object Set acroAVDoc = CreateObject("AcroExch.AVDoc") 'if acroApp is nothing then acroApp = CreateObject("AcroExch.App") 'if acroAVDoc is nothing then acroAVDoc = CreateObject("AcroExch.AVDoc") Set acroAVDoc = acroApp.GetActiveDoc() If acroAVDoc Is Nothing Then Exit Function End If 'Set the PDDoc object. Dim acroPDDoc As Object Set acroPDDoc = acroAVDoc.GetPDDoc 'Set the JS Object - Java Script Object. Dim j
I am trying to have a self updating PDF that will populate the date with the previous months last day. If todays date is 6/23/22 then when I open the pdf I would like it to populate 5/31/22. So that any time I open the PDF in the month of June, the date will show the last of May and so on for any month. I work on reports and I am alwasy working in the previous month, so this would be a huge help. Idealy I would like the range of the previous month as well, so if I open the pdf in June the date range will auto populate to 05/01/22 - 05/31/22. i am assuming this can be solved by using two text fields but the code would be appreciated. Thanks in advacne to anyone who can help me.
Hi experts.I know how to usethis.exportDataObject({cName: "myFile.pdf", nLaunch: 2});to open an attachment.It works fine with attachments attached using the Attachments pane, but when I want to open an attachment attached using the Attach File comment tool I always get this error mesage: TypeError: Invalid argument type.What must I do to JavaScript-open an attachment attached using the Attach File comment tool?I need this to works with Acrobat Reader (11 & DC).Thank You
Hi All I'm trying to create an auto calculated timesheet and I got it to work if the input time starts and end on the same day using this code:var start = this.getField("Start Time").value;var startArr = start.split(":");var finish = this.getField("Stop Time").value;var finishArr = finish.split(":");var hourDiff = Math.abs(finishArr[0] - startArr[0]);var minDiff = Math.floor((Math.abs(finishArr[1] - startArr[1]) / 60)*100);if (minDiff.toString().length == 1)minDiff = '0' + minDiff;var output = hourDiff + "." + minDiff;event.value = output; I ran into a problem where if the Stop Time happens the next day (or 3 days later, etc) how do I go about calculating that?
I am getting following exception while exporting Pdf page to Image on Visual Studio 2019 Method not found: 'System.String Jose.JWT.Encode(System.Object, System.Object, Jose.JwsAlgorithm, System.Collections.Generic.IDictionary`2<System.String,System.Object>, Jose.JwtSettings)' Line of Code is: FileRef result = createPdfOperation.Execute(executionContext);
I am trying to use the send for signature function. At the 'upload' stage before you input the Signer email the upload hangs at 70%. Was working perfectly 9hrs ago. Internet connection is perfect. Tried in Adobe Acrobat Pro DC and Acrobat Reader DC. Windows 7.
Checkboxes - Exceed2, Exceed5, Exceed6Text Fields - Exceed Count 2, Exceed Count 5, Exceed Count 6 I have a column for an employee performance documents with 3 rows of items (Exceed2, Exceed5, Exceed6). Each row has a checkbox, that if it is checked it will give the corresponding textbox beside it a value of 2. If unchecked it will be blank. I have gotten this to work using the custom calculation script. This is the formula I used. if (this.getField("Exceed2").isBoxChecked(0))event.value = 2;elseevent.value = ""; My issue is I only want one of the checkboxes to be able to be checked at a time. Is this possible? If not, is it with radio buttons?
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.