Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I've created a form with a text field, lets call it Inbd_Data.The text field pulls data from another source and populates it (i.e. the data is dynamic).Example:Name: Bob|Address: 234 Apple St.|Ste 230|(yes, the data is pipe delimited and the field headers will always be the same [that's what I'm trying to bold])I've been trying to write a script that will search the field for certain words and bold them. (i.e. "Name:" and "Address:" would be bold if found in the data).I've seen people suggesting the use of spans but that doesn't seem to work for dynamic data. Any ideas?
When in "Prepare Form" mode in Adobe Acrobat Pro DC, is there a way to get the selected field name(s) via JavaScript? I would like the user to be able to select a field (or multiple fields), and then click a custom button under "Add-ons" so that I can bring up my own custom dialog. I don't want to write a C++ plugin. Thanks in advance.
May I know to to user Adobe optimization API to optimize multiple pdf files in one batch.If possible, please show the source code.Step 1: Open the folder which multiple pdf files existStep 2: Optimize these pdf files and output into the destination folderThanks in advance.
The downloadable documentation lacks several pages, or at least has several errors in the links.For example, on the page that describes how to create a PDWordFinder object, there's a link to the API reference, but that link is dead.There are also numerous items that simply appears to be missing -- I can't seem to find any real documentation on how the PDDocCreateWordFinderEx function works or how to use a PDWordFinder object at all.
Hi, I used to zoom with javascript with (Zoom) and (Zoomtype) functions, but can i Zoom and Scroll to the Left Bottom of the Page? can this be done via JavaScript ? if this can be done which function to start with ?, Thanks in Advance.
I am creating a PDF form that consists of several yes and no questions (with radio buttons) and I am trying to conditionally require subquestions (if yes is checked). My question is Group1c, my subquestion is Subgroup1c. My answer choices for Group1c are Yes and No. All are radio buttons. My first question is already marked required, and my subquestion should be conditionally required. I tried the following code, but it keeps returning an error. Please advise! Thank you!var f = this.getField("Group1c");var yes = this.getField("Yes");yes.required = false;if(f.value === "Yes") {Subgroup1c.required = true;}
I have created an Adobe Acrobat form that has a textbox that retrieves the windows logged in user using JavaScript with identity.login. This works fine when the document is opened with the Adobe Reader. I have uploaded the document to our SharePoint Online. The document now opens in the browser in SharePoint Online, but, fails on retrieving the login of the user. How can I make this work?
i have 2 pdf pages Page 1 and Page 2 on adobe DC.User have option to duplicate Page 2 and create Page 3.Now i want a code to run only on page 3 when user work on page 3.... i try this :if (event.target.pageNum=1){this.getField("Text26").value = event.value;}if (event.target.pageNum=2){this.getField("Text26_1").value = event.value;}but the value takes in Page 1 and Page 2! I want only go to Page 3 if user work in this page........................
Hi Folks,There is a pdf image I would like to save as a jpeg, so i can post it on the likes of LinkedIn. Can I use Adobe to do this? If so, any pointers would be much appreciated. Thanks
I know, I know.. this is the JavaScript forum... but, I cannot find out how to start the check box naming at "1" again... I have many check boxes to add to my form, but the automatic field name stars at "Check Box20" (this session) and auto counts up from there. If I rename it to "Check Box1" and then add a new check box, it names the next one "Check Box21" and so on, instead of naming it "Check Box2."I couldn't find anything about this in the Acrobat X pro guide or after several Google searches. This has to be simple to do!!
Hello!I'd like to show or hide a few fields based on the answer given in a previous field.For example if the number in "Total" is 0-9, then Field 1 will appear. If the number in "Total" is 10-19, then Field 2 will appear. If the number in "Total" is 20-29, then Field 3 will appear, etc.I can't seem to find this situation in any previous posts.Thanks in advance!
I have used JavaScript code in Acrobat XI Pro in a checkbox to hide and unhide my Template. hide myTemplate//var t = this.getTemplate("myTemplate");t.hidden = trueunhide myTemplate//var t = this.getTemplate("myTemplate");t.hidden = falseWhen using Acrobat DC, I have and error message : Not AllowedError: Protection settings prohibit access to this property or method.Template:hidden:2:Field "My Template page name":FocusPlease help me....
I've been hitting me head against the wall for a couple of days now and seem to be getting nowhere fast.I've studied the samples in the SDK and it all seems a bit archaic. There's a whole mess of stuff in those projects that are *very* hard to read and come with no explanation (that I've found); primarily in PIMain.c. If anyone can point to something that would explain the code in that file, I'd be very happy.There's a bit of black magic everywhere and frankly, I can't seem to figure out why the sample compile fine while my projects don't.I've tried to doing a simple copy of the Starter sample and adding the missing files that it keeps references to; no luck.
I have 3 drop downs and I'm using this script to make them readonly and not,if (event.value == ""){this.getField("TranChec").readonly = true; this.getField("Tran1Htb").readonly = true;this.getField("width").readonly = true; this.getField("TranChec").value = "Off";this.resetForm(["Text2bbb","Text22b"]);}if (event.value == "1"){this.getField("TranChec").readonly = false; this.getField("Tran1Htb").readonly = false;this.getField("width").readonly = false; }else if (event.value == "2"){this.getField("TranChec").readonly = false; this.getField("Tran1Htb").readonly = false;this.getField("width").readonly = false; } //the script goes up to 50.What I would like to do is to eliminate all this script because at times I have to enter a number above 50 in the first drop down. At the moment when I enter a number higher than 50 the other two drop downs remain readonly. So, I'd like to be able to enter any number and the other two drop downs will become accessible and will become readonly on reset. Ca
Using the VB6.0, invoking the interface, loading the local PDF file, the PDF file has 10 pages, and I need to print the 1,3,5 page in a print task
This is probably way simple but....I have this script:var a = this.getField(2 PCT);var b = this.getField(SUB TOTAL);event.value = a.value * (b.value / 100)And get: SyntaxError: missing ) after argument list 1: at line 2Can someone explain this to me?Thanks
I have a new computer with Word 2016 and acrobat XI. When I change the printer on a Word document to print as a pdf, the page breaks change. As a result, I can't make easily make the pdf and word versions be the same. Is there a fix for this?Thanks.
hi, i'm getting "SyntaxError: missing ; before statement" error in bellow code. can u pls help me to solve this issue. thanks..var s1 = getField("aa").valueAsString;var s2 = getField("bb").valueAsString;event.value = "THIS AGREEMENT (the "Agreement") is made on" + s1 + ", by and between Sterling & Pope Publishing Corp, DBA, and hereafter referred to as, "The Painting Pro Guys" ('Master Licensor'), 7462 Chinaberry Lane, Frisco, Texas 75033 and " + s2 + " , of Texas, on the basis of the following understandings and agreements:" ;
I've download and installed the SDK. Where is the documentation for the SDK? I'm looking for latest documentation regarding IAC.where's the iac_api_reference.pdf? where's the iac_developer_guild.pdf?any other pdfs? What kind of crap sdk is this? Adobe should be ashamed for even allowing this crap SDK to be downloaded from it's website. CLEAN UP THE SDK and make it useful.
Hi,I have been researching how to reference fields on spawned pages and have managed to successfully calculate values etc when the fields are on the same spawned page (using the split method based on "."). However, I'm having difficulty getting values from fields that are on separate pages, spawned from a different templates. Hopefully I can present the issue in a logical way....here goes:I have 6 template pages which are spawned from a single user click of a button. These always spawn in order (1 - 6). On the first spawn these are prefixed P1 - P6 as I have a static title page which takes the place of P0. On the second spawn these would then be P7-P12.The first three templates are named PreSurvey1, PreSurvey2 and PreSurvey3.The final three templates are named PostSurvey1, PostSurvey2 and PostSurvey3So, on the first spawn I get P1.PreSurvey1, P2.PreSurvey2, P3.PreSurvey3, P4.PostSurvey1, P5.PostSurvey2 and P6.PostSurvey3. A number of text fields are present on each of these templates.
Hi , I'm trying to ask the user to change his mind if he didn't really want to exit from the (Opened PDF Doc),, so i go to Document Action at (Document will close) and write the following :var cMsg = "Are you sure you want to close ?";cMsg += "\n\n";cMsg += "Contiunue ? \n\n ";var nRtn = app.alert(cMsg,2,2,"Warning ! ");if(nRtn == 4){// A yes Response // Code for doing the thing you do on a yes this.closeDoc();}else if(nRtn == 3){ // No Response //event.value = 0; // assume do nothing beep !this.closeDoc();}else { //Unknown Response beep !this.closeDoc();}But the Above Code is Closing the Document even if the user hit yes or no? ho do i change it to not close the document if the user hit (No)... thanks for any tip
I know next to nothing about coding. Here's my scenario: I have a set of 29 options with drop down selections of Level 1, 2, 3, or 4. I want to input selection rules so that out of the 29, someone can only select the "Level 1" option a maximum of 7 times. Is this possible?This is an example of 1 of 29 options on my form:Here is the legend:Level 1: 1-7 drug classes means that you can only select a MAXIMUM of 7 drug classes as Level 1
I have a couple text boxes as follows:text1 = number that doesn't change (6.5459673)text2 = number that will change based on input from another text box (box1F6)in excel the calculation would be: 6.5459673 (or text1) * (LN(F6))I tried doing this:var nBox = + getField("box1F6").value;event.value = math.log(nBox);but that didn't even put a 0 or any input for that matter. Any help is appreciated! Thanks in advance!
There used to be a list of simple commonly used lines of code for various actions. I can't find that list. Does anyone know where that is?I have a multi-page pdf. On the first page, I have a list of important dates. These dates are based on dates entered elsewhere in the document. I want to enter default statements in the date fields on page one, for example "Enter Delivery Date on pg 2". Once they enter the date on page 2, I want that entered date to populate the field on page 1. How do I do all of this?Message was edited by: Teresa Kassen
Good evening, everyone!Here's the problem. I have a numeric field which is filled in by the end user. After that question, the user is asked to select from a drop down menu of text options. If the selected text option is "Text A" then the numeric field should be validated to a max value of 12. If "Text A" is NOT selected then the max value of the field is 20. I'm trying to use the following script to validate an if/then statement.The script works well when the text is selected first, however, if the numeric value is filled first then the script does not validate the numeric field to 12 unless the user goes back into the box.. Is there a way to have the numeric field automatically correct to 12 if the value is greater than 12 if Text A is selected after the numeric field is populated? Any help is appreciated!// Custom Validate script of a numeric text field(function () { // Get the value of the TextChoices field, as a str
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.