Unlock the power of Acrobat SDK through our community.
Recently active
I'm trying to create a `setInterval` that fires every 5 ms while the mouse is pressed on a button.Strangely, while other code in the Mouse Down event fires, the setInterval doesn't fire until the event is over. It then fires during the Mouse Exit or Mouse Up event, which is too late.Why is that? And how can I get the desired behavior?I looked in the SDK documentation and found a onMouseHit event which sounds more like what I'm looking for. But I don't know how to trigger this event from a form button.
I am incredibly green with JS, maybe a week into learning; please ELIM5. I have created a form that will highlight a field based on its value. The issue I am having is during validation. I am attempting to populate a window to remind the end user to check for restrictions. I have read the tutorial and created a code based on the information provided; however, I am still unable to get it to run correctly. I have provided both versions for reference. The first code populates an alert anytime the cell is changed, and I understand why based on the coding. The following code is my attempt at only having the warning populate based on fill color. Both versions are forcing the alert incorrectly or not at all. I previously had the app.alert in the format code (provided as struck in the first "if" case) but was unable to get the oCK to operate, which is a must for the end user. Thank you in advance for any assistance!Format code:var mf
I am trying to figure out the correct Javascript to accomplish a certain action within my Adobe PDF. Here's a quick summary:Field 1 is a dropdown menu containing 2 options. These options are "Arlington" and "Beverly Hills"Field 2 needs to populate with the value of 1000 if Arlington is selected or a value of 1500 if Beverly Hills is selectedCan anyone help me with creating the javascript for this?Thank you,Matt
Hi,I'm trying to build an advance form that allows in-company ordering of products. The difficulty for most employees is to select the correct 'booking code' properly: which budget and which cost category.For example: rubber stamps (part of the range of the office supply products) must be booked on B001(budget number) and 1234 (cost category). Short: B001.1234. Second example: pencils (again part of the office supply products) must be booked on B001.1235. This product range is pretty large.Our source for the correct booking codes is an Excel sheet: column 1 contains product names, column 2 the main category, column 3 the sub-category and column 4 the correct booking code. Examplerubber_stamps; office supplies;postal needs;B001.1234pencils; office supplies;statiorary;B001.1235etc.The idea is to present employees with 3 pull down menu's: main category, subcategory and product.For maintenance and update purposes, it would be great to import data into the form/these pull down menu's
Hi,I am looking for a way to print or extract only those pages within a doc that contain a search term; what would be the search result set I suppose. Right now I have to note every page a term(s) is/are on and then go back and extract or print. Anyone have this issue before?TIA,-mark
I am trying to count the number of numbers and add a + symbol to the second to last value in form fieldexample user input into field 1000form format 10+00user input into field 10000form format 100+00user input into field 100000form format 1000+00
How to activate annotation by cliking on it , I write annotation to bbox on page , I want to highlight it after adding , so that user can see where to click. And also , i want to add clicking fucntionality to it ( activation after clicking ) what callbacks or smth should I use ?
Good Morning/Afternoon!I am trying to set up a calculation on a form that is based of an "if/Else" format. The calculation in words would look something like this:Skill Calculation: If “Trained Skill 1”>0;“bonus 1 = “Dex Mod” + “Trained Skill 1” + “Skill Misc Mod 1” + “Addtl Misc Mod 1” Else“bonus 1” = 0If it were in excel it would look like this as far as format and expected outcome:As you can see from the Excel snip, Row 2 shows that C1 ("Trained Skill 1") has a 1 in the column. As a result, the sum of B2 ("Ability Mod"), C2 ("Trained Skill 1"), D2 ("Skill Misc Mod 1"), and E2 ("Addtl Misc Mod 1") is calculated and placed in A1 ("Bonus 1")Conversely, Row 3 shows that C2 ( "Trained Skill 1") has a 0 in the column. As a result, the sum of B2 ("Ability Mod"), C2 ("Trained Skill 1"), D2 ("Skill Misc Mod 1"), and E2 ("Addtl Misc Mod 1") is NOT calculated and a 0 is placed in B1 ("Bonus 1")Can anyone help me create a javascript formula depicting this action?  
From the site: Adobe PDF Library SDK at the bottom where it says "The Adobe PDF Library SDK is available from Adobe through a license agreement to OEMs, ISV integrators, and enterprise IT developers on a case-by-case basis. The first step in the licensing the Adobe PDF Library is to fill out the information request form (PDF, 45K). "The information request form does not let you select the state you're in, nor does the "next page" button work or the submit button. To be able to use the SDK I must submit this form first so I'm hoping I can either manually enter the information and email it or find a fixed form
My Acrobat Pro DC form contains radio buttons. When I select them in preview, they stay selected, leaving me a form that will not allow users the option for selecting them. How to save the form with buttons unselected? Also, how do I de-select them, so that I may share the form?
Hi all!I am trying to build a form where the user can input data into several rows of fields. Once they are done, they can click a button at the bottom of the page which spawns a state form that is filled out with the data from the first page.The data on the first page is grouped, meaning that I won't necessarily have all the info in consecutive order. For example, I might have Rows 1, 2, 5, and 7 filled out on page one, which need to be translated to Rows 1, 2, 3, and 4 on the spawned page.I have written a function for this, but I want to add one more feature that I need help with. Right now, the function only works properly if ALL fields in a row have a value. If one of them is blank, it throws off the rest of the sheet. I'm looking for a simple way to check each row for blanks, and assign them a value of " " if the other fields in that row have a value already?Function below:function generate(){var nIndex = ["1.0", "1.1", "1.2", "1.3", "1.4", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2"
Hi, Sorry... I don't know the correct place to place this so placing here... I am opening error pdf file in acrobat using applescript. Its throwing error as popup window. I want to handle this pop up and check whether pdf file is opened or not and accordingly i need to proceed further process in pdf file. I am getting the below error. After that nothing proceeded in code even a alert. I have modified the extension of html file to pdf to handling error pdfs. Code :set fileName to "PathToPDF"set POSIXFile to fileNametell application "Adobe Acrobat Professional" activate try open POSIXFile end try display dialog "Document Opened" end tell
Hi. I have a dropdown list "Dropdown1" with some values that show the relative content, for example:- value = 0 shows " "- value = 1 shows "abc"- value = 2 shows "def"- value = 3 shows "ghi"Now, I have a text field "Text1". I would like that when I select a value in the list, this populates the text field with the same content. I know I can use this calculation script in "Text1":var f = this.getField("Dropdown1"); if (f.valueAsString=="0") event.value = " "; else if (f.valueAsString=="1") event.value = "abc";else if (f.valueAsString=="2") event.value = "def";else if (f.valueAsString=="3") event.value = "ghi";but if if I allow to customize the text of the selection of the dropdown list, this change (rightly) does not appear in the text field. I would like to work around the problem and impose that the content (and not the value) that appears in the list, appears identical even in the text field. Thanks
I have Acrobat 7, and have installed it on my new computer. In order to keep it working, I need to activate the program, but I keep getting error messages when I try to do so. Phone activation has been disabled for this product. How do I activate?
Hello , I have the following problem , I wonder , how can I connect annotation to the selected box , I need the following functionality : I create pdf with embedded 3d annotation and then I select the region(area) in the pdf doc where annotation should be added. I have the following code from samples that sets the box for annotation .How can I add multiple annotations to the page and activate them immediately after selecting region for my annotation.ASFixedRect annotBox = {ASInt32ToFixed(108), ASInt32ToFixed(612 - 108), ASInt32ToFixed(792 - 108), ASInt32ToFixed(108)};theAnnot = PDPageAddNewAnnot(pdPage, -2, ASAtomFromString("U3D"), &annotBox); PDAnnotSetFlags(theAnnot, pdAnnotPrint | pdAnnotReadOnly);
I have several groups of radio buttons. If I select the second button of the group (value 2), this selection add “1” to the content of a text field. So, for example, if I select the second value of four radio button groups, the text field shows “4”. How can I do this? Thank you so much
Hi again, everyone. I'm having an issue with SaveAs and the bPromptToOverwrite parameter. The pastebin link to my code will be below. For some reason, it just won't prompt me to overwrite if the file already exists. I am calling the folder level script linked below through a mouse up event on a form button, if that makes any difference.I believe I have the line of code right seeing as the save event still happens without errors, but the dang prompt just won't show up. Any ideas?[JavaScript] Attempt - Pastebin.com
I have a drop down with 4 items. Actually this dropdown has a selection of business owners. Is this possible if we select 1 from drop down only one line is editable and if we do 2 then two lines editable? The second case, is this possible when I choose 1 then only one field is displayed?
I have a number of annotation attachments in a pdf form. I would like to get the page count of each annotation attachment(mostly pdf). Is there any way to get it.
So I am in Adobe Acrobat Pro DCReviewing my scripts (thanks for the community help in building some complicated ones) in PreviewThey are all running and functioning PERFECTLYI create a PDFTurn it into an AdobeEsignWidgetGo to the public facing URL andSad panda = no script functionalityAll the scripts are stripped away/not thereExamples:I have the date set to bedd/mm/yyyy and in the URL it is mm/dd/yyI have a script which makes subsequent fields required if the first field contains a valueIn Preview it works perfectly = every field becomes RED and requiredOn the web = nadaIs there a certain way I should be going from Acrobat Pro DC to EsignWidget when there are javascripts?Any insight would be GREATLY appreciated!
Hello,I work in compliance and often need to interview households with multiple adults. Data such as Name and DOB must be written multiple times on a multipage package that we use at work. I would like to create a PDF document that automatically completes the package with information/data completed on the first page. I'm not sure which adobe product I would need or how to accomplish my goal. Any guidance is greatly appreciated.
Hi,Wonder if anyone can assist please?We have a plug-in which has been working fine for years.When used it saves a copy of the .PDF being worked on.We have 2 PC's which have just upgraded to the same Adobe DC version (2019.012.20034) - using the same document:-One one machine it works fine without any errors.-On the other we get 'This operation is not permitted'.This occurs when the PDDocSaveWithParams command is called.Any help would be greatly appreciated. (Wondered if it was font related).RegardsStuartsaveParams->fileSys=ASGetDefaultFileSys();saveParams->newPath=pathName;saveParams->saveFlags=PDSaveFull|PDSaveLinearized|PDSaveCollectGarbage;saveParams->size=sizeof(_t_PDDocSaveParams);saveParams->saveFlags2 = PDSaveCompressed | PDSaveAddFlate | PDSaveReplaceLZW | PDSaveOptimizeXObjects | PDSaveOptimizeContentStreams | PDSaveOptimizeFonts;PDDocSaveWithParams(pdDoc,saveParams);
I'm using the following code as an action to spawn a hidden page template using a checkbox. The JavaScript works, but the issue is that each time I click the check box (check/uncheck) it will spawn a new page. I would like to toggle the checkbox to spawn the template (check) or delete the page (uncheck). Please note, this will be installed on machines that use Acrobat Reader, though the spawn functionality seems to work just fine. I am using the following code as an action within each checkbox:var a = this.getTemplate("TEMPLATE1");a.spawn(1,false,false);Thanks for the help! I am very new to coding and acrobat!
I am not familiar with JavaScript and just need it for one application. I have a fill able form that i created.The Cells used are the following:Grossamount (manual entry),2% (=Grossamount*0.02),SlipFee (manual entry)The cell i am having trouble with is for the Additional Amount due.Additional Amount due should be 2% - SlipFee. If the result is negative it should calculate Zero.For Excel the equation is: =MAX(0,I24-I26) and it works perfectly fine, but i am having issues with that in my pdf file.
Is there a script to calculate a percentage for score achieved out of total score? Thank you.
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.