Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I am creating a fillable form for our employees to request vacation time off. I have pieced together calculations scripts from various forums but can not get the result I want. Say an employee wants to take 01/04/19 off. They would enter a start date/time of 01/04/19 8:00 am and end date/time of 01/04/19 5:00 pm. I want the form to calculate the difference in hours. Now the trick is that if they take more than 4 hours (leave after 12 noon) the deduction needs to deduct an hour from the result, to account for the lunch hour so that employee is only charged 8 hours of vacation rather than 9. Here is the script I have pieced together, please advise:function Date2Num(cFormat, cString) {// convert cString with cFormat to number of minutes from Epoch date// convert to date time objectvar oDate = util.scand(cFormat, cString);// convert date time object to minutesreturn Math.floor(oDate.getTime() / (1000 * 60));} // end Date2Num function// format for input date &a
Generate a pdf using acrobat sdk javascript which does the following things: - It should contain a form with two input fields alpha and beta. - The form has a submit button. - I want to **submit** this form (click the submit button) **on document load** (trigger of the button) of the pdf **without** any prompts or user interaction. - This should submit the form data to a remote url.The biggest challenge I am facing is:I am unable to find a way to click a button on load of the document without any user interactionAction: Click a button(Can't find the button in the doc let's say using button id or button name)Trigger: On document loadAny help/ideas are appreciated, thanks!
Can anyone help me?Thanks.
Everytime colleagues (who didn't make the PDF) want to insert a picture, it changes sideways. I made a button using JavaScript:event.target.buttonImportIcon();They need to use pictures received by email. What can I change in the settings (or what do I tell my colleagues) to make the pictures stand up straight?Thank you!
A Java Script Checkbox that makes a field visible or hidden based on the condition is not functioning properly. When first opening the form, the box does nothing. If I click on "Prepare Form" tool and immediately close, the button works as it should. If Adobe is closed and the form is reopened, the checkbox stops working again.var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden; this.getField("Flex Line Type").display = nHide;
I am trying to auto populate pdf forms from excel (like mailmerge in word). I have multiple rows in excel and when I import data from the excel sheet, i would like each row to be created as a separate form in Adobe. I consulted with Adobe support and googled. It sounded like I needed a javascript and a custom action. Could someone help me with the script and guidnace on how to implement this in Adobe?
Hello, We create lots of site layouts in PDF and would like to have the pdf open on other peoples computers/mobiles with the measure tool function ready as standard. Currently we have to go through the motions of explaining how to do it and surprise surprise, most folk still can't seem to do it. Maybe because it involves doing something other than it just being there ready for them.Our PDF's are created through AutoCAD and placed in a sharepoint folder for the individual sites use. Is there an ability to add a script to the generated PDF that will open up the measure tool at the same time as the PDF?Thank you in advance.Chris
I am using Adobe 9.0 and am creating a form. The first field in the form is a Como Box with the following optionsSelect OneNew RequestChange RequestI want to force the user to select either New Request or Change Request, how would I go about doing this?
Good evening, I am trying to create a way to export, and import PDF's data with java script. Here is what I have so far in terms of code:this.extractPages({ nStart: this.numPages-1, cPath: 'C:\Users\dell\Documents\Adobe REC complete' + this.documentFileName});this.closeDoc(false);It will delete the pages but not export the data to the specified folder. The java script runs after deleting all-but-one page, so perhaps my 'this.numpages' is wrong
I am trying to open and edit pdf files using Ms Excel VBA. But unable to 'initialize the Acrobat interface. The Error is: VBA: Acrobat Run time error 429; ActiveX component can't create objectI tried to find VBA reference Acrobat.dll but failed. Some body tell me how to CreateObject("Acroexch.app") without installing adobe acrobat pro?Shall be grateful for any solution.Kimwoo4
Hello all,I would like to write Javascript or VBA code to Make pdf self destructive after specific time (5 mins), when pdf is sent via mail to specific persons.After 5 mins pdf page should become blank , no contents should not be displayed.is this possible if possible could anyone please give suggestions how to proceed.Thanks and Regards,Yogesh
Hello,We are developing check printing software for Quickbooks. Lots of customers are asking can they save the pdf and change the value by their own.Currently, we are using browser-based pdf generation tools. I mean chrome is converting HTML into pdf. But we are struggling to generate pdf from our mobile application.Is there any api available that our convert our html generate code into pdf using Adobe api with MICR font support. We have already bought MICR font.our website is :https://onlinecheckwriter.comYou can log in into our website and check out how we generate check using browser base pdf generation tools.[Moved to the development forum... Mod]
I am running the code below to open every popup note with non-empty content. I would additionally like to reset the popup note location of each note as I open it, so that it does not overlap the content of the PDF but is off to the side in the margin. How can I do this? Thanks in advance.My code:this.syncAnnotScan();annots = this.getAnnots({nSortBy: ANSB_Page});if (annots) {for (var i=1; i < annots.length; i++) {if (annots.contents != "")annots.popupOpen = true}}
how could I use acrobat SDK plug-ins add image,thanks
In Adobe DC...how do I format a time field so the user can enter a 3 or 4 digit number w/o a colon (such as military time) and get a standard time format that has a colon and the am/pm? For example: User enters User gets 0730 7:30 am 1516 3:16 pm 0000 12:00 am
I have 31 text boxes, one for each day of the month. In each text box there are 5 or 6 different entries, such as P, T, AB, AT. I want to create a field to total the P's and T's but not the AB's and AT's. How do I do that?
Ok so I have a situation where I have Checkboxes and textboxes that are related and need to populate together to a single textbox BUT I have another set of checkboxes and textboxes that are related that ALSO need to populate together to the SAME single textbox mentioned previously. So here are the separate java scripts for each set of data that I want to put into the same single text box. How do I join the scripts together? or is it possible?Script 1:var values = []; for (var i=280; i<=281; i++) { var fname = "CheckBox "+i; var f = this.getField(fname); if (f==null) { console.println("Error! Can't find: " + fname); continue; } if (f.valueAsString!="Off") values.push(f.valueAsString); }if (this.getField("SLS EO").valueAsString!="") values.push("SL
I'd like to run a script dynamically at every page, without executing a menu item or running the console at every page change, and not manually as described in this tutorialhttps://acrobatusers.com/tutorials/entering-page-actionsI've tried at the folder-level and document-level scriptif (event.type === 'Page' && event.name === 'Open') { app.alert('test')}Nothing happened when pages changed.
Dear All,I have 4 text fields with number values, where I would like validate the MIN value without zero. Which means that the validation script should ignore zero value(s) and only validate the min value among values, which are (x) > 0. Any idea for a Javascript? Thanks in advance?Best regards,Angela.
Ok, I have Javascript below that populates multiple checkbox values and multiple text box values into 1 single text box on a different page BUT the values of the text boxes are numbers and when they populate to the single text box there is no way of telling what the number value pertains to. so for example: If I type into "Temp" textbox "96"....I want "Temp - 96" to populate to the single textbox. Is this possible with this script? if not, please help!var values = []; for (var i=500; i<=505; i++) { var fname = "CheckBox "+i; var f = this.getField(fname); if (f==null) { console.println("Error! Can't find: " + fname); continue; } if (f.valueAsString!="Off") values.push(f.valueAsString); }if (this.getField("Vision Findings").valueAsString!="") values.push(this.getField("Vision Findings").va
My PDF will display page 2 after open fileI want display page 1 after open file.I want process by Script or COM.
Good morning,I have a form that contains two user input fields: Severity (A-E entry) and Likelihood (1-5 entry). I would like to have a third field autopopulate a response based on the user entries.For example: User enters C in Severity and 4 in LIkelihood the autopopulated response would be H1.The autopopulated response comes from a risk matrix I have created.Is this possible through some sort of script?
Excute me,Then My Adobe Acrobat Reader DC Update To Version 2019.008.20071My pdf form doesn't use java function .loadXML() in my pdf formPlease Help me find a solution to this problem. Thank you
Hola a tod@s,necesito crear un botón en un formulario (acrobat XI) que al pulsarlo imprima directamente en pdfcreator (sin ventanas ni de acrobat reader ni de pdfcreator) la hoja en un directorio y con un nombre concreto : por ejemplo en c:\pruebas y cuyo nombre sea la fecha actual; por supuesto en PDF.Espero vuestra ayuda. Muchas gracias
Using Acrobat XI Pro, I can't figure out how to open the window that contains ALL the Javascripts in the document. I need to add a single line of code to all required fields, and it would be 10x easier if I could go through all the scripts in the document at once, instead of clicking Properties > Actions > Edit for each field. In Acrobat X Pro, in EDIT mode, I would click Other Tasks > Javascripts > Edit all Javascripts to accomplish the same task, but I'm using Acrobat XI Pro at work, and the menus are very different.
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.