Unlock the power of Acrobat SDK through our community.
Actividad reciente
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?
Hello. I am trying to script 2 to 3 comboboxes. The first box would have multiple choices of types of pipe threads I make and each successive combo box would be narrowed by the previous choice. I feel there is some type of security issue or I am not running the code correctly. The code works as it should and then it does not. Just looking for some pointers. I am using Acrobat dc and have javascript enabled. Here is an example of what I am struggling with. I will be adding more switch statements with if conditions. The reason I think my setup is the problem is because I have followed tutorials to the T and am not getting the output I expect or any at times, no errors just nothing. Should I not be checking for functionality with "preview"? I believe I am working with an interactive pdf.Any advice is appreciated Thanksvar threadType = this.getField("Dropdownbox1"); var threadDiameter = this.getField("Dropdownbox2"); var weightPerFoot = this.getField(Dropdownbox3);
I would like to auto-populate a field in Adobe using the first & last names of the people completing the form as per the following:DETAILS ENTERED BY CLIENTS ON PAGE ONE FIELD I NEED TO AUTO POPULATE I am using the following custom calculation script to auto populate "authorisation_1", which works fine when the "firstname2" and "lastname2" fields have been populated:event.value = getField("firstname1").valueAsString + " " + getField("lastname1").valueAsString + " & " + getField("firstname2").valueAsString + " " + getField("lastname2").valueAsString; However, my question is, how do i ensure the "&" does not appear in "authorisation_1" field IF nothing has been entered into the "firstname2" and "lastname2" fields? NEED TO AVOID THIS Thanks in advance.
I know this has been asked several times, but I was still unable to find a solution to my problem when trying to use the PDF Embed API. I generated the code using the Adobe demo, and replaced all relevant info and file location (yes, I removed the <> carrots). I'm attaching the code and info below. Thank you to anyone that can help with this. <div id="adobe-dc-view"></div><script src="https://documentcloud.adobe.com/view-sdk/main.js"></script><script type="text/javascript">document.addEventListener("adobe_dc_view_sdk.ready", function(){var adobeDCView = new AdobeDC.View({clientId: "fbb5f2505a7b4d2bafc5906ba90f05a2", divId: "adobe-dc-view"});adobeDCView.previewFile({content:{location: {url: "https://joshuatawney.com/TAWNEY_SELECTED_WORKS.pdf"}},metaData:{fileName: "TAWNEY_SELECTED_WORKS.pdf"}}, {embedMode: "LIGHT_BOX"});});</script>
I need import FDF data into PDF for several hundred files. try67’s simple script for export FDF (from post Batch Exporting FDF Files) was great for me, could anybody help me and create similar one for import? The PDF and FDF file names are always the same (ex. 123.pdf, 123.fdf; abcd.pdf, abcd.fdf...).I note I am not programmer. Thanks.
Hi Everyone. I am trying to extract data from a pdf file that has cascading dropdowns. I am trying to recreate the document with all the data that is hidden from the dropdowns. I know its a XFA PDF File that I am accessing through Adobe Acrobrat Pro. I have no knowledge on this and any assistance would be greatly appreciated.
Have simple VBA function to determine wheather a pdf is 8x11 or not.If there are no other PDFs open, function runs without error.If another PDF is open the CreateObject("acroexch.pddoc") Fails.Error Number: -2146959355Error Description: Server execution failedCode:ublic Function funGetPdfPageSize(ByVal strAbsFName As String) As BooleanOn Error GoTo Err_HandlerDim gApp As Acrobat.CAcroAppDim gPDDoc As Acrobat.CAcroPDDocDim pdfPage As ObjectDim strFunName As String, strErrMsg As StringDim width As DoubleDim height As DoublestrFunName = "funGetPdfPageSize"funGetPdfPageSize = FalseIf LCase(right(strAbsFName, 3)) <> "pdf" Then Err.Raise 65000, , "The input file is not a PDF file!"'Set gApp = CreateObject("acroexch.app")Set gPDDoc = CreateObject("acroexch.pddoc")If gPDDoc.Open(strAbsFName) ThenSet pdfPage = gPDDoc.AcquirePage(0).GetSize()height = pdfPage.Y / 72width = pdfPage.x / 72'Debug.Print width'Debug.Print height If height <> 11 Or width <> 8.5 Then &n
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.