Unlock the power of Acrobat SDK through our community.
Askettäinen
I am using the script below in a button on the first page of an 8 page document. Its purpose is to flatten the first six pages of the form and leave pages 7 and 8 unaffected by the script. However, all 8 pages are flattened by this script. I am not using and do not need the optional nNonPrint parameter. this.flattenPages({ nStart: 0, nEnd: this.numPages - 2, });Am I doing something incorrectly? How can I accomplish my objective of leaving the last 2 pages undisturbed by this script?Also, since the AcrobatUsers.com forum was replaced, I don't believe I have ever received a response to a question I have posted here, whereas before I nearly always received a response. I don't know why I am not receiving response, but if someone responds to this, please send me an email to tell me that you have responded and how I can find your response.Thank you.David DunnDDunn@DavidSDunn.com
Hi All,Please help out me.How would I use JS to open a link, from within a PDF file, into a new window that would have a specified Height and Width?Thank you,Chiranjeevi
Is there a way, with JavaScript in Acrobat, to find the DPI scaling settings of the current display?I'm talking about the "Change the size of text, apps and other items" settings in Windows:Setting this to more than 100% has adverse effects on the text displayed in dialogues I create using app.execDialog().
I wish for my field to display the next sequence of a lettered list, based upon what is displaying in the previous field. My code isn't working at all, I have senseless responses. I hope the image below is clear enough on what I am doing. Can someone help me make the correction? Thanks!
I am trying to write a plugin to allow me to silently print in the tiled format, is this possible? I do not see any of the settings I would expect and many of the ones that have 'tiled' in the name are now obsolete.Please, any help would be greatly appreciated.ThanksKory
I am having trouble creating a Custom calculation script in my Adobe Acrobat XI Standard. I have a table with fields row_1, row_2, row_3, row_4, row_5, row_6, row_7, row_8, row_9, row_10, row_11, row_12, row_13, row_14, row_15. I have a field that already calculates the mean, that field name is mean. So far I have been able to create this but it does not work:sqrt(((((row_1-mean)^2)+((row_2-mean)^2)+((row_3-mean)^2)+((row_4-mean)^2)+((row_5-mean)^2)+((row_6-mean)^2)+((row_7-mean)^2)+((row_8-mean)^2)+((row_9-mean)^2)+((row_10-mean)^2)+((row_11-mean)^2)+((row_12-mean)^2)+((row_13-mean)^2)+((row_14-mean)^2)+((row_15-mean)^2)))/15)
Hi I generated an interactive PDF using Phantom. I have a short script to enter the current date when clicking in a field. The triggers can be any of Up, Down, etc but I have used MouseUp. This works just fine in a Foxit reader. BUT, when opening the form in Adobe Acrobat XI, the action only triggers on the NEXT click after my initial click in the date field, no matter whether this next click is in another field or in open space.My code is :var f = this.getField("RecvdByDate");f.value = util.printd("dd mmm yyyy", new Date());Thanks in anticipation
The issue is that I want my custom-made Tool Button to allow the user to select where he wants to place his stamp. The stamp I made for him.This functionality exists with the stamps given by Adobe Acrobat. There, when you select a stamp, your cursor turns into the stamp and you can choose where it lands. Is this something I can code or is it not possible?Thank you in advance!
I have prepared in Indesign 15 interactive PDFs that are controlled from a dashboard (also in PDF).What I want to do is that the Dashboard can call the other PDFs with a script on a button.The idea is not to make a single PDF, because it would be very heavy, but as people browse the interactive and click on the buttons show the corresponding PDF. But everything from the same frame.In overview, while browsing the user see a single PDF (do not know that there are several).Can you help me?
I am trying to write a calculation script where a certain field is 0 the event value produces the sum of 3 fields and when a different field is 0 the event value produces to the sum of 3 other fields. The script I have written is below. I keep getting a java script editor message "illegal character 2: at line 3. Can you provide some input as to what I am doing incorrectly to obtain my value?if (this.getField("No of Lots").valueAsString==""){ event.value = ( this.getField (“Site Plan Rev Fee”).value + this.getField (“S&E Rev Fee”).value + this.getField (“Future Disturbed Fee”).value + this.getField (“Storm Rev Fee”).value; }else if (this.getField("No of Sheets").valueAsString=="") {event.value = (this.getField (“Subdiv Plan Rev Fee”).value + this.getField (“S&E Rev Fee”).value + this.getField (“Future Disturbed Fee”).value + this.getField (“Storm Rev Fee”).value;}
Any help would be amazing, I've been looking all day for a solution and can figure out each separate piece, but can't get them to come together.I'm trying to create a JavaScript that will return a 0 if a checkbox is checked and if unchecked will run the script below. var n = this.getField("textbox").value;if (n >0 && n <= 1.00) event.value = .50;else if (n > 1.00 && n <= 1.50) event.value = .75;else if (n > 1.50 && n <= 2.00) event.value = 1.00;else if (n > 2.00 && n <= 2.50) event.value = 1.25;else if (n > 2.50 && n <= 3.00) event.value = 1.50;else if (n > 3.00 && n <= 3.50) event.value = 1.75;else if (n > 3.50 && n <= 4.00) event.value = 2.00;else if (n > 4.00 && n <= 4.50) event.value = 2.25;else if (n > 4.50 && n <= 5.00) event.value = 2.50;else if (n > 5.00 && n <= 5.50) event.value = 2.75;else if (n > 5.50 && n <= 6.00) ev
Hi GuysI would be grateful for some help with this as new to javascript.Im looking to create an action within acrobat to batch delete pages. These PDF documents are varied with the total number of pages. I would like to delete all pages but keep the first and last two pages within the document, so 4 pages remaining after running the script. Thanks Alex
I would like to setup watched folder and execute Adobe Action on any file saved into this folder. Can this be achieved with Action Script, windows batch or some other way ? I have tried to find something on Google but not much luck. Any suggestions ???
Hi,Is there a way to detect if the user selects pdf's for an action wizard from anywhere other than their c:// drive? I noticed that when they select pdf's from anywhere other than c:// and run the action wizard and then go back to selecting other files from the c://, it just does not execute but on 1st file. I read this has something to do with a bug where Adobe thinks the other files are open when they are not. Anyway, my thought on this is to generate an app.alert when the user selects pdf's from anywhere other than c:// to prevent this from happening in the first place. Any help would be greatly appreciated.S
I've tried to install Adobe Pro DC twice with the same result.Please help.
Hi,How can I write javascript could where user receives an error message (app.alert) if another pdf file is open? My program only works if one pdf file is open. When another is open, it does not work b/c it detects 2 active pdfs open instead of just one. I want the user to be alerted to close the other pdf before proceeding. The following did not work:if event.target > 1app.alert ("Close all pdfs before proceeding.",3);else ...Please suggest an alternative code. Thx.S
HI,Does any one have suggestion on a Java Script that would delete pages with a specific Watermark. I have a script that will delete pages with specific "words", but need some help modifying it, so it looks pages with watermarks and then deletes them. I am currently using the Action Wizard.
Hello,I need to automate the Word (docx) export process. After a PDF file is generated from an automated publishing process using FrameMaker, I need to optionally export that PDF as a Word file. This has to be done without any user interaction. Is this possible? There seems to be plenty of ways to control Acrobat through IAC, but I can't see how to do what is needed. The option to export Word files or not will be set in a configuration file.Thanks in advanceIan
HiIn our work environment, we use an add-on tool to stamp a document. With Adobe X and Adobe XI professional and standard, we have the ability to right click on the tool in the add-on tools and to make a shortcut on the top menu bar. However--I am not finding this ability with Adobe DC. If a person wants to use the add-on tool--they must click on the add-on tools on the right--then click on the appropriate tool. Some of our employees have to sign several documents--so it is somewhat time consuming.If anyone could assist with this, I would greatly appreciate it.Thank you
I have created a drop down list with 10 selections in it. Based on selection of that drop down list a different drop down list opens. How would I set validation for min and max dollar amount based on choice. Thanks M
From created in Adobe Acrobat DCI am working on a form that requires check boxes or radio buttons to be ticked in a specific order. These check boxes or radio buttons would tell us whether the step passed or failed.We need to be able to prevent the user from moving on to Step 3 if they did not choose a check box for step 2. I understand that it is not recommended because users can become frustrated, but these are extremely important steps and my boss wants it this way. The form would be something like this:Step 1 - CheckBox1PASS Checkbox1FAIL - one must be chosen before moving on to step 2Step 2 - CheckBox2PASS Checkbox2FAIL - one must be chosen before moving on to step 3I have looked everywhere for maybe a script that could do this. I know I can do it with text boxes by adding a script to the on blur action.Would anyone happen to know a script that could accomplish this? Please let me know if additional information is required.Thanks!
Hi,I have a variable called ODoc which is the current pdf and calls a global function which places a label on it based on input into a dialogue (code not shown):var oDoc = event.target; global.DoPlaceDocNumbers(oDoc)However, I would like it to call all the pdf's in the batch so the labels can be applied all at the same time.I have posted this question before and received an answer about calling all the pdf's at once and then performing the action. I have been researching this to see if there is an "event.all" (or something similar) which I did not see and then tried using a for loop to accomplish this but have not been successful:var oDoc = event.target;for (var i=0; i<oDoc; i++)global.DoPlaceDocNumbers(oDoc)
Guys, I need some help.I am making a form where there is a column with actions taken and another column with the status of these actions, where it can be pending (blank field) or resolved (OK). I created a field of implemented actions (OK) and wanted a code in javascript that counted all the fields with "OK".Something like .... if the field has ok he would count and give me the total of ok.can you help me?Abs,Berg
Hello java community!I have been researching for days like crazy and breaking my brain without any resolution to this. I am fairly new to javascript so I am hoping someone can help me.Field names and valuesSeller Type: "Individual", "Commercial"Province: "AB", "SK", "YK", etc - each of the provinces have their appropriate tax rate as export value e.g. "AB" is 5, "SK" is 10 etc.Sales Tax: based on the export value of the province selected.Subtotal: sum of amountsTrying to achieve this calculation:If (SellerType="Commercial") then Subtotal*(SalesTax/100)elseif (SellerType="Individual") then 0My code right now is:var st = getField("SellerType").value;var tax = getField("SalesTax").value;var sub = getField("Subtotal").value;if (st==="Commercial"){event.value = sub.value*(tax.value/100);} else {event.value = 0}I am about to give up, please help!!!Thank you in advance
I have an integer coming over from a web form. This integer is the saved value of a string, in our case company names. Depending on what integer gets populated I would like to replace the integer with the company name if that is possible. Example: 10 represents "Workplace, Inc." When the field populates 10, execute some JavaScript to replace the 10 with "Workplace, Inc."
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Onko sinulla jo tili? Kirjaudu sisään
Eikö sinulla ole vielä tiliä? Luo tili
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.