Unlock the power of Acrobat SDK through our community.
Recently active
Hello,I have a 100-pg PDF workbook that I am trying to set up where a student can click a submit button that will send just that individual page to an instructor. I was able to set up a .fdf link and was successful sending a test file to myself. (page 6 of the Test document attached.) However when I had two of my clients test it out it wouldn't work. One got the attached error, the other one the submit button wouldn't work at all. Thoughts? I am not familiar with java script but if somebody could walk me through that I think I could figure it out. (I also tried making just the submit button active but it gave the attached "invalid file" error.)Thanks in advance!
Have seen similar ideas but don't think I know the commands to do this in Javascript.Here are my two situations.SITUATION 1I have the text Fields F1 and F2, and a Dropdown box field D1.I want the value dispalyed in F1 to be "text string which I enter" D1 F2Example, "text string which I enter" = "Stopped smoking?" Field D1 options "Y","N", say Y is selectedField F2 is a number (calculated elsewhere), let's say 3.So I would like it to appear in Field F1 as "Stopped smoking? Y 3" SITUATION 2Similar to the above except there is no D1, Field F1 is now a dropdown box and would like to use the value selected in the F1 dropdown list to create the output displayed in Field F1 as "value selcted in F1 F2value" Do need to put a space between each of these values so it can be read easily.Would need to be able to select on F1 again and get the original drop down list and have it rewrite if a new selection is made.In th
I am trying to understand the equivalency of some structure in the SDK and how they relate to a Cartesian coordinate system. I feel like some of these questions are dumb, but I don’t want to make assumption and continue with a false sense of understanding of the how the structures maps. In an attempt to express my confusion clearly, I have broken down these into multiple questions. Question 1. How does an ASFixedPoint map to x and y?Given an ASFixedPoint, is it safe to assume that:h ---> xv ---> yI took to assume that h was short for horizontal, and v for vertical Question 2. How does a rectangle expressed as [left top right bottom] map to an ASFixedQuad? Here’s the source of my confusion: in the PDF Reference V1.7, Section 3.8.4, a rectangle is said to be specified by an array that takes the form:[ll_x, ll_y, ur_x, ur_y] where ll_x is lower-left x, ll_y is lower-left y, ur_x is upper-right x, ur_y is upper-right y The passage also sta
Hello, I am completely a novice at this, and borrowed part of a script from a sample online. I am working a stamp with a dialogue box prompting for the date, and defaulting to the current date if no response. I have gotten it to display the dialogue box and the default date. But, the results don't end up on the stamp. Could someone please assist on resooving the issues? if(event.source.forReal && (event.source.stampName == "#2Nw2jMn7S5l9QIPW-WGOHB")){ var rgEmpty = /^\s*$/; var cDate = null; var cDfltDate = null; if((event.value != null) && !rgEmpty.test(event.value) && util.scand("mmm dd yyyy",event.value)) cDfltDate = event.value; else cDfltDate = util.printd("mmm dd yyyy",new Date()); while((cDate==null) || rgEmpty.test(cDate) || (null == util.scand("mmm dd yyyy",cDate))) { &
Hello Community,I have been trying to add a javascript extension to make a 'GET' request to a server upon pressing of a menu item created. On executing the folder level script, I got an 'object aggregate' error. I think it is not able to fetch data using the request. I tried searching for that error online but could not get anything. I am developing this in Adobe Acrobat Professional. Below is the script for the same. Any help would be greatly appreciated.Thanks. // Make HTTP GET requestajax = app.trustedFunction(function(fURL) {app.beginPriv();Net.HTTP.request({ cVerb:"GET", cURL:fURL, oHandler: ajaxCallback});app.endPriv();});// process the responseajaxCallback = {response:function(msg,uri,e){var stream = msg;var string = "";var error = e == undefined? 'No HTTP errors' : "ERROR: " + e; // Here it is giving [ object aggregate ] error.string = SOAP.stringFromStream( stream );oResult = JSON.parse(string);console.println(error);console.println( "id: " + oResult.i
Hello everyone, I am a complete beginner in developing Acrobat functionalities. I had this task of adding a button to a toolbar which , on pressing would show a pop-up and I was asked to do this using Javascript. I successfully added the button to the add-on toolbar and found out that this add-on tool could be manually added to the toolbar with the help of customizing of toolbar. But now I am asked if this manual addition of the button to the toolbar could be automated using some script. I went through the Javascript API reference documentation and found that it has the execMenuItem method, but it can execute only specific commands (example: Save As). Could anyone let me know if this automation could be done using Javascript?( The manual addition I am speaking about is Going to View -> Show/Hide -> Toolbar Items ->Customize Quick tools ) I know that the button can be directly added on to the toolbar using plugins, but that would require development in C++ and w
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.