Unlock the power of Acrobat SDK through our community.
Recently active
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?
I have a form for which I made a Submit button.It will be sending the form to two different email addresses.I was able to find examples of javascript so I can use one of the form's fields as a subject line, however I would also like to have some other text in the subject as well, and I just can't seem to figure out how to add that.this.mailDoc({cTo: "email_1;email_2", cSubject: this.getField("full_name").valueAsString});Before "full_name" I'd like to have the Title Of Form. So the email subject like would be "Title of Form_full_name"I can't seem to get that to work... do I make it:cSubject="Title of Form_" this.getField("full_name").valueAsString});?Please help.
Hi:I am trying to to get a list to auto populate based on the users input in 4 seperate text fields. The user can type in their own information into 4 seperate text boxesI would like that info to be combined and put into a list in another text box.Example:Text field 1 : user input text 1 Text field 2: user input text 2 Text field 3: user input text 3 Seperate Text Field (would auto generate list)user input text 1user input test 2user input text 3 Thank you!
I've created a interactive pdf where the buttons reveal a number(which is a button itself) os there a way to create a calculation field in acrobat so that what ever number appears is calculated as a total score.
I have an issue that I am unable to resolve using previous posts. I am attempting to create PDF forms that are loaded with data that was preciously selected and stored in a database. Once the page is loaded, it is no longer interactive for the person and it is viewable as a read only. Although it is no longer interactive for the person, there are some additional fields that I would like to auto-populate on the form based on the data that is being loaded from the database. I have tried calculation scripts, validation scripts, action custom scripts, etc. These all work if the form is interactive and the selection is made on the form itself and not created as read only. I think the problem is that these pre-loaded fields from the database do not perform an "action" on the form after it is loaded and therefore these scripts don't execute. Is there a way to apply a script that will execute as the form is loading? Or is there another
Hi I'm trying to write the javascript for a custom command that runs through a document and finds all xobjects with duplicate object ID and changes the object IDs so they are unique. For context, the xobjects with duplicate object ID's is about 1-2% or less of all xobjects. I've been struggling to find which part of the api relates to what I want to do, if someone is able to point me in the right direction or have an example? Any help is much appreciated!
I want to create an annotation for a selected piece of text. I use the CreateAnnotations example for this at the page https://github.com/datalogics/adobe-pdf-library-samples/tree/master/CPlusPlus/Sample_Source/Annotations/CreateAnnotations.Create annotation:static ASAtom atH = ASAtomFromString ("Highlight");PDAnnot highlight = PDPageCreateAnnot (p, atH, & annotationRect);and set its coordinates and color (I use the SetAnnotationQuads function from the example for this).Naturally, only the main part of the code is given here.As a result, the selected text fragment is painted in the desired color, but the border of the selected fragment is not rectangular, as I would like, but some strange shape to the left and right of the text. This can be seen in the figure. Please tell me how to make the annotation border rectangular. I would be grateful for your help.
Question #1: I have several lines on a form to be filled in. If a line doesn't need information I would like the drop down menu to not show. (Ex below - I don't want the 101 - permits to show if not a description) I would prefer the lines to be empty. Is there javascript for this? Question #2: After I "prefill" the form and sign and then send to the end signer, my numbers don't show up in the correct format. I have them set in the form to "Format/Number" with the decimal and dollar sign. (Example - photo below is after the end signer signs the form - my numbers aren't in the format I had set up in the form $xx.xx)
The code found here: https://answers.acrobatusers.com/How-can-I-make-a-field-visible-based-on-a-selection-in-combo-box-q15194.aspxIs almost what I need, but unfortunately it only allows one text box field to be visible at one time. I would like the user to select multiple selections and have those selections appear. I currently have para1, para 2, and para3 text boxes defaulted to hidden. I have the below code in my List Box. Issue is that it only works to display 1 selection at a time. I want the user to be able to select several and then have the selected text box appear. I have attached my test document. Any help/feedback much appreciated. Thank you. this.getField("para1").display = event.value=="para1" ? display.visible : display.hidden;this.getField("para2").display = event.value=="para2" ? display.visible : display.hidden;this.getField("para3").display = event.value=="para3" ? display.visible : display.hidden;
I have a problem that I've been stuck on all day and I would appreciate any help. I have a vba macro that I've written in excel that opens a pdf in Acrobat and pastes the contents of a cell into the PDF as an image.My problem is at that point I want to be able to move the image to a different position within the PDF page. I can select the annotation using like so: PDFPage = doc.AquirePage(PDFview.GetPageNum) Set annot = PDFPage.GetAnnot(0) However, there doesn't appear to be any settings that can be used with this variable to determine position.I cannot use the function jso.getAnnot to set a variable because I do not know the name of the annotation. I have attempted to use the function jso.getAnnots() like so: Private AcroApp As Acrobat.CAcroApp Private doc As Acrobat.CAcroPDDoc Dim jso As Object Dim Annotations() As Variant Set AcroApp = CreateObject("AcroExch.App") Set doc = CreateObject("AcroExch.PDDoc") Set AVDoc = CreateObject("AcroExch.AVDoc") If
Here is my ongoing quest -- recently SOLVED, up to the point of delaying display of an Alert, by using setTimeOut. Now I seek to achieve delaying display of an RMA, similarly. Here's where I need help. My comprehension of ActionScript is still vague. I have been able to, in a scrpt, Play an RMA, by using an rm.callAS operation. This works, as seen with 'First Clip' on the left side of attached document: 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 Clip-annot rm.callAS("multimedia_play"); // play First Clip, right away The 'Second Clip', on the right side, is to play, following a 2.0 sec. delay: var aRM = this.getAnnotsRichMedia(0); // var used to ID any Clip on first page (PDF document page# minus 1) // var
I have previously posted my Big Picture objective. Here, I take a Big Step Back, to get a grip on this, in the simplest context I can think of [welcome advice from (try67)]. But I am hindered by perilous partial-understanding of scripting [enough rope to...]. I've reviewed the JavaScriptTM for Acrobat® API Reference. I've scoured online references/suggestions/examples. I've created a slew of test documents. Almost without exception, they function 'dead in the water.' I am missing some things basic, and fundamental. I sense I get hung up on [despite awareness of need for precision]distinguishing Acrobat-oriented JavaScript from HTML/browser-oriented usesyntax precision -- e.g. case sensitivity, quotation-marks-or-not, ...app-level [Acrobat] vs. document-level vs. page-level management I've considered setTimeOut, and setInterval, all sorts of ways. Here's what seems the simplest case [courtesy Thom Parker, 2008]. U
For years, my colleagues and I have been using a font called Chartwell to produce emotional intelligence reports for our community-based clients. It's worked really well for us as we needed a cheap solution to be able to mail merge charts in Microsoft Word and output them to PDF. To make it work, you have to enable ligatures in your word processor.(Details on font here: http://image.linotype.com/files/fontshop/FF%20Chartwell%202.0%20User%20Manual.pdf) Recently, we have started to automate our workflow. It seems that the online versions of Microsoft Word are unable to a) handle custom fonts and b) handle ligatures of any fonts (grrrr). So, we decided to investigate if we could bypass Word altogether and create a PDF form with the functionality we need. We thought we could place our font-based Chartwell charts in a text field and use a combination of Microsoft Flow and Adobe Sign to fill the document with our assessment data. Using Acrobat DC, I was able to figure out how
I swap out pages on documents, with new items, comments (red underlines) and links - sometimes the comments and links don't come over with the new page when either Inserted (Tools/Page/Insert) or Replaced. Does anyone know of a way to make sure the comment lines and links stay with the page? It doesn't seem like I always have this problem but today i sure do!So to reiterate: I delete pages and then insert new pages with new links and underlines. But it doesn't bring the new additions in, the old underlines and links are there with the NEW page.Thanks for your help.
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.