Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Hi folks,Is there any way to automatically duplicate the tags when a page template is spawned with a script like this:var a = this.getTemplate("MyTemplate"); a.spawn(this.numPages);I added this script to a button in Acrobat. I want to achieve a flexible form sheet, which can be duplicated if the user needs more lines to be available. The duplication works with the content and the form fields but not with the tags.Thanks for your help!Stefan
Apologies - this is probably very basic but I can't find a solution anywhere for this. I'm running a script from user / privileged directory. Purpose of the script will be to run through a large number of files and add a comments box to each one. However, I'm falling over at the first hurdle.I open acrobat and the file "s.pdf" is opened automatically. However, script stops at the next line with message:"TypeError: myDoc is undefined2:Folder-Level:User:java_file.js"addAnnot line runs fine from console using "this" rather than myDoc. Any idea why this isn't working?Full script is below. Plan is to extend this to include a large number of files each with unique comments.[in java_file.js]1. var myDoc = app.openDoc("/C/MyTemporaryFolder/s.pdf");2. myDoc.addAnnot({type:"FreeText",page:0,rect:[0,1142-200,200,1142],contents:"The quick brown fox"});3. mySaveAs(myDoc,"/C/MyTemporaryFolder/","te.pdf");4. myDoc.closeDoc(true);[in a separa
I'm new to Acrobat VBA. What's a recommended approach to converting multiple single page .TIF files into a new, searchable .PDF file?Something like:create new .pdf filefor each .tif file open .tif file convert to .pdf format add this page to new .pdf filenextmake the new .pdf file searchablesave the new .pdf fileI've seen in some of the other posts that opening a .tif file with the "AcroExch.PDDoc" works but that it's not supported. I'd like to build on supported approaches, if possible.Thanks for assistance.
Is there a Java script that dynamtically tells the submit button to go to a specific email depending on which item is checked
I am unable to locate the file location.
I found this code on web... But I don't know if this works...var map = new google.maps.Map(document.getElementById('map'), { center: {lat: -34.397, lng: 150.644}, zoom: 6});var infoWindow = new google.maps.InfoWindow({map: map});// Try HTML5 geolocation.if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = { lat: position.coords.latitude, lng: position.coords.longitude }; infoWindow.setPosition(pos); infoWindow.setContent('Location found.'); map.setCenter(pos); }, function() { handleLocationE
Hi..I'm trying to export my form data only, like (user name) and (Form Number) ...etc to text file, i used the simple command to export the form this.exportAsText();but how i can choose specific fields to export also without field names because its abstracted tech names!.Thanks in Adavance
Dear all,I'm looking for a script to enable the display of the (animated) progress bar during the execution of any kind of script.I tried various combinations with this code found on the forum, without success :var tObj = app.thermometer;tObj.duration = 1000000;tObj.begin();tObj.value=i;for(var i=0;i<100000;i++){ tObj.text = "Processing, please wait";}tObj.end();I only succeded to display the progress bar window, but... without animation during the process of the function.Would anyone have an idea how to combine this code with the execution of a function in order to see the animated progress bar during the execution of that function?Thank you in advance and best regards.
Hi Community!I'm fairly new to making digital interactive forms, but skilled enough that I wanted to try to make some auto calculations in the document. But some questions rose up, and after a ton of searching (probably in the wrong places) I couldn't find a answer to them. I attached a link to the file in question: got to file. So I would like to ask you:1. Is it possible to make a calculation within 1 one column. I've made a document in wich the customer can manually fill the columns with data. Now is my question, if it's possible to make a calculation within that column, like the sum of all lines of data in the column "bedrag" will show in "sub-totaal". Or do I have to chop those colums up to smaller textboxes? I hope not ^^!2. I tried to find a introduction to JS coding in Acrobat but can't seem to find one. I have found some instructions on the basic option but cant seem to find out how or where I can find more instructions.I Would like to make the "sub-totaal" column x 0.21 show
I have Acrobat X Pro. I installed "Create Bookmark Report" action. I opened a file that contains several pages of bookmarks and the new action appeared in the action list. It appeared to run fine, and it generated a bookmark file, but the file is empty.
Dear friends,Now if I want to hide the button' icon I use this method:someButton.buttonPosition = position.textOnlyBut this method only hides the icon - the icon remains "in memory" and immediately re-appears if I use buttonPosition = position.iconOnly.I want to delete the icon completely - could you please help me with proper method (without blank buttons).Thanks a lot!
Why don't my fillable fields show as highlighted any more?
An fdf file has been exported from document A and saved. It’s location and name are constructed from two variables, path + myFilename + ".fdf".I know that the file name and device independent path are correct.I placed a hidden field in doc B to receive the value of path + myFilename + ".fdf". Objective: after doc B opens I want doc B to import my saved fdf file.I am assuming that I need to pass the value of path + myFilename + ".fdf" to a field in doc B, and then tell doc B to import that fdf file.Here is the most recent of many unsuccessful attempts to achieve my objective.//fields in doc Avar myFilename = this.getField("txt.ClientFileName").valueAsString;var path = this.getField("txt.Path.Client").valueAsString;var parentPath = this.getField("txtL.Path.Parent").valueAsString;var forms = this.getField("txtL.Folder.Forms").valueAsString;var docB = app.openDoc("" + parentPath + forms + "PowerOfAttorney_Seller.pdf");var docBSource = docB.getField("txt.dataFile");
I have a script that opens another document, doc B, and brings it to the front. I want to add an app.alert to the script that tells the user to do something with doc B. However, no matter where I place the app alert, i.e. before or after "docB.bringToFront()", the app.alert prevents .bringToFront() from working. If I remove the app.alert() then docB is brought to the front. I would appreciate your suggestions. Thank you.
Hi there,Admitted JavaScript idiot here. Need to calculate number of months to 2 decimals between a move in and move out date.I got it down to the number of days using what's below.To make it easy, I only need to take the result from this script and divide by 30.I do not need years. So a calculation of more than 12 months is fine.Could someone help??Thank you!!// Custom calculate script(function () {var sStart = getField("MOVE_IN_DATE_CLIENT").valueAsString;var sEnd = getField("MOVE_OUT_DATE_CLIENT").valueAsString;var dStart, dEnd, diff;if(sStart && sEnd) {dStart = util.scand("mm/dd/yy", sStart);dEnd = util.scand("mm/dd/yy", sEnd);diff = dEnd.getTime() - dStart.getTime();event.value = Math.floor(diff / 864e5);} else {event.value = "";}})();
I am working on a proof of concept and the files in the link below are setup to try to achieve it.Microsoft OneDrive - Access files anywhere. Create docs with free Office Online. The "Text Field to search for unique IDs.pdf" has a javascript that populates todays date when opened. It has another text field named "search" What I want to happen is if a user types Cat in the search text field then a javascript will transfer the date into another PDF (Cat.pdf). I also want if the user types Dog that it transfers the date into another PDF (Dog.pdf) And of course if the user types both Cat & Dog into the field that it transfers the date into both the Cat and Dog PDFsThe files must be PDF and will reside on a local machine in the same directory. Any assistance you can provide would be very appreciated. Thanks in advance!
I need a repeated calculations with different array parameters upon the same button MouseUp activation.i.e. when the user press-leave the mouse button I want the Javascript to take 2 values from an array, perform some calculations and send to TextFields. Upon next iteration (a user induced a MouseUp again) the code should move to the next 2 values within the array and so on.What is the best way to implement it? Should I set any global variable (counter)?Thanks a lot!
I have developed a PDF with a load of Javascript in it, it is an extensive character generator for a tabletop RPG. I have had a lot of help in creating this because I am not a programmer. The primary issue with my PDF is that the script references are all over the place. I have some in a consolidated script box, some in Document level Javascripts (DLJ) and some in individual fields. I have been told the best way to help speed up this PDF is I need to consolidate all the script into the "consolidated script box". But I would need help with some of the conversions. Though I think some may have to stay in the DLJ because of the way they work. The form does work. But the more features and data I add the slower and less responsive the PDF becomes. I know there are forums out there one can join for specialized help but they cost money, something I don't really have much of at the moment. FYI, this PDF is so slow in Acrobat that it's basically unusable. I've had to move to an alternative PDF
Hi, I have auto updating text field in my form second page. I’m updating first page field ”aa” & second page text filed auto updating..I have used bellow code to manage that..// Get field valuesvar one = getField('aa').value;// Build para stringvar para = "WHEREAS, pursuant to the transfer of the real property commonly known as " + one + ", by Assignee, Assignor wishes to assign and transfer all of its interest in the Lease Agreement(s) present or future to Assignee, and Assignee wishes to accept the foregoing Assignment from Assignor and assume all of the rights and obligations under the Lease Agreement(s) present and future;" ;// Set this field's value equal to paraevent.value = para;what I want is,I want to justify the text in second page auto filling text field.I want to bold “"WHEREAS,” text.I have already tried Ctrl +e option & it’s work. The issue is if I change first page “aa” value, second page auto filling text field, “Ctrl+e” all the settings automatically removing &
I need to use the same button icons throughout the PDF (around 12 button icons). How can I copy/save/duplicate icons dynamically on different pages? I mean some icons are changing according to user choices and eventually all of them should return to the initial state - this is the case when I want these icons to be copied from some "global" storage. Thanks a lot.
Is it possible to create an add-in within Acrobat DC? I have been looking through the documentation and have been coming up short. I would like to be able to create a third party window within the application.
Does anyone know the regular expression syntax used in the SearchRedactPatterns.xml file for pattern searching?
I am creating a medical referral form and would like some advice. My form has an area in which the service being authorized is to be selected via checkboxes. The user can select either Screening Mammogram OR Diagnostic Mammogram AND/OR Ultrasound (Screening must stand alone but Diagnostic can be bundled with Ultrasound if necessary). I’m using a Document JavaScript to control this, where the Screening box is automatically deselected if the user selects Diagnostic and/or Ultrasound (or vice versa). These three categories each also have three choices (bilateral, left, or right) and those are all controlled in the same JavaScript to allow the same OR-AND/OR configuration. Each group of three sub-choices have the same checkbox name, so that only one of the three can be selected (i.e. you cannot check both bilateral and right). Everything is working as intended up to this point, but now I’m stuck. I need the price we are authorizing to appear in a text box, pricing varies based on the check
I have created a digital pdf of a document that must be digitally signed. I need to run a javascript on the signatures. It worked yesterday. But now I cannot get the popup to show me an "OK" box to approve the javascript I have pasted in.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.