Unlock the power of Acrobat SDK through our community.
Recently active
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
Hello! I work for a tool and die shop. We use Acrobat XI Standard to master part prints for each job. Each print has a job number, revision level, and short list of quality information that we have a dynamic stamp for. Occasionally, the information is the same for more than one job; however, I can't always copy and paste because when I do the stamp turns automatically 90 degrees. Is there any way to rotate the stamp without having to start over again? I've been searching forums and help sites for weeks and have found some solutions but they don't seem to work for me. Thank you in advance for any help!Paige
I set up a document for digital signatures, there are usually 2 signatures within my organisation and then 2 signatures required externally as well. No matter what I do as soon as the document leaves our organisation it is 'locked' for signature by the external company. I have set up the emails so that if a different person is to sign it can be delegated to them. The lock option is not ticked prior to sending externally. Hoping someone can help?ThanksPhoebe
Is there a way to allow a specific amout of prints for a pdf? I read the same question in a 2016 discussion and the reply was "no". I hope the the in 6 year time something has changed
I want to delete all the items in the pdf file at once. I do it manually and it's tiring
Hi, all, I'm wondering if it is possible, within the javaScript of a dynamic stamp, to get the page number of that particular stamp within the Dynamic stamp file. event.source appears to only have 3 properties (forReal, stampName, and source), based on the output of Object.getOwnPropertyNames. What I'm trying to accomplish: I have a dynamic stamp with some fields filled in via custom dialog. I'd like to be able to add extra fields to the side of the stamp for additional, optional text. If that optional text isn't used, the stamp would resize itself to crop off those extra fields (so that it doesn't end up covering any extra space on the target page). I'd like the js within the stamp to be able to get the page number for the call to setPageBoxes, as opposed to me having to specify it explicitly, in case I pass the file around and someone decides to remove one of the other stamps in the file. I know of 2 workarounds for the issue if I can't
Hello everyone, I noticed such a problem: after hiding comments in a document using code, the file size increases tenfold!function Hide() { this.delay = true; this.syncAnnotScan(); var annots = this.getAnnots(); if (annots==null || annots.length==0) { app.alert("there are no comments in this document", 1); return;} for (var i=annots.length-1; i>=0; i--) { annots[i].setProps({readOnly: false, lock: false}); annots[i].hidden = true;} this.delay = false; app.alert("all comments hide",3); } After optimizing(File - Save as Other - Optimizide PDF) the document, the file size returns to its original size, but after displaying comments and saving, it again grows in size by + 3 MB, and so on each time after the hide/show/save cycle.How to solve this problem? add file optimization to the main code? Or is there an option in the program settings that will clear this automatically?
My Excel formula is =IF(A3>=DATE(2022,1,1),0.53,0.5) This looks at a cell (e.g., A3) and determines whether or not the date in that cell is after Jan 1, 2022. If it is, then the value is .53 and if not, it is .50. The purpose of this formula is to auto-caluate mileage reimbursement rates. I am not familar with Javascript, though I've been able to learn some things online (how to code if/thens). What I can't figure out is how to represent "greater than xx/xx/xx date" in JS.
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.