Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hello everyone, I am a complete beginner in developing Acrobat functionalities, and I had been given a task of adding a button to the toolbar, which on pressing would display a pop-up, using Javascript. I was able to add a button to the add-on toolbar and then I manually added the button from the add-on tools to the toolbar. I have been asked if this manual addition could be automated, I went through the Javascript API reference and found that it provides the execMenuItem method but it only is able to perform some commands such as Save As. Could it be possible to write a script that would automate the manual addition ? The manual addition that I am talking about is Going to View -> Show/Hide -> Toolbar Items -> Customize Quick Tools I am aware that we can add a button to the toolbar directly using plugins but that would require developing in C++, and our team is trying to explore functionalities that could be achieved using JS scripts Thanks
Hi all - we have a couple thousand PDFs we need to export to PPT, and I am having trouble finding a way to do that in Acrobat Pro We've tried creating an Action in the Action Wizard to process multiple files, but this does not work because you still have to watch each file convert and then manually click to execute the next one, going through the same sequence of choosing what to export to and where to save, even though it is the same information every time. There is no way we can find to specify the settings in advance (what to export as, and where to save). We tried combining the PDFs into a single file to export, but the PDFs are different dimensions so that doesn't export to PPT properly Does anyone have any guidance? Would SmallPDF work better? Anything would be very, very deeply appreciated!
I often will use the "Save as Other" function in Adobe, to change documents in pictures. Recently, I noticed that when saving a document, the white in the background comes out tinted yellowy green. Ofent these may be text documents originally created in word and then saved in Adobe.I did get a new computer, and had to re-download Adobe onto it, so perhaps it is a setting that I am missing?I tried to use an online PDF converter (Zamzar) and it does NOT seem to have the same problem, so it is my adobe program's conversion of the PDF that is causing the issue, and not the PDF file.
Hello - I am looking for a script that will allow me to merge two pdf files and place them in such a way that a source document page is placed in every other page of the exisiting document. For example, if you have an odd sequenced page number and even sequenced page number, and you'd combine them to form a 1, 2, 3... sequence. Any help is appreciated!
Hi There,I was wondering if anyone could help me generate a code for a problem I have in Acrobat. I have two fields, one which will have a user entered number and another which will display a different number based on the user input. For example: The user inputs (16) into their field and the second field would populate (3). Likewise, if the user inputted (8) the second field would display (-1). This was this code I've been working on but I cannot seem to get it right. Any thoughts? switch(event.value) { case "SCORE":var nSubTotal = this.getField("subtotal").value;if( nSubTotal > 28 ) event.value = 9;else if( nSubTotal > 26 ) event.value = 8;else if( nSubTotal > 24 ) event.value = 7;else if( nSubTotal > 22 ) event.value = 6;else if( nSubTotal > 20 ) event.value = 5;else if( nSubTotal > 18 ) event.value = 4;else if( nSubTotal > 16 ) event.value = 3;else if( nSubTotal > 14 ) event.value = 2;else if( nSubTotal > 12 ) event.value = 1;else
The question is the same as the subject. Is it possible to move to a specific page according to specific conditions ? This question is not to change the page structure, but to change the displayed page. Of course using JavaScript.
Hi, I must preface that I cannot change the design or function of this form.There is an excel column of salutation containing mr, mrs, miss, ms & dr; that I’d like to transpose into the fillable PDF into four checkable boxes "mr, mrs, miss, ms" and "other" fillable input field (dr): I’ve grouped them under "Salutation", but they cannot be individually named as form fields to delineate them and the fillable field "other" cannot be grouped/linked into the salutation. The script would interpret the excel "Salutation" column and check the box thusly:Is any of this possible? The next two fields are a work/home number:The excel column contains the 10 interger number with the 2 integer prefix followed by the rest of the number containing 8 integers.How can I link these two separate fields so that the first field transposes only the first two numbers (prefix) followed by the second field with the next 8? Lastly is a single integer percent value wi
I have a PDF that is displaying a 3D object. There are some other fields that I would like to hide/show/relocate on the click of a button and expand the 3D area to maximize the viewer size. The Annot3D object exposes a rect property similar to a property that fields/buttons expose. When trying to set the rect property on the Annot3D object, it does not resize. I follow this same process when resizing/relocating fields and buttons and it works just fine. I have confirmed in the documentation that the field is both readable and writable. If I select the frame while using the "Prepare Form" tool, I can resize it manually, but that does not work for my use case - it must be done programmatically. See below code sample - the code works for altering the display state of the list box and the placement of the button, just not the sizing of the Annot3D object. This code lives in a MouseUp event for the button. var a3d = getA3d(this); // returns Annot3D object console.println
How can I set the DuplexType Property of PDF to Duplex Flip Long Side using Acrobat SDK preferrably through Javascript or IAC using VBScript?I am generating a PDF which needs to be set to Duplex mode by default, no matter even if it gets overridden in print dialog.Can it be achieved through PDDoc.SetInfo() method? If yes, what would be the InfoKey and its value?Is there any other approach to do this?
I am concatinating two fields with a text string using the following as a custom calculation:event.value = "Words" + this.getField("D1").valueAsString + this.getField("F1").valueAsString; Field F1 is actually a numeric value. I would like to chnge the fomrattign of how F1 appears for readinility. Something as simple as making it bold would be enough, but also increasing the font size would be good as well.I do not want to change the formatting of "Words" or D1 so I don't think I can do with global formatting.Is it possible because F1 is a number I could use soem conditional statment to bold only numbers in event.value?
Hello,I am creating a diagnostic tool for PDFs and the output from the diagnostic tool is a tab delimited file. I would like to use Javascript to add a flag for whether or not the document is read only. By read only, I mean any of the following:1. If you go to the location of the PDF file, right click on the icon of the PDF file, click Properties, and then on the General tab in the Attributes section at the bottom, the Read-only checkbox is checked. 2. The file is open by another user3. The file is lockedWhat has not worked is the solution offered in this post:Determining if PDF is read onlyappRightsValidate({nValidateOption: 1}); Any ideas are appreciated.Thanks,Chris
Hello everybody,I am creating a form with a text field named as "MOTIVATION". I want a warning to appear if the number of characters (including letters, numbers and spaces) is less than 1000 characters when pressing save or close buttons. The warning will be like; THE NUMBER OF CHARACTERS IS LESS THAN 1000.DO YOU WANT TO CONTINUE? YES / NO Any help will be appreciated. RegardsVahap
Running this script in a custom calculation in a text field: event.value = "Words" + this.getField("Number").valueAsString; Would like the value for Number to come out as bold but not the "Words" portion.If it helps the "Number" is always a numeric value so don't need to get it as a string. Was wondering if that could be used to have it show as bold, that is, can the value type be used in a cusotm format script to make only numbers bold? Thanks all for your help. (P.S. thought asked this question last night, different wording, but is was 3am so maybe not)
I'm trying to put down numbers for a tax return, but I can only use whole numbers. What gives? Why can't I put down anything such as $100.59? Why does this have to the all whole numbers?
I have a button that when clicking it it will Prompt for a password, once the password entered correctly this action should be taken -Lock different Fields -Hide the button -Display Text the fields locks successfuly others are not switch (resp) {case pw:getField(f_prefix).readonly = readonly;getField(f_prefix2).readonly = readonly;getField(f_prefix3).readonly = readonly;app.alert("The fields are now " + readonly_desc + "ed.", 3);Button1.style.display = display.hidden; //hide buttonPartG.IA.Text1.style.display = display.visible; //Show Signuture break;case null: // User pressed Cancel buttonbreak;default: // Incorrect passwordapp.alert("Incorrect password.", 1);break;}})();
I have a piece of script that was run by a mouse up event within a button field that used to work on a previous version of Acrobat Professional on a Mac (I may have had to change a setting or something to get it to work but I can't for the life of me remember what). I have upgraded to Catlalina and due to non-64 bit software being allowed I am now using DC but I am now getting a security error. The script and error are below, if anyone could help resolve that would be appreciated. On Mouse Up run javascript a = this.getField("HiddenText").valueAsString; b = this.getField("RelevantIcon").valueAsString; console.println(a+b); event.target.buttonImportIcon(a+b); Console message:/Macintosh HD/Users/xxxxx/Desktop/001.pdf NotAllowedError: Security settings prevent access to this property or method. Field.buttonImportIcon:4:AcroForm:Button1:Annot1:MouseUp:Action1
Is there a manual way to add "Ax*Lib" reference other than the following link suggested ?https://tfs-app1.asi.corp/tfs/DefaultCollection/TAM/_build/results?buildId=663503The way how to add a "Ax*Lib" reference depends on the type of project.On a WinForms project:1. Just open any form class in the designer view.2. Right-click on the toolbox and select "Choose Items...".3. Select "Adobe PDF Reader" under "COM Components". (if it is not there, then it is not properly registered in the Registry)4. Click "OK".5. Place the new toolbox item on the form.Now you automatically get the reference to "AxAcroPDFLib".I have never found an alternative way to add these types of references.
I am unable to open Acrobat reader I have had it on my computer for 4 years and a dialogue box appears telling me an error has occurred with this code 930368 then I am unable to access any of my files
I've created a PDF form in InDesign using the Digital Signature form field, but that field's requirement to create and configure a Digital ID will likely be confusing and onerous to users, and that level of security is unnecessary in this case. I would prefer a behavior like Acrobat Reader's "Sign document by typing or drawing a signature" > "Sign" > "Add Signature" where the user can just generate and place their typed or drawn signature in the proper spot. I've read elsewhere that functionality may be achieveable by replacing the Digital Signature field with a button that uses JavaScript to activate that tool, but I don't know the right syntax to activate that tool. After a ton of searching around, I've tried:app.execMenuItem("OpenApp_FillSignApp")... on a button's Mouse Up event, but that doesn't want to work. As may be obvious, I don't know JS nor how to attempt debugging. Ideally, I'm hoping clicking/tapping that field would be able to go straight to the
It's hard to believe that this is such a hard question to find an answer on. I regularly have to scan 5-10 pages at once but I need to name and save them each as an individual PDF file. When I scan all documents at once, I get a 10 page pdf file. I know I can then extract the pages to a file - but then I need to open them one by one to see what they are and name them.When using Windows Fax/Scan, I can set it up so each page is its own separate file, but it doesn't handle PDF's....The only other option that I have, is that the scanner I use supports blank page recognition. So if I separate each document with a blank piece of paper, it will automatically separate each PDF. This is just a little cumbersome.Is there another way that I'm missing?I just want to scan 10 pages and have it show 10 files that I can name and save individually... Possible?
The answer I found here: https://answers.acrobatusers.com/Help-adding-number-increment-instance-reset-button-q96703.aspx was beyond my technical knowledge. I'd like to know first how to create a form reset button and then have it increment the previous number on save and close.Where/how do I add the Javascript code?
I am creating an Adobe Form for the managers to use to create contracts. Basically, on one of the pages, there is an equipment list that they have to select from dropdown lists. At the end of the document, there are pages based on the selection on this list that outline more details on the equipment. What I would like to happen is: They select the equipment from the list, and it auto- adds the page at the end.
Hello, So in my form, I have a checkbox that toggles show/hide of an input text field. If the box is checked the input field gets hidden and when its not checked user can input text. But when I check the box and click the reset form button i have added on my form, the input field stays hidden and does not reset to be visible again. How to I set it back to be visible once I hit the reset button? I have created the reset button by creating a button and adding an action to it to reset the form. Can anyone please help me with this Thank you!
I need the difference between 2 dates in three different field:In first field : it should in Years 2nd Field : it should be Month, 3rd Field : it should be Days For ex- First Date: 14/05/1998 second date: 18/04/2019 difference should show 1st Field: 20 years 2nd Field : 11 months 3rd Field : 04 days I searched regarding this on this community and found few scripts, accordingly i converted the full difference in milliseconds.. an
Hi - I have a button on a form which will change color based on a selection from a pop up menu activated by clicking the button. So, click the button, select one of the 5 options and depending on the option selected the entire button will fill with a set color. I have been able to create the pop up menu as I need it, but I cannot get the resulting action (color change) to work. New to this so would appreciate your help getting the final piece to work. Thanks. var c = {'Home':['1,0,0'],'Motor':['0,176/255,80/255'],'Marine':['84/255,141/255,212/255'],'Commercial':['246/255,132/255,38/255'],'Home Essentials':['1,128/255,1'],}var n = new Array('Type of loss:');for (var i in c) n.push(i);var result = app.popUpMenu(n);if (result) {this.fillColor = ["RGB",c[result]];}
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.