Unlock the power of Acrobat SDK through our community.
Actividad reciente
New to creating a script in PDF, so I need some help. I need to the drop down color to be red, yellow, greem or trasparent based on a selection "high" - red, "Medium" - yellow, "Low" - green, and "N/A" to be no color. I read some similar posts and created the script below. I think my problem is how I am loading it under "actions". Can someone please validate the script then walk me through the process to load the script? Thank you! if (event.value == "Low") event.target.fillColor = color.green;else if (event.value == "Medium")event.target.fillColor = color.yellow;else if (event.value = "High")event.target.fillColor = color.red;else if (event.value =="" || event.value == " ") event.target.fillColor = color.transparent
I obviously work with a lot of pdf files. I am trying to combine several into one pdf. Unfortunately I am getting a message saying that one file is password protected. Can I remove that password when I have no idea who would add one?Thanks!
I am creating a document and the last calculation I need is the addition of the higher of two fields. What script do I need to add in. The three fields are below. I need to add Total Income to the higher or either Income From Asset Value or Imputed Value and if both are 0 then 0 or no change. var fld1=this.getField("Income Total").value;var fld2=this.getField("Income From Asset Value").value;var fld3=this.getField("Imputed Value").value;
I am trying to make a subtotal field in which overtime pay can be automatically calulated using current pay. However, the script I wrote in does not seem to calculate anything. With O/T pay being 1.5x of normal pay, below is the Custom calculation I wrote. Disclamer, I am very new to this. var nA = Number(this.getField("Hourly Pay").value);var nB = Number(this.getField("Hourly Weeks").value);var nC = Number(this.gedField("Hourly OT Hour").value);var nResult = (nA * 1.5) * nB * nC;event.value = nResult; Any help would be greatly appreciated.
Hi,I'm a bit stuck with a form I have been given with some Javascript that has both on focus and on blur triggers. The downside to this is that each field needs to have two Javascript tigger set, which gets super time consuming on a large form. What I would like is it to is fill the yellow on focus and then set back to trasparent in the same bit of code (saving me from having to add the on Blur trigger) or set when it printing the document to be transparent but i'm not sure if that is possible?. below is the code that has been used in these old forms i'm updating. function HiLite(){if (app.viewerVersion > 4.05){var MyField = event.target;var rgEmptyTest = /^\s*$/;color.ltYellow = new Array("RGB",1,0.994,0.820);if(event.name == "Focus"){if(MyField.type == "button"){MyField.borderColor = color.red;}else{MyField.fillColor = color.ltYellow;}}else if(event.name == "Blur"){if(rgEmptyTest.test(event.value)){MyField.fillColor = color.transparent;MyField.borderColor = co
I included a snippet of sample code [found here:https://opensource.adobe.com/dc-acrobat-sdk-docs/library/plugin/Plugins_Documents.html ]into my plug-in code. When executed, after the open dialog is displayed and user selects a file, Acrobat crashes. The same code compiled for Acrobat 64-bit runs without issues. This test was performed after my plug-in (that runs similar code) crashed in a similar manner. The crash after AVAppOpenDialog started in the most recent release (2023.006.20320). The code did not crash in any of the previous versions of Acrobat. I know I can replace the AVAppOpenDialog with a Windows file dialog - but would like to know why this is happening only in the latest release. Any help or insight would be greatly appreciated. ASPathName OpenPDFFile(){ //Declare an AVOpenSaveDialogParamsRec objectAVOpenSaveDialogParamsRec dialogParams; //Create local variablesAVFileFilterRec filterRec, *
I have a form I have built and want to submit the entire pdf to a url. I have added a submit button with an action on MouseDown to submit a form. When I open the pdf in Acrobat DC or in Acrobat Reader DC it works perfectly. However, when I open the pdf in the browser (and not in the actual acrobat reader stand-alone software) I get an "Adobe Acrobat" error stating "Error opening URL to submit this form". I am 100% sure I am using the adobe acrobat reader plug-ins in the browser and I have tried opening the file in the browser on both the local server machine and on a remote machine accessing the webpage. Is there some reason why I am getting this error in the browser acrobat reader but not in the stand-alone software? Any ideas would be helpful.On a side note, I am doing this because I need to save a copy of the pdf (filled in by the user) to the server and the only way I know how to is to submit the pdf...and from there I have a php handler that takes it
I need help with a script to change a specific character to lowercase if it was typed in uppercase in a field. Example: 24X12X6 I need just the X's to be changed to lowercase when a button is pressed, only if a number is before and after it. Thanks!
New feature request: revert to prior Acrobat Pro user interface. The UI for Acrobat Pro DC sucks swamp water. I HATE it. Nothing is where I expect it to be. Commonly used functions are now buried under layers of categories I access through buttons (such as create PDF), but commands are not where I expect so hunting for commonly used functions is a HUGE PAIN. Even when moved to the quick bar, often commands take multiple clicks. For example, I can't just OCR a document, I have to click on the OCR button, choose between "this file, in multiple files, or correct", then select the pages, then click on ANOTHER recognize text button before I can execute the command. Seriously? FOUR commands just to issue a single OCR command for a whole document. In the old version I pressed one button, pressed enter and was done: the whole document would be OCR'd, unless I specifically wanted to change the parameters of the OCR in the pop-up screen. 
Hi, I'm a novice at JavaScript so please excuse me if my question is a bit simple. In a PDF form, using Acrobat 9 Pro I'm trying to preform some mathematical calculations in a custom calculation script and I've hit a brick wallI have a number in a variable, lets say 3.7. I want to return the whole number component, the "3" without rounding it up or down. I know I've done this in the past in AccessBasic, but I'm at a loss as to how to achieve it in JavaScriptI tried using toFixed(0) but that still round up. I've searched various JavaScript references but I'm unable to find a function that would help me.The reason I'm trying to do it is rather convoluted, so I'm trying not to confuse you all by entering a long winded description of the problem. Any pointers would be gratefully received.
Hello, I am using Acrobat Pro 2023 version on Windows 10 Enterprise, and in one of the plug-in application that I created, I am saving the PDF file after some changes using PDDocSaveWithParams, it was working fine when Enable Protected Mode at startup option is disabled. But when I enabled the option Protected Mode at startup, it is not saving the file but at code line PDDocSaveWithParams, there is an Exception occuring and file not saved. What I have to do to save the PDF file with this protected Mode. [Question moved to the Acrobat SDK forum]
Hi All,We started seeing the below error on our app today. We are using an adobe dc view sdk for our react app with a valid client id.Please help. DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document. at new ErrorBoundary (https://documentcloud.adobe.com/dc-side-nav-dropin/3.0.2_1.83.0/bootstrap.js:1:179576) at ph (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:297833) at ij (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:318162) at Ha (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:364097) at Vk (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:352245) at Uk (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:352173) at Jk (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:352036) at Fk (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:349181) at jg (https://documentcloud.adobe.com/dc-core/3.10.0/dc-core.js:2:2
Bonjour, J'ai un souci avec l'outil tampon dans la dernière version de Photoshop. À chaque fois que je souhaite sélectionner un contenu de remplacement en utilisant la touche Option (je travaille sur Mac), je ne fais que de créer une sorte d'effet négatif qui affecte toute l'image.Quelqu'un a-t-il rencontré ce problème? Merci pour vos réponses!
Task: C Sharp: Coverting PDF to MS Word Capture return messages Acrobat translation function. I downloaded Acrobat_DC_SDK_Windows_2021_v3 refereced Interop.Acrobal.dll IJSMessageHandler is not found. Please provide link to download the required DLL. MyJSMessageHandler: IJSMessageHandler <***************{ public void OnMessage( string msg ) { MessageBox.Show(msg); }} AcroPDDoc pdfDoc = new AcroPDDoc();pdfDoc.Open("sourcPDF.pdf");Object jsObj = pdfDoc.GetJSObject(); jsObj.MessageHandler = handler; <******************* type = jsObj.GetType();object[] saveAsParam = { "targetWord.docx", "com.adobe.acrobat.docx" };type.InvokeMember( "saveAs", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance,null, jsObj, saveAsParam); Thanks for your help. 
Hello everyone,I'm pretty new to JS/scripting in PDFs, so I would appreciate your help with this: I have a PDF with two dropdown menus: "Package" and "Locations".The package dropdown has 3 options, "S" "M" and "L" which are priced at 1999, 2499 and 2999.The locations dropdown has 5 options, "none" and 1-4 additional locations. My problem is the following: I want the export values of the additional locations to change, depending on what was selected in the package dropdown:When "S" was chosen, 1 additional location is 499.When "M" was chosen, 1 additional location is 699.When "L" was chosen, 1 additional location is 899. Is there a way I can achieve this? I tried to find anything and copying it into the calculation script, but I think that's totally wrong 😄 Any help would be appreciated, thank you!
I added a submit button to my PDF but when I tested I got an error message saying "Need to be running inside a web browser in order to submit the form." Can anyone offer any guidance
I am unable to preload data on AdobeDCView document.addEventListener("adobe_dc_view_sdk.ready", function () { var adobeDCView = new AdobeDC.View({clientId: "XXXXXXXXXXXXXX", divId: "adobe-dc-view"}); adobeDCView.previewFile({ content: {location: {url: "http://localhost/test.pdf"}}, metaData: {fileName: "test.pdf"} }, {}); // Data you want to pre-fill adobeDCView.registerCallback( AdobeDC.View.Enum.CallbackType.PAGE_VIEW, function () { // Data you want to pre-fill var prefilledData = { "emp_fn": {value: "John"}, "emp_ln": {value: "Doe"} // ... any other field names and their values }; // Set the form fields with the prefilled data adobeDCView.setFormFields(prefilledData); }, true ); });//event listener
I've been developing an Accessibility Plugin for Acrobat that automates some of the repetitive formatting tasks I need to do as part of our remediation process. It was relatively easy to map the commands into menu and context menu items but I'd like to make it even more intuitive. Since I'm also using the Reading Order tool for much of my work, I'd like to extend the tool to add buttons, dropdowns, and checkboxes for some of my tools. Does anyone know if there are hooks in the SDK to gain access to the Reading Order panel? The tool looks like it's been designed as a Plugin itself, so perhaps there might be open source code I could extend? I know, I know: not likely, but one can be hopeful 🙂
How to create a dynamic stamp with an incremental number every time I stamp in the PDF. This will be used by only one person and installed on a single computer. Thanks for your help in advance.
Is there any documentation available on how to generate PDFs with accessibility tags dynamically using PDFkit in Swift? I'm having a heck of a time trying to figure this out. There is hardly any documentation available. I checked the apple developer site and there is hardly anything available. Is this even possible? Thanks, Angela
Hi, I am trying to combine more than 100MB 2-3 files. and found this error. What is file size i can combine using PDFServicesSDK. Adobe.PDFServicesSDK.exception.ServiceApiException HResult=0x80131500 Message=Total size of input asset/assets exceeds permitted size : 104000000 bytes Source=Adobe.PDFServicesSDK
I am looking for a way to batch print only the first page of multiple PDF's on a Windows System. I made an extensive online search but I either need to use ACTIONS Adobe Acrobat PRO (we have standard) or they didn't help.Any suggestions? Thanks...
Wir möchten eine passwortgeschützte PDF-Datei an verschiedene Kunden verschicken. Jeder Kunde soll in der E-Mail aber ein eigenes Passwort erhalten, das auch nur einmal gültig ist. Wir müssen verhindern, dass unsere Datei weitergeleitet werden und durch Weitergabe des Codes auch ohne Bezahlung gelesen werden kann.
Hi all,based on this article (Microsoft Purview Information Protection support in Acrobat (adobe.com)) the Adobe Reader shall have built-in support since version 22.001.20142 (based on info this Download MIP plug-in for Acrobat, Acrobat Reader, Acrobat Classic 2020, and Acrobat Reader Classic 2020 (adobe.com)The first mentioned article descrobes what registry entries (on Windows) has to be updated to enable AIP feature (section <Apply and edit Microsoft Purview Information Protection sensitivity labels on PDFs in Acrobat> / <Installation and setup> / <for Windows>)Currently, we've downloaded the current Acrobat Reader DC version (2023.001.20174 - 64bit), bit none of those requierd entries exists. Even no MicrosoftAIP hive mentioned in the docs exists. Can anyone advise how the Reader shall be AIP/MPIP enabled? The guidance provided on Adobe site (refered above) seems not working. Thank you in advance, Jan
Hi, I need to make pdf which has been saved as spreads (from Indesign) so when you search for a page within Acrobat, you go to the page number not the spread number i.e. if you search for page 5 it doesn't take you to page 8-9 which is the 5th spread, is there a setting or even a script that I can add to my pdf?
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.