Unlock the power of Acrobat SDK through our community.
Recently active
Hi, I am not sure the best way to approach this or if it's possible. I am looking for a way to auto generate a letter based on the selections in a pdf form (the fillable form is already created)The problem is that based on the form selections the paragraphs can be all different sizes making it hard to format. Currently I have multiple text boxes with custom calculation scripts in all of them so the text boxes auto populate with the proper paragraph (based on check boxes and dropdowns) but this method does not seem that efficient. After the form is completed all of the text boxes are filled in with the correct paragraph but I am then exporting it to a word document and formatting the whole letter which is a challenge at times (depending on how it exported). I have to format line spaces, indentations, and margins (basically all basic layout formatting).Is there a better way out there ? The goal is to fill out the form and have the entire letter auto generate and just
Hi I have a form where I want to pre-fill the e-mail field based on firstname and lastname fields. I have this script in the email field:var fornavn = this.getField("Fornavn").valueAsString;var etternavn = this.getField("Etternavn").valueAsString;fornavn = fornavn.replace(" ","");etternavn = etternavn.replace(" ","");event.value = fornavn + "." + etternavn + "@company.com"; But how can I allow the user of the form to override this and enter their own email address if they don't want to have the one suggested by the script?
I developed a PDF form using Javascript for field validation and digital signature after filling. We found a security problem after signing. My form: Ficha Cadastral 26.02.2020 Filled Form.pdf I coded an onSign_pf script: by signing the document, all filled fields are visible and all fields become read-only. Problems: some important fields, remain clickable after signing, using Acrobat Pro or Reader, Windows (10 or 7).These fields have scripts that reset some fields and/or show/hide some other fields.When they remain clickable after the subscription, the information filled in by the customer will be lost. On Mac everything works correctly (with Adobe Reader or Professional): after signing all fields are correctly read-only - cannot be edited or checked. My idea for solve this: create a button (you will see the new gray button called pf.validarinformacoes) that will serve for the person to review the information before signing (Wha
I want to know if there's a way to fill out a separate form depending on what boxes I check on the first 2 forms. Like if I click on check box 1, 3, and 5, then it'll fill out fields in 1a, 1b, 2a, 2b, 3a, and 3b in the last form. Just the same, reverse if the boxes are unclicked. Also, after you unclick them and click on 2 and 3, then it'll fill out 1a, 1b, 2a, 2b, 3a, and 3b. Any help with this issue would be greatly appreciated.
Hello experts, I come to you with a very beginner-level question. I have two dropdown menus, Dropdown1 and Dropdown2. I would like to make it so when a choice is selected from Dropdown1, the choices available in Dropdown2 will change based on the export value of the choice in Dropdown1. For example, my Dropdown1 has the following choices and export values: (Choice1, a) & (Choice2, b). If Choice1 (a) is selected, the choices from Dropdown2 should be a, b, or c. If Choice2 (b) is selected, the choices from Dropdown2 should be d, e, or f. I found some possible solutions online using the event.willCommit method, but I can't get this to work with the export values of my choices. When Choice1 is selected from Dropdown1, the choices in Dropdown2 are not updated. It's only when I select Choice2 that Dropdown2 is populated with a, b, & c. Here's the Keystroke Script I have in my Dropdown1: var arrayOne = ["a", "b", "c"]; var arrayTwo = ["d", "e", "f"]; if (event.willComm
Hi! I need to create a program, script or something similar to be able to fill many PDF files form fields on Windows.Text fields are very easy to manage in many languages, instead an image field is more complicated when you need to put inside a PDF file and not an image (PNG, JPG and so on). I tried many third party libraries without success. How can I achieve this? I can use vbs or other programming languages without problems. What I searching is an hint and some examples to find the right solution. Thank you.
Do you have Adobe acrobat DC SDK[dlls] which can be referenced in a .net application? The following features needs to be integreated on a .net app1. Export to word2. scanned pdf to searchable pdf RegardsJoseph Stalin
Prefacing with the fact that I know next to nothing about javascript programming, but I'm curious if what we're trying to accomplish is possible with it. I have a single page PDF on a file server that is printed repeatedly throughout the day at varying quantities (usually less than 100 copies). I know I can inset Bates numbering, but that seems to only number the page itself, not any copies. I pretty certain I can use js to generate a random number when the document opens and add it to the PDF, but could I extend that idea and add numbers sequentially to the number of copies being made?
I am reviewing the Adobe site - "Learning ActionScript 3", as well as many other resources. It seems I am far from fluent in ActionScript, so I turn to this Forum, as well. I am keenly familiar with Multimedia Operations, but managed principally via the GUI-thingy [e.g. Button Properties Actions tab]. Now I seek to manage those ActionScript calls via JavaScript. 1). In the attached example file, I successfully call a pair of RMAs via rm.callAS: var aRM = this.getAnnotsRichMedia(0); // var used to ID any Clip on first page (PDF document page# minus 1) // var rm = aRM[0]; // get rich media annot for First Clip [RM List Position# minus 1] // if ( !rm.activated ) rm.activated=true; // activate the RMA rm.callAS("multimedia_play"); // play First Clip // var rm = aRM[1]; // get rich media annot for Second Clip [[RM List Position# minus 1] // if ( !rm.activated ) rm.activated=true; // activate the RMA // // IT IS DESIRED TO WAIT N MILLISECONDS BEFORE PROCEED
This is a followup to another post of mine, on the same subject. That one documents imprecision in the ActionScript 'Seek' operator. In it, I promised, "I shall presently post an example that differentiates [consistently] irregular behavior by Acrobat, re ActionScript calls, using two different sources of H.264, .mp4 files. From one of those H.264 encoders, the result is as expected, per Adobe documentation." Now follows the particulars, as demonstrated in the attached file. A single scene is called, with a JavaScript, to be Played beginning at the timepoint of 3 seconds:/* A variant of Joel_Geraci1 at Forum, 2-2-18 - and also from D. P. Story */ var aRM = this.getAnnotsRichMedia(0); // var used to ID any Clip on first page (PDF document page# minus 1) var rm = aRM[1]; // get rich media annot for The Clip [RM List Position# minus 1] if ( !rm.activated ) rm.activated=true; // activate the Clip-annot rm.callAS("multimedia_seek", (3)); rm.callAS("multimed
Hello, There is issue with 3D in PDF become gray screen.When opening file if Adobe is not started, screen 3D area becomes gray and doing any action returns it to normal. If Adobe is already started and then opening file, that issue won't happen.What is cause of this and how to bypass it or remove? Tried some examples of 3D PDFs, they either had some refresh after gray screen appears or mouse movement would remove it. Also one did not have that issue.
Hi,I have a form with a number of templates.Each template is named with a 2 or 3 character name – e.g. "TH", "MON".The field names on each template are named using the template name followed by a space and some text – e.g. "TH Head 1", "TH Dropdown 1", "TH SI 1", "MON Head 1", "MON Dropdown 1", "MON SI 1".On each template I have a field comprising the template name followed by a space and "no items" - e.g. "TH no items", "MON no items"My code below (with thanks to try67) attached to this field hides or displays the other fields.In order to avoid rewriting the code for each template, what I want to do is to use the first 2 or 3 (depending on the field name) characters as a variable to add to the beginning of the other field names.I thought that if I could find the position of the first space in the field name I could use this to ascertain what characters to use as a prefix. For example, the code below is attached to the field "TH no items". Instead of me havi
I have a lot of PDF files with countless free text annotation. I try to use Javascript to batch modify the format of the annotation to make it bold and set the font to Times New Roman. I refer the detail API information in this (https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf). I tried the following method: var annt = this.getAnnots(1)[0]app.alert(annt.textFont)annt.textFont = "TimesNewRomanPSMT" var spans = new Array();spans[0] = new Object();spans[0].text = annt.contents;spans[0].textColor = color.red;spans[0].textSize = 24;spans[0].alignment = "center";spans[0].fontWeight = 800; //set boldspans[0].textFont = "TimesNewRomanPSMT"annt.richContents = spansThis gave me the bold text, but the font changed to Arial and cannot set the font back to Times New Roman...So, I tried another way... var annt = this.getAnnots(1)[0] var span = annt.richContents span[0].fontWeight = 800 //set boldannt.richContents = spanHowever, this d
Hi,I am creating a Highlight annotation. When you create this annotation automatically, as written in the documentation, an annotation of the Popup type is created. At some point, I need to delete the created annotation. In this case, I would like to delete the Popup annotation associated with the Highlight annotation. The documentation says that Highlight annotation is the parent of Popup annotations. How to find Popup annotation associated with her Highlight annotation?Thanks
The question suggests itself - "What is it you don't understand about initialization?" Attached file demonstrates the Subject Line. Thom set me straight on the ' marks. Gilad said my example works for him. It works for me, now, with the exception of the first execution. Which suggests I'm missing an initialization/activation construct? Here's the code:// var aRM = this.getAnnotsRichMedia(0); // var used to ID any Clip on first page (PDF document page# minus 1) // var rm = aRM[1]; // get rich media annot for Second Clip [RM List Position# minus 1] // if ( !rm.activated ) rm.activated=true; // activate the Clip-annot // // app.setTimeOut ('rm.callAS("multimedia_play")', 2000 ); // Play Second Clip, after 2000 milliseconds // Insights solicited. Thanks,BR
I have Adobe Acrobat Pro XI. How do I make the cursor appear in the first form field when the document is opened?
We recently upgrated our PCs and when we re-installed Adobe onto them, our default pathways have changed. Previously when we wrote a PDF, it automatically saved the file into the the folder it was written from. Now it defaults ALL of the PDFs into the same folder. We were using Windows 7, Chemstation Software, and Adobe 9. Now were are using Windows 10 and the Adobe, Chemstation software is the same. I have downloaded a trial of 2017 Pro and am still having the same issues. I know how to change the default save settings to put data into a specific folder, but having to change the pathway for every piece of data we run will take forever. Is there a custom tool or something I can add to do this for me?
I'm using Acrobat Pro DC and I'm somewhere between Novice and Amateur user level with JS. 🙂 I'm creating a form with a dropdown list that I would like to trigger whether or not specific other fields are displayed or hidden to the user based on the choice. I've found similar situations in other cases, but nothing that quite fits what I'm trying. I have used the following successfully, but I'm trying to find a faster way to reference the common fields that will be hidden or displayed based on the selection....especially as I'm looking at adding more as the form develops. I'm running this as a custom validation script on the dropdown. This worked:if (event.value == "Reclassify a Filled Position") {this.getField("EmplName").display = display.visible;this.getField("EmployeeName").display = display.visible;this.getField("EmplID").display = display.visible;this.getField("EmplIDNum").display = display.visible;this.getField("EndDate").display = display.hidden;this.getFiel
Hi, I'm currently using a scripted button in a PDF to load an avatar image as button icon. That's for an RPG character sheet, for what it matters.I'd like to use the same (or similar) method in a different layout with a circular character portrait. I know buttos are meant to be square. Is there a way to make the button look circular by masking it, applying styles or such?It looks like form elements in pdf are always in foreground.Thanks for any help/hack as creative and unconventional as it takes.
Math.log( ) just givesme the natural log. I've tried Math.log(10, ( ) ), Math.log10( ), console.log(getBaseLog(10, ( ) ), console.log(Math.log10( )). Now I'm at a loss on how to go about solving this.
Hi, How can I make a text field visible based on a check box selection ? I tried the following: if (this.getField("MyCheckBox").isBoxChecked(0)) {this.getField("TextFormFieldToBeDisplayed").display = display.visible;} else {this.getField("TextFormFieldToBeDisplayed").display = display.hidden;}But my check box is apart of a series .. I have 2 check boxes all called "template"and their export values are individual, and multiple. I am trying to make 1 text box visible and another one hidden if individual is selected, then reversed if multiple is selected. Thank you!
I have 200 PDFs, In which some of the PDFs are marked with the comments in it and i need the list of the those commented marked PDFs naming, is there any way or short cut script to do so, please help.
Hello there,I am trying to create a pop up warning based on a validation calculation for a field. I have this so far: If(event.value(Hotel > (Lodging*nDays))) app.alert(“Amount exceeds the lodging per diem limit. Please select a justification for the higher lodging amount.”); I'm getting a Syntax Error saying that I'm missing a before statement and I'm not sure how to move past this. I'm not a JavaScript person so I don't even know where to begin fixing this. Please help!
I have a form with dropdown box, basically, I want to auto-populate some data when user click on a particular dropdown item i.e if he selects "Acke, Yvonne" via dropdown then telephone filed will auto filed a phone number which I have a complete list of name and telephone number:PS: I have a script but not sure what's wrong and not working for me? Custom Keystroke if( event.willCommit ) { if(event.value == "") this.resetForm(["DeptContact","DeptEmail","DeptNumber"]); else SetFieldValues(event.value); } “SetFieldValues” Document Processing > Document JavaScripts// Place all pre-population data into a single data structure var DeptData = { Accounting:{ contact: "Steala Damuni", email: "accounting@mycomp.com", deptnum: "cmp1234" }, Engineering:{ contact: "Frank N. Stien", email: "engineering@mycomp.com", deptnum: "eng1234" }, Marketing :{ contact: "Shelly Oughtbuks", email: "marketing@mycomp.com", deptnum: "mkt1234" }, ITSupport:{ contact: "Goah Wei", email:
I am new in JavaScript.I try to combine two scripts in one script, but without results. It is not working.And here is the code:/* Crop*/var rCrop = this.getPageBox("Crop",this.pageNum);rCrop[0] -= 8.5; // Adjust Left SiderCrop[1] += 5.7; // Adjust Top SiderCrop[2] += 0; // Adjust Right SiderCrop[3] -= 0; // Adjust Bottom Sidethis.setPageBoxes("Crop",this.pageNum,this.pageNum,rCrop);var pp = this.getPrintParams();pp.interactive = pp.constants.interactionLevel.automatic;pp.printerName = "Epson L805 Series"; This script should add margins to Left and Top Side of page, and select the specific printer.What I 'm doing wrong?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.