Unlock the power of Acrobat SDK through our community.
Recently active
Hi,I am developing web software which requires online editing for PDF files (inside chrome browser). My users would like to add/delete/edit existing text, with basic styling features such as text-coloring, bullets etc.Is it possible to use the Acrobat SDK for PDF editing inside my application? What is the licensing model for this functionality?Is there an option to use it for on-premise products? (without cloud access). Thanks you!shahar
I've been trying to create a script to select a pdf containing the front sides of pages and another pdf containing the backside of pages, then combine them with the proper order.This is what I have so far:var myDoc = app.newDoc(); var frontSidePg = "<Path to front side pages pdf>"; var backSidePg = "<Path to back side pages pdf>"; // Only here for getting page count var fDoc = app.openDoc({ cPath: frontSidePg }); // Insert front and back pages in correct order for (var i=0; i<fDoc.numPages; i++) { // Front Pages myDoc.insertPages({ nPage : myDoc.numPages-1, cPath : frontSidePg, nStart: i }); // Back Pages myDoc.insertPages({ nPage : myDoc.numPages-1, cPath : backSidePg, nStart: fDoc.numPages-i-1 }); } myDoc.deletePages({nStart:0}); // Delete blank initial pageI have other co-workers who will likely be using this script so I can't expect them to manually change the file paths each time.I've tr
Hi,I have a very simple pdf with one line of text. If I use the PDWordFinder the text can be iterated word for word. However, if I try to use PDEContent then it is, so far, impossible to iterate through.The code below shows the problem, the PDEContent has one element which is not text, rather PDEObjectGetType() returns 12. Not sure what is going on - am using VS 2019 to create a 64-bit plug-in. AVDoc avDoc = AVAppGetActiveDoc(); AVPageView pageView = AVDocGetPageView(avDoc); PDPageNumber pageNum = AVPageViewGetPageNum(pageView); /* Bridge method to PD doc*/ PDDoc pdDoc = AVDocGetPDDoc(avDoc); /* Acquire current page */ PDPage pdPage = PDDocAcquirePage(pdDoc, pageNum); PDEContent pdeContent = PDPageAcquirePDEContent(pdPage, gExtensionID); ASInt32 eleNum = PDEContentGetNumElems(pdeContent);//returns 1 PDEElement pdeElement = PDEContentGetElem(pdeContent, 0); ASEnum8 test= PDEObjectGetType((PDEObject)pdeElement);//returns 12 if (PDEObjectGetType((PDEObje
Hi, I have created a daily time sheet, The column with the time entered for each task is totaled at the bottom in box A (Total Hours). We are now required to pay overtime if the person works over their daily shift hours. Sometimes the shift may be 10 hours or 8 hours.Is there a way to create a box with the daily hours (target hours). When the entered time totals less than the target, put total in box A, if the total exceeds the target hours, those hours over the target are put in box B (Overtime hours). Example would be: John's shift is 10 hours today, he enters 10 in the target box. He works through the day and at the end of his shift the total amount of hours he worked is 12 hours. Box A shows 10 Hours and Box B shows 2 hours.Any help would be appreciated. Thanks.
Hi, I have created a PDF with a (Barcode) form field using Adobe acrobat Pro. The Symbology is (PDF417) and Decode Condition is (Handheld Barcode Scanner). For the Encode Using (Tab Delimited) option, I've picked a particular field from the file. When I populate the acro fields though the JAVA application, it all works fine. But when I take a print out of the filled out pdf and try to scan the barcode with a handheld scanner, the barcode is not recognized. Is there any additional parameter required to recognize the barcode field ?Thank You
Hello, Everyone. I'm new on this one but I need to make a form that needs to get the total points of each column of the radio buttons. As you can see they are Grouped per row (e.g. Group35, Group36, Group37, Group38, Group 39) because it needs to function that person has only one choice which deselects automatically the other buttons if one already chose. I already got that part done. I'm just having difficulty to get the total sum of the column because this is a performance scoring sheet. Thank you.
Estimada comunidad:No puedo conectar mi licencia Acrobat Pro a Power Automate, me sale el siguiente anuncio:¿Cómo puedo activar esta opción de APIs en Adobe Acrobat Pro desde mi consola de admi?
I need some help getting the Acrobat SDK Starter plugin to work in protected mode. I'm developing on a 64-bit Windows machine. I have 32-bit Adobe Acrobat DC installed. I'm signed into my Adobe developer account when I run it. I'm building the solution "C:\Acrobat_DC_SDK_Windows_2021_v3\Adobe\Acrobat DC SDK\Version 1\PluginSupport\Samples\Starter\win32\Starter.sln" successfully using Visual Studio 2019, using configuration Debug, platform Win32. I have not made any code changes to the Starter sample plugin. I'm copying the resulting "C:\Acrobat_DC_SDK_Windows_2021_v3\Adobe\Acrobat DC SDK\Version 1\PluginSupport\Samples\Starter\win32\Debug\Starter.api" file to "C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\plug_ins\starter.api". The plugin loads fine when protected mode is deactivated - when I run "C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Acrobat.exe" from Visual Studio so that the debugger is attached to it from the start, my breakpoint in DllMain
Hi Team,I am trying to setup "universal editor" on localhost but getting below errors, any type of help appriciated ? Error: AEM Connection :
I am developing a 3rd party plugin. Since I need write access to the file system and I do not want to switch off the protected mode I added a policy for my plugin.When starting Acrobat, the log files of Adobe Acrobat Protected Mode Logging says:Custom policy file sanity checks failed: C:\Program Files\Adobe\Acrobat DC\Acrobat\MyPlugIn_policyconfigfile.txt When I add the "standard" policy file ProtectedModeWhitelistConfig.txt everything is fine. The logging says:Found custom policy file: C:\Program Files\Adobe\Acrobat DC\Acrobat\ProtectedModeWhitelistConfig.txtAdding custom policy: FILES_ALLOW_ANY = d:\MyPlugInFiles\* It makes no difference if MyPlugIn_policyconfigfile.txt even exists or is empty. The error message remains the same. It can't be a syntax issue either, since the same policy works fine in ProtectedModeWhitelistConfig.txt. I also checked the read access to MyPlugIn_policyconfigfile.txt which is ok. Did I overlook an additional switch
I have written an Adobe Acrobat plugin using Adobe SDK which helps me to modify PDF. It runs perfectly well when protected mode is turned off. However, as soon as I turn protected mode on, my DLL is not recognised and doesnt even load. Am I missing something here? What should I include in my DLL so that it gets recognised and loads up in protected mode too?
I am new to coding and am struggling with continuing to get errors on this code. I have made a drop down box and if the person selects other I would like a text box to appear. I have been trying to find an answer online and no luck. if (event.value == "Other")(this.getField("Text3").display = display.visible);)else if (event.value == "Get_furniture")this.getField("Text3").display = display.hidden;)else if (event.value == "Get_housing_assistance")(this.getField("Text3").display = display.hidden;))else if (event.value == "Get_internet_access")(this.getField("Text3").display = display.hidden;))else if (event.value == "Get_stable housing")(this.getField("Text3").display = display.hidden;))else if (event.value == "Shelter"))this.getField("Text3").display = display.hidden;)( It is currently giving me Syntax Error 4 for line 5. Any help would be appreciated.
function getFileName() {var sequenceNumber = this.getField("Form1.0").value;var fileName = global.documentNum + "_" + sequenceNumber + ".pdf"; return fileName;} function getFilePath() {var userName = "GAC_Line";var path = "/c/users/" + userName + "/desktop/safe work permits/" + getFileName(); return path;} function validate() {var fieldNames = [];var displayFieldNames = [];var regexEmpty = /^\s*$/;const fieldCount = 24; // increment to add more fields for(var i = 0; i < fieldCount; i++) {var field = this.getField("Form1." + i); if(regexEmpty.test(this.getField(field.name).value) || field.valueAsString == field.defaultValue) {fieldNames.push(field.name);displayFieldNames.push(field.userName);}} if(fieldNames.length > 0) {var field_sp = fieldNames.length == 1 ? "field" : "fields";app.alert("Please complete the following " + field_sp + ":\n\n" + displayFieldNames.join("\n"));getField(displayFieldNames[0]).setFocus();} else {this.saveAs(getFilePath(
Previously, I could go to Edit > Preferences > Security (Enhanced) and Uncheck the box that said Enable security at startup. After restart, one is asked only once whether to open an external file in a little window that is provided with a check box enablng one to turn off that warning in the future. Now, however, on a new laptop that I recently bought, that process does not work. I can Uncheck the box as I just described (and restart of course, including even re-booting), and I get faced with the warning every single time that I want to open an external file. I don't know what would have caused that. I believe it may have defaulted to the new interface when I first opened it, and once I learned how to switch the interfaces back and forth, I did so several times.But no matter the interface, the method I've used previously did not work. My choice was simply ignored by Acrobat. I don't dare experiment on the desktop where I normally work for fear that I will lose the old way f
So basically, this what I want to do:.this.getField('imageField').importImage('path_to_img');I know this code is not correct, but is there a way to do this? I couldn't find the solution in Acrobat's documentation.Most questions I found were referring to the problem when user is selecting an image on click of a button. I don't want that.I need something like what I wrote above becausepath_to_imageis a variable I'm pulling from a database..
Hi all,I have a PDF I'm putting together that is a product list with multiple rows, across multiple pages. It calculates Price x Order Quantity and gives a total in the last box. Example attached. Yes, I'm aware my version of Acrobat is getting very old Is there a way to use the "create multiple copies" function but have the calculation update to match the new field name. As it is, the "cost" field wants to use the calculation from the first row and doesn't auto-update.Hope that makes sense, cheers.
How to add "Value 9" to a Diagram Control.
I have a form with a Goup1 Radion Buttons, Wage and Classified. When Classified is selected I want a calculation in the Field "Semi Monthly" that takes Field "Salary" and divides by 24. This is what I started with:var classified = this.getField("Field Classified").value; var salary = this.getField("Field Salary").value; if (classified === "Yes") { event.value = salary / 24; } else { event.value = ""; // Blank if not classified }
Is there a script to remove characters from a field entry if one is entered, like a comma?Thanks.
I have a form with a Yes check box and a No check box. When the user checks No, I would like the text box beside it to autopopulate to read "Not Applicable".When the user checks Yes, I would like the text box to be free flow text entry.I am stuck on the javascript to accomplish this. Also, does the script go into the properties of the checkbox or into the text box? Using Adobe Acrobat X Standard
Greetings:I am experiencing an interesting issue while creating a form, using Adobe Pro (Ver 2023.006.20380). I accessed "Prepare Form" to create and establish form fields; however, after configuring all the form fields and saving the document, the form fields are all gone upon reopening the document (reverting the document to a previous state before accessing Prepare Form). The document requires accessing "Prepare Form" again to access the form fields and none of the previous configurations are maintained...as if no work for the form fields was ever completed. Couple of things to note:1) When accessing the document (within the folder where it is saved), Adobe crashes. When this happens, the document must be opened within Adobe, using the "Open" function. Attempting to select the document in its saved folder results in Adobe crashing. 2) I had a locked version (with all the form fields present) and created a copy using "Save a Copy" only to be me
Hi, I have an "Add Header & Footer" step in my Action Wizard step which is meant to ONLY shrink the document (this was my creative solution to add an action to merely shrink documents but not really add a header or footer (which I leave blank with the "Prompt User" box unchecked)). However, depending on the document, it sometimes removes the header even though it is only supposed to shrink the document and leave the header untouched. I am running Adobe Actrobat Pro on Windows. See images below. Here are my questions:1. What is it about some documents that makes it such that the action removes their headers but not others? (If I know this info, maybe I can scan for it.) 2. How can I achieve the shrinking of the document without removal of the header? For example, is there:-a java script code I can use instead of this action?-another processing step I can apply to the document first before trying to shrink it (with the header blank)?-a sole action that only shrinks the
I have added alt-texts to the images in a pdf using acrobat pro and have tried using all the extract apis on it, but these report no information about the alt-texts of the images in the pdf. I was wondering is there some api provided by adobe that would allow me to extract the alt-texts from the pdfs programmatically? I have attached the pdf I am testing on below.
Good evening, I am wondering if it is possible to send PDF data to the google spreadsheets? We are trying to find a way to automatically update our spreadsheets after our local program gets finished processing our customers. Thank you!
In the plugin code, I am trying to intercept/replace AVDocDoSave, AVDocDoSaveAs and AVDocDoSaveAsWithParams functions to identify the original file when the user tries to export the file from menu option. This seems to be working fine, when I am clicking SaveAs/Export a PDF. But when I try export a PDF option from Tools, none of the above functions are being called and I am not able to identify the original file that is being exported. Could you please let me know if there is any known issue with the behaviour or any other HFT functions I can try to intercept/replace to get the file information (AVDoc or PDDoc structure) when All Tools -> Export a PDF option is used to export the file. Thanks in advance
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.