Questions
Recently active
Hi,I would like to highlight a selected text in a certain colour via shortcut (that is to say, execute the command available in the context menu of a text selection programmatically (right click on selection > Highlight text)). I have used IAC with AutoHotkey before, but I am not sure which route to take... could somebody point me to an example for text annotation creation over a selected text?Thank you in advance for your help and suggestions.
Hi everybody, I have the feeling my problem should be simple to solve but I cant figure it out. I am very new to this .. so I might be absolutley on the wrong track. I have two PDF forms: A0.pdf and A1.pdf. The user should fill the template A0.pdf and if required afterwards also the additional template A1.pdf. As there are form fields containing the same information in both forms, I would like to transfer the mutual data from the A0.pdf to the A1.pdf . My idea was to use a button in the A0.pdf that if pressed opens an empty template of the A1.pdf and then fills in the data. Here is what I came up with so far as an example for one Name field: var v = this.getField("A0-Name1"); var myDoc = app.openDoc({cPath: "/C/UserData/user/Documents/A1-template.pdf", bHidden: false}); myDoc.getField("A1-Name1").value = v.value; The script works when I run it from the console. But when I trigger it trough the action of my button the following error is returned: &nb
Good morning everyone - i have a pdf form that has 12 fields - 5 are hidden - its a calculator of sorts. The user puts in their annual earnings, and based off of field3 - field4 is supposed to dive field3 by 12 and generate a number - but it's not working. i've tried this in the in the Simplified Field Notation area: Annual_Bill_Rev/12months the 12months is a hidden field with a default value of 12. If i can figure this out, i can probably figure out the other elements as well. so that i may get those other fields working. i need this by End of Day today so i suuuuuuure hope someone can shed some light on this for me. Pretty please?! Thank you in advance for any help you can provide.
Recently upgraded to new iMac and re-installed Adobe CC. Since then every high resolution pdf i view has a strange "ghosting" effect of trim marks etc which only shows when viewing overprint - they do not appear in the separations preview nor do they appear when printing.This appears on pdfs created by others and it does not affect anyone else in my group so is clearly a display error of some kind - any comments?
I'm trying to figure out a way to get the coordinates or location of when you as a user are using the pointer, you can select an area(represented by a blue box). I would want that blue box location and save it. Then I would like to be able to recreate that. So I could click a button and that select box would appear at that location again. In a way its similar to what the bookmark feature can do except that just uses zoom. The reason I need this is to add a feature to a ERP application I am creating. Customers send emails with pdf attachments. We quote them according to what they say in that pdf file. As a user, I want to be able to select a location in a pdf file, save it, and continue. That way when a product is shipped, for example, with the color purple, and the customer is upset because he didn't want purple, we could easily show the customer where exactly he/she said that in the pdf file. We wouldn't have to waist time looking through all the pdf files the user sent to find it.
Hi, I was hoping to get some help on the following topic: I have a fillable PDF form created in Adobe Acrobat XI Standard (also have a Pro version on another laptop) and I am trying find the most efficient way to insert a page with non-merged fields. I have a document that has one page that is sometimes repeated (depending on how many observations we find). At this time, one page with certain fields is created in a fillable form and when I try to add/insert the same page again, fields are merged and the same already filled text repeats itself. I can go in and change the name and numbering of each field, but I was wondering if there is a more efficient way? Either with coding or through a PDF Portfolio, which I have not used yet. Thank you.
Hello, I'm looking to create an if-if-then calculation in my Adobe Acrobat Pro DC. There are 3 total fields being utilized, A, B, and C, all with qualitative values (no numbers).A and B are both drop down menus, each with 3 options. Out of the 9 total combinations between Fields A and B, there will be a return for Field C. The goal is for me to have an Adobe Acrobat where C will dynamically change based on what's in A and B. Can anyone assist me in what the javascript code would look like based on what I need done?
I need a keystroke script to add a dash after the 3 first number if the user don’t enter one. I can’t use an Arbitrary Mask since I have a validation script to allow number between 7 and 11 digits only. Can we merge the validation with a keystroke? Or in a format script?
I want to change the text color in the text field to red according to the result, but I don't know how.In the following cases, I want to change the result of "! Over!" to Red color.I need your advice. Thank you. ==== var GetNextDAY = this.getField("Next-Birth-DAY").value;var NextDAY = new Date(GetNextDAY);var TODAY = new Date();var HowMany = (NextDAY - TODAY)/24/60/60/1000; if(TODAY > NextDAY){ event.value = ('!Over!');} else{event.value = (HowMany.toFixed()+'Days');}; ====
Is there a way to access/change the default properties for a markup annotation using Javascript? Since it is a dynamic toolbar and dialog based on the type of markup selected I can't find the properties or methods. A second question would be how to find the properties/methods for a dynamic toolbar or dialog. I have searched the documentation and can't seem to find it.Thank you so much for any assistance provided.
I think it's a very simple question,but I'm a beginner who has already spent two days on this issue. ①The date listed in the date field "Day_A"②Read it in the date field "Day_B", list it there, and③Write in a date field "Day_C". There is a little reason and I have to follow the above steps.I have to write these code only in "Day_B".Of course all of these are Date fields. Field "Day_A" and Field "Day_C" can not for use.Field “Day_A” → Field “Day_B” is easy.Field “Day_B” → Field “Day_C” I don’t know how to write the code to write to . ===★The field where the code is written is "Day_B". //Get date field DayA. //Revert to date object.var GetDayA = this.getField("Day_A").value;var DayA = new Date(GetDayA); //No need this code.. //var GetDayB = this.getField("Day_B").v
I’m able to create fields on everypages of a PDF using this: for (var nPage = 0; nPage < this.numPages ; nPage++) { var f = this.addField("myField", "text", nPage, [200, 600, 300, 660]); } or to a specific pages: //Page 2 var f = this.addField("myField", "text", 1, [200, 600, 300, 660]); or all pages except the first or the last.But now I need to add fields to a specific set of page ex: 2-4, 6. It will probably involve an array with a loop. But I’m lost.Any clue on how to create an array of pages numbers, and loop the process of creating fields on them? Or any tutorials (simple and clear) on how to create/use arrays and loops would be welcomed. Thanks!
English:Can you help me?A customer of ours has a problem with Adobe reader.Suppose the customer would use the Adobe reader for a week, so 7 days, it would fail 4 times if not more.What happens is that when he starts adobe and then opens a file and when he wants to send it by mail and when he fills in the correct email address.And when he clicks on send, it gets stuck every time.It looks like the screen is frozen. _____________________________________________________________________________________________________Nederlands:Kunt u mij helpen?Een klant van ons heeft een probleem met Adobe reader.Stel de klant zou een week van 7 dagen Adobe reader gebruiken dan zou het 4x uitvallen, als het niet meer is.Wat er dan gebeurt is dat als hij adobe opstart en dan een bestand opent en als hij dan via de mail wilt versturen en hierna vult hij de desbetreffende email adres in.Als hij dan op verzenden klikt dan loopt hij telkens vast.Het lijkt alsof het scherm bevroren is.
In this automatic culvert size calculator, I would like the correct culvert size to be automatically selected from the heading culvert sizes dropdown list and the checkbox array opposite the culvert discharge area: ie. in the image the checkbox opposite the 800 culvert should be selected and 800 should be selected from the drop-down list. In the image of the form, the Aavg field was calculated using the 'average' calculation function, however, I would prefer if the value was the mean of the values that are greater than 0 or null, so as an error isn't caused by a failure to enter a full six measurements.
I have a bunch of PDF that I need to add a long document javascript in them. I want to use an action to inject it to a bucnh of PDF.I have found this steps on StackOverflow (provided Joel Geraci):- - - - - Create a new Action Select "More Tools" Select "Execute JavaScript" The script your action runs will need to inject the JavaScript that you want the PDF to run as a string. You'll need to give it a name ("init" in this case) so it appears in the "Document JavaScripts" list. So it will look like this... this.addScript("init", "app.alert('Hello World');")- - - - -Works perfectly on a small code to inject. But I can't figure out how to us ethe same steps to includes a long multiline javascript. I have try a few things like defining a variable but it keep failing. How can I write a long multiline code to be injected using the: this.addScript("init", "[code here]")
I have a large PDF (320 pages) and need to extract and save individual pages as separate files. I search on a keyword in the file, locate the page(s) I need, and then extract these pages from the master document (without deleting). EVERY SINGLE time the 'BROWSE for FOLDER' dialog box forces me to scroll and expand my folder tree, for a total of SIX CLICKS (plus a lot of scrolling in a little tiny box) to reach the destination folder. I'm on Windows 10 and this was not my experience extracting pages in the previous versions of Acrobat. I have searched on how to set or change the default output folder and/or how to force Acrobat DC to 'see' that I just used a particular folder, and to present that recently accessed folder as the default destination after the first time I've extracted a page from a PDF. At the very least, I would expect the default output directory to be that of the document from which I'm extracting the pages (which it's not). I had hoped I could change the output f
I need assistance to write a script for my GST calculation based on the selection of radio button: GST Excl (radio button) is selected - 10% must be added over the subtotal GST Free )radio button is selected - no gst is calculated GST Incl (radio button ) is selected - subtotal must be divided by 11 (i am almost giving up my hopes as this may be too ambitious) . I have learned adobe all by myself but just stuck on this form for ages.
I built VBA code to run through a query list of PDF files, open the first file, add some watermark text, save it to a specific path and filename, THEN open each subsequent PDF from the query list sequentially and add watermark text, then insert the watermarked PDF copy into the first saved file. Everything works great when there are only 2-6 pages. I have query lists in the 300+ files (for 400+ pages). The code below fails with Run Time Error 91 at the GETJSObject line. The real head scratcher for me is that this error SEEMS to be speed/processor dependent in that it happens at different times on the same list. Sometimes failing at page 10, sometimes at page 284. Always at the GETJSOBject line (at least that's where the Access VBA shows it failing).Any suggestions??Code:Public Sub PDF_PRINT_HIDDEN(path, parent, TSO, setqty, itemno) Dim PDFApp As AcroApp Dim PDFDoc As AcroAVDoc Dim newPDFDoc As AcroAVDoc Dim PDDoc A
I have a problem that drives me crazy.In my PDF I use a function that fills the right drop-down menu and depends on the choice made in the left drop-down menu.This function works well except that: - When I use my function in "validation script" it acts with a delay time, it is the previous choice that is displayed in the right drop-down list. )See attachment). - When I use my function in "custom format script" it runs twice. ( See attachment.)• Once when you click on the list, as if there was a "mouse down" action, which immediately resets the right drop-down list.• And a second time, as expected, when you validate a choice. What do I need to change to be able to use my function as a "validation script" that don't acts with a delay time, or as a "custom format script" that only runs once after the user choice? Thank you My function: function gereSousList() { if (event.target.currentValueIndices != 0) {// console.clear();// récupération du suffixe du champ cliq
I've found many different similar options but most of what I've found are severely dated. I am using Adobe Acrobat Pro DC. I have 6 numeric text fields and in the 7th field I need to create a custom script to display the highest/greatest/Max number between those 6 fields. The field titles are: SeptSteps (user input number)OctSteps (user input number) NovSteps (user input number) DecSteps (user input number) JanSteps (user input number) FebSteps (user input number) TotalSteps (Read Only, need to display highest number of the previous 6) Could anyone please assist? Thanks in advance!
Using javascript , it's possible to set all the Appearance options to multiple text fields using hierarchic names. But I noticed that I can't do this for any of the General (readonly) or Options options (multiline true/false or defaultValue). I'm trying to have a functions that create three text fields with specific attributes. Here my code... Maybe I'm approaching it the wrong way and shall create one field and duplicate it using javascript. But I don't know how (yet! 🙂 ) addField("jv.n", "text", this.pageNum, [18, 18, 582, 162]); addField("jv.m", "text", this.pageNum, [18, 186, 582, 330]); addField("jv.0", "text", this.pageNum, [18, 354, 582, 498]); var fNa = ("jv"); var f = this.getField(fNa); f.textSize = 10; f.textFont = "Courier"; f.textColor = color.black; f.fillColor = ["G", 0.9]; f.display = display.visible; f.multiline = true; f.doNotScroll = false; f.doNotSpellCheck = true; f.readonly = true; f.defaultValue = "JavaScript - description: "; this.resetForm
Hello,When I create a Barcode field with PDF417 Symbology, I noticed that the fields content are automaticly sorted when I scan it. This when using Encoding Tab delimited or the Custom Calculated Script provided by Acrobat.Does the only solution is to rename the fields so they appears in the correct sorted order?Thanks!
I want to add Five Fields (numeric) and also allow user to enter "-" (dash sign) if no value is present instead of 0. but when i put "-" in any field it returns NaN. Following is my script : var n1 = Number(this.getField("Text1").valueAsString);var n2 = Number(this.getField("Text2").valueAsString);var n3 = Number(this.getField("Text3").valueAsString);var n4 = Number(this.getField("Text4").valueAsString);var n5 = Number(this.getField("Text5").valueAsString); event.value = n1+n2+n3+n4+n5; Thanks in advance [moved by moderator to Acrobat from Community Help.]
Hi, I'm trying to make an Javascript button event that will send an email and a PDF form. I have the form properly emailing, and the subject line is dynamically updated with whatever is in the field "What do you want the report to show or compare" but I can't figure out what to enter to make the body of the email read the same thing every time. I just need it to run a little disclaimer for the submitter and it'd read something like "Click send to complete form transmission" I have tried cBody and cMsg but don't know how to get those to both work. If it matters, I'm trying the cBody after the cSubject. I am very new to Javascript. Thanks.Here is what I have working so far: "this.mailDoc({cTo: "example@work.com",cSubject: this.getField("What do you want the report to show or compare").valueAsString});"
Is it possible to batch process using a JavaScript that will reduce all the documents images dpi down to 150 dpi then resave the file in a different location? Any snippets of code for reducing the image dpi or other parts of this task would be greatly appreciated!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.