Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hello, I need a JavaScript to verify that a Social Security Number (123-45-6789) or Tax ID (12-3456789) has been entered correctly in a form field. I'd like it to accept hyphens, and in case the user doesn't enter a hyphen, to automatically place them. It should also not accept letters or any other special characters. If entered incorrectly, an alert message with pop-up. The reason why I cannot use the Special category inn the Format tab is because I need a custom message in the alert box, not the default one Acrobat provides. Any help would be greatly appreciated! Thanks.
Is it possible to set line spacing for a text field / variable? var strWord1 = this.getField("CityName").valueAsString;event.value = strWord1 +" is hosting an event..." I've seen that it can't be done within Form Edit mode. Is it possible with JS?Thanks!
Hi,The company I work for puts out PDFs to a lot of customers, and there are some instances where customers are known to view the PDFs in an Internet browser, like Chrome. Unfortunately, because of Google not wanting to support the in-browser PDF viewer, some problems have manifested—mainly the weird way it now handles hyperlinks in PDFs, where it treats them as annotations and forces clunky big yellow boxes to appear when the user's mouse hovers over the links.I have tried unsuccessfully to see if I could produce a JavaScript added to the PDF to hide the newly-generated "annotations," but that doesn't appear to work. I suspect the fact that these aren't really annotations but are being treated "as if" they were by the Chrome viewer is part of the problem.I would now like to see if there is a way, using a Document-level JavaScript added to the PDF, to put up an alert message when the user opens it in Chrome. I have found a way to tell if the user is viewing the PDF in *anything* other
When searching the Acrobat SDK forum, say for "edit text", many have nothing to do with the SDK, rather just asking for help in how to use the Acrobat app.It is beyond annoying to have to trawl through posts asking how to edit text using the Edit Pdf tool in Acrobat.
Hi,I'm trying to make a plugin using visual C++ (VS 2019) on Win10x64 machine. The idea is (or was) to be able to bold all numbers in the text. I thought this could be done by altering some of the PDFontMetrics members, since some change (ie PDFontMetricsP->stemV) between bold and normal text. The code shows I'm just taking the PDFontMetrics and reapplying them: PDEFont pdeFont = PDETextGetFont((PDEText)pdeElement, kPDETextRun, i); CosObj cosObj; PDEFontGetCosObj(pdeFont, &cosObj); PDFont pf = PDFontFromCosObj(cosObj); PDFontMetricsP metricsP = (PDFontMetricsP)calloc(sizeof(PDFontMetrics),1);//if not used, usually end up with null pointer ASSize_t sizeMetrics = sizeof(PDFontMetrics); PDFontGetMetrics(pf, metricsP, sizeMetrics); PDFontSetMetrics(pf, metricsP, sizeMetrics);And this is what it does to the pdf, which originally was TimesNewRoman:I would've expected no change to the font using the PDFontSetMetrics(), so eith
Hi, I need help in setting values to radio buttons and getting the sum of the selected radio buttons. Please note that I am a novice and am excited to learn more about this. I am creating this form for a client and each radio button should have its value. For example,Choice1 == "0"; Choice2 == "1";Choice3 == "2";Choice4 == "3";it's the same with the rest of the radio buttons. Each question is grouped so in SCORE1, there are 5 groups. this is what I've done so far, setting a value for each radio button.. not sure if this is the best option. I'm really lost with the total text field where it should get the sum of the selected radio buttons only. So say in: Group1, Choice1 is selected then value is at 0;then add the choice on group2 which is at 1 and so forth. Let me know how to go from here. Thank you!
-Adobe acrobat Standard XI-Corp environment - users are locked down from doing installs or updates.- Pushed a pop-up notification disable (regedit) to update adobe (because when they do it fails and rolls back) we believe when we do this is disables their adobe PDF virtual printer.any ideas on how to fix?
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 }
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.