Questions
Recently active
Hi,in the program I generate a text annotation. How to make it appear on the screen after its formation?
Hi, Is it possible to apply a dynamic custom stamp to every pages of a PDF file, print it, and then save it?I already have the following working in javascript console, and I would like to be able to apply the following code to many PDFs not involving the javascript console so my user don't have to copy/paste the code in the javascript console. for(var j=0;j < this.numPages; j++){this.addAnnot({page: j,type: "Stamp",author: "cyeung4",name: "BERS Time Stamp",rect: [454, 510, 538, 641],AP: "#ZJ1LQSvWRiacxXY_xMhkgC" });}this.print({bUI: false,bSilent: true,});app.execMenuItem("Save");
My previous communication was not the best, so try again 🙂 Looking for a solution how I can count the empty text fields with javascript. Something like excel with COUNTBLANK (). Any help and approach is welcome Thanks,Nikolaos.
Last month I set up a date printed on multiple pages of a document through the creation of a field and running the javascript. However, since getting a new laptop and requesting the IT dept to download the Adobe Pro DC I have been unable to do this. I went through the process as the first time but whenever I try to enter in the javascript, I am not getting the OK button to proceed. What I see is a Go to button and when I select this, it asks for a Line Number?Using Windows 10 now and I'm not sure if that has anything to do with it?Help appreciated
I have an adobe template that everytime I spawn a new page, the spawned page is blank. There are not field at all. Why is this happening?
I have a PDF which has a number of check boxes. I want to be able to either highlight the text next to a check box when the box is selected or bold the text. Example below. Anyone done something similar?
I have the following code which is just draft at the moment as I build it up, but I want to bold the text when the checkbox value is on: if(event.target.value=="Off"){ this.getField("Text11").value = "Hmmm"; } else { this.getField("Text11").value = "WORK"; } So, in this instance when the box is ticked I want the 'Text11' field to display 'WORK' which it is doing, but I want that text to be bold. Can someone help me with the code for doing this?
PDF programming issue: I have a Certificate of completion (currently in JPG format) that I issue to Customers on a Wordpress-based website I am building. When a Customer passes my technical online test(s), I want my website to automatically create a downloadable, uneditable, PDF of my Certificate, with the Customer's Name and Date placed in specific areas of my Certificate image. I want to program this capability into my website. Any specific advice is appreciated! Thank you, John 2-12-2020
Hi,tell me, please, how to get the window handle of the Adobe Acrobat DC application?Thanks.
Hi: I am trying to figure out a way to underline only part of a "string" (if i'm using that correctly) I have a paragraph that auto populates based on a custom calculation script. I used the follwoing in the script in the custom validation script section wich underlines the whole paragraph. I would like to only underline the first two words of the paragraph. var span1 = {};span1.text = event.value;span1.underline = true;event.richValue = [span1]; Any suggestions or solutions. Thank you !
I was referring to the documentation on how to create a PDF Library application on windows, it mentions that the following files are shipped with the PDF Library SDK: AdobePDFL.libAdobePDFL.dlllibpdfl.soAdobePDFL frameworkI can't seem to locate these files, I need the AdobePDFL.dll to begin developing in .NET. Please let me know if I am missing something, any help would be appreciated.Thank you, Jayden
Hello, Totally out of my realm of expertise here, so please forgive if the title doesn't contain any of the proper keywords or if this question is better placed somewhere else. We have field operations that require constant reference to a large PDF document created by our organization in FrameMaker (1594 pages) that gets updated at least twice a year, sometimes as often as six times. It's referenced by multiple teams simultaneously on a shared network from iPads and desktops. What we're wondering is if we can have users click a string of text (that would obviously be a button or a link of some kind) and have that string sent to a central data collection point on the network. This is where we'd like to start. Our tentative possible end goal is collecting the string, a user ID, and being able to remove the string from the data if there was an error. In case it's helpful, the PDF is an aircraft parts catalog with diagrams and part numbers and chapters
Hi Acrobat Community, I'm trying to get an average of six fields, with the option of skipping blank fields or N/A, and have the value autofill a seventh field. It looks like this: I've searched all over these forums and many others and I've found a few ways to do this. The one I've settled on was made by try67 on these forums. The problem I believe I'm running into now is that, no matter what I do, I can't get an array to call back to my function. The code I'm using looks like this: function calcAverage(aFields, bIgnoreBlanks, bIgnoreZeros) { var total = 0; var n = 0; for (var i in aFields) { var f = this.getField(aFields); if (f==null) { console.println("Error! Can't locate a field called: " + aFields); continue; } if (f.valueAsString=="" && bIgnoreBlank) continue; var v = Number(f.valueAsString); if (isNaN(v)) continue; if (v==0 && bIgnoreZeros) conti
Hello, I'm wondering if there is a chance to lock zoom level of a specific page in my document (using acrobat pro), so the end user could not change it. I know there is a chance to set a default zoom level, however it does not restrict a possibility to zoom in and out for end user. If there is no chance do to it using ootb tools, is it posissible to achieve it using javascript tool in Acrobat?
Hello Community. I am using Adobe Acrobat XI Pro. I’d like to do a Dynamic Stamp with an incremental number. So for example, I click on a stamp that says “SPOOL”, and each time it’s applied to the page the number would increase i.e. “SPOOL 1″, “SPOOL 2″, “SPOOL 3″, etc…. I would like also that countinous numbering could be edditable. So I could stop my actuall stamping and start again with “SPOOL 2″ for example. Is it possible in Adobe Acrobat XI Pro?
I had some documents on my adobe cloud this morning.. now 3 of those files are GONE! I tried to open them this morning that was fine. Then hours later tried again and got "ERROR". Went out and in again and then they were just GONE!!! Can you help me to find them again??
Hi,Could someone tell me the Tetra4d Enrich/Converter JavaScript code to import model into pdf where model is placed in a folder.I have gone through js_3d_api_reference but could't find anything related to import model through console or through JS.Any suggetions / help would be really appreciated.Thanks in advance.
Hi - I am new with javascript and seem to be hitting a bunch of dead ends. I am trying to create a form with multiple check boxes, Based on the selection of text boxes a full letter will populate. Right now I am using scrip that looks like this var a = this.getField("options").value;if(a == "a"){event.value = "Option A paragraph";}else if(a == "b"){event.value = "Options B paragraph";}I have done this script for all 10 chck boxes and have 10 coressponding text box fields to popoulate the informaton in. But I am now realizing that the paragraph options are all different lengths and the letter would have to be formatted each time. Is there a script that would auto format all the paragraph spacing? or should I use one big long text box (but it would have to be multiple pages) with a long script. Last question: can you format paragraphs with javascript ? Thank you
Hi - I am working on a PDF form that uses a custom javascript to auto fill text boxes based on check marks. Becasue there a few different selections is it possible to write a script that will auto format the whole document, so all of my paragraphs are equally spaced and paragraphs/lines wont have to be pushed up or down when the form is complete ? Thank you
Hi, I'm trying to turn off all layers that begin with a text string.So far I have:var l = this.getField("SELECT.Language").valueAsString;var n = this.getField("SELECT.Number").valueAsString;for (var x=0; x < ResetOCGs.length; x++){ ResetOCGs[x].state = false; }for (var x=0; x < docOCGs.length; x++){if(docOCGs[x].name == "Logo" ) { docOCGs[x].state = true; }if(docOCGs[x].name == l ) { docOCGs[x].state = true; }if(docOCGs[x].name == l + ".1" ) { docOCGs[x].state = true; }if(docOCGs[x].name == l + ".2" ) { docOCGs[x].state = false; }if(docOCGs[x].name == l + ".3" ) { docOCGs[x].state = false; }if(docOCGs[x].name == l + ".4" ) { docOCGs[x].state = false; }}I'd ideally like to get rid of Reset OCGs a turn off layers that begin with l + ".3".I was thinking something like l + ".3*", with the asterisk acting as a wildcard but it doesn't seem to work.Can anyone help please?This is a form created in Acrobat, with all fields created in Acrobat.
I have a text field whose required status is based on a selection made in a drop down. What I need to add to the code that I've already got (see below): if (this.getField("Bedrooms").value=="Points"){event.target.required=true}else if (this.getField("Bathrooms").value=="Points"){event.target.required=true}else if (this.getField("Occupancy").value=="Points"){event.target.required=true}else{event.target.required=false} Is that if this field is required it cannot equal 0. The problem is that any other time, it can be 0. I don't doubt that it is doable. I just don't have the knowledge to make it happen... Any help would be appreciated.
Essentially I'm trying to pull two different lists into two separate dialog "popup" lists but for some reason only one of the lists will populate at a time. I'm doing all this in a folder level script and I am unable to change that. The data is being pulled from a proprietary application. My code is below, please let me know if there's anything obviously wrong with it or if clarification is needed. function newElement(type, id, name, elements) { var ele = {}; if (elements === undefined) { elements = 0 } switch (type) { case "radio": ele = { type: type, item_id: id, group_id: 'grup', name: name }; break; case "check_box": ele = { type: type, item_id: id, name: " " + name }; break; case "edit_text": ele = { type: type, item_id: id, name: name }; break; case "popup": ele = { type: type, item_id: id, name: name, char_width: 10 };
I'm trying to use radio buttons to select a "sample type". Upon selection, I want the form to default certain tests to that particular sample type. For example, selecting PARTS would default the Salmonella, Campylobacter, and EB testing radio buttons on.. I'm fairly new to Acrobat and JS so any help or advise is greatly appreciated. I'm learning on the fly. Thank you in advance!
Hello,We are using Acrobat plug-in to save PDF from our application. For one particular scenario we are trying to save a non-english filename (like Chinese, Japanese, Korean, etc) to PDF. We are using AFExecuteThisScript to call the saveAs method to actually save the PDF file.As per documentation we found here:ASBool AFExecuteThisScript (PDDoc pdd, const char * cScript, char ** pRetValue)AcroForm Methods Executes a JavaScript script.Parameters: pdd The PDDoc in which the script is to be executed. cScript A string containing the text of the script to be executed. If Unicode, the string must begin with 0xFEFF and end with 2 null bytes. If this is not the case, it is assumed to be in the application's language encoding, as returned by AVAppGetLanguageEncoding. pRetValue To get a return value from the execution o
Looking to convert lots of documents to text. Need meta data about the document and the text. One data point that is needed is the indent. Need to know if a line is indented from the left margin and some sort of quantification of that indent such as spaces, tabs or something else. If such a tool does not exist I am willing to code it but this new to me. What tools might help solve this problem?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.