Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
If anyone can help with a scenario that I'm struggling with I would be eternally grateful. I am learning how to write in Javascript but am very new to this. I'll do my best to describe what is happening and how I'm trying to write the script. Below is the breakdown:Line "J10" is a sum of 5 lines. Line "J13" is the sum of line "J10" and "J12" ONLY if Line "J10" is greater than 0. If Line "J10" is a negative number then Line "J13" should return 0. I've written the script so many different ways I think I've thoroughly confused myself. At one point, I thought I solved it. When I enter the number and it gave the result I was looking for on the positive side and then changed the number to a negative but the result from the previous script didn't change but stayed the same. I want to be able to write the Javascript so if I test it with a positive result it gives the result I'm looking for and if I change the test number to a negative number that
Hello,Can someone pls help me with the below error:AcrobatProDC install fails with Error Not Enough Disk SpaceI actually got only 1.7GB left on my C Drive, But I do have enough space on D drive (18GB). How will I change the Acrobat to install on D drive?Thanks, Siva J
Is there a way to search, highlight, extract, but instead of extracting the entire page, I only want to highlight/extract the sentence or paragraph the term is contained in?I ultimately want to be able to export a "summary" into excel of a predefined set of search terms and pull the surrounding sentence or paragraph so that this exported list contains the context of how the term is being used in the document.Is this possible??Thanks,
HelloI am trying to import multiple (6) rows into a text field from a text file. If i add 2 or more rows it gives me an ouptut of 0. Is there another way to achieve this?I have tried this:var i; var full;for (i = 0; i < 7; i++) { full += importTextData("/C/Users/testfile.txt",i);}event.value = full;This only read the 6th row in the file.I have also tried this: var a = importTextData("/C/Users/testfile.txt",0);var b = importTextData("/C/Users/testfile.txt",1);var c = importTextData("/C/Users/testfile.txt",2);var d = importTextData("/C/Users/testfile.txt",3);var e = importTextData("/C/Users/testfile.txt",4);var f = importTextData("/C/Users/testfile.txt",5);event.value = a+b+c+d+e+f;This only outputted the last row in the file.Please advise.
My alternate email address is sending the email with the newly created pdf. How can i change the sending address to my principal email address?Principal email address is gloving@npgcable.com
This is the area that I want the numbers. Each time I open the pdf document create a different billing number. I think that the code is in Javascript but I don't know.I'm going to use 10 digits. Where I place the code?Thanks for your help.
The code transfers all the values from the PDF file into my Excel sheet .... I thought so .... On page 2 and following, after two-thirds of the page the enumeration ends and it continues on the next page ... On page 1 but everything is transferred .... has anyone ever had the phenomenon? I need all the text from the PDF Set jso = PDDoc.GetJSObjecti = 0For iPage = 0 To PDDoc.GetNumPages - 1 icount = jso.getPageNumWords(0) For iWord = 0 To icount - 1 word = jso.getPageNthWord(iPage, iWord, True) If VarType(word) = vbString Then Tabelle5.Cells(i + 1, 1) = word i = i + 1
Hello,I made a pdf form that has a table that has calculated fields, in them there is a formula that takes the data from the fields of its line and the result serves as the starting value of the lower line.But since at the beginning there are not all the fields with their respective values, the formula lacks arguments and the Javascript warning sale appears informing me of it.Is there any way to disable the Javascript warning window?Thank you so much
Hello,We are using Adobe Reader DC plugin and would like to disable Adobe keyboard shortcuts like F8 to show/hide the Adobe Toolbars, Ctrl+Shift+S to Save, Ctrl+P to Print, etc programmaticallyWe understand that in previous releases of Adobe Acrobat/Reader this was NOT possible or restricted. Can some one confirm if this is possible with Acrobat/Reader DC? Also, a quick example of how this can be achieved could also help.Please let me know your views on this.Thanks,Amish
Can anyone please assist me on how to create an adding machine calculator script for adobeThank you
I have a script that successfully populates data from Excel into a form I have created and saves it. However, I'm having difficulty digitally signing the form. The following is old code I found from previous literature and it seems like it should work but it has not yet. Thanks! strSignFName = "C:\misc\Test.pfx" Set oSign = objJSO.getField("Test")' Set oSign = objJSO.getField("Pool Manager Signature") Set oPpklite = objJSO.Security.getHandler("Adobe.PPKLite", True) oPpklite.login "Test123", "C:\misc\Test.pfx" oSign.sign
Hello Guys i tried my level best to add my code to add in tool bar. I cant succeed. I am beginner so i unable to grasp some complicated technical terms. Anyone please add the folder scripting code to run my existing code. Below code is i am using in Acrobat 11 but now i want to do it in acrobat 9 tool bar. Please help.// pages on which that string is found to a new file.var pageArray = [];var stringToSearchFor = "SHEET";for (var p = 0; p < this.numPages; p++) { // iterate over all words for (var n = 0; n < this.getPageNumWords(p); n++) { if (this.getPageNthWord(p, n) == stringToSearchFor) { pageArray.push(p); break; } }}if (pageArray.length > 0) { // extract all pages that contain the string in
Something seems to have changed in recent updates for my Acrobat XI Standard. Just in the past month or so, Acrobat has started defaulting to using the document title rather than the file name.To give some background; my company has several Word templates from which we create documents, which are then PDF'd (via Save As function) with the Standard options, which includes bringing across the document properties. In the document properties, the Title (under details) shows the template name; but the File Name has important information such as job reference number and date. PDFs have just recently started to show the document title (template name) in the bar by default, and I have to manually change it back to file name under the initial view settings in Properties. But this is tiresome to do for every document I PDF. Why has this changed? Can I change it back to always PDF with document title?I have Office 2016/365, and I'm on version 11.0.12 of Acrobat XI Standard
I want to Trim the PDF using SDK want to remove the white space with some watermarks but not able to find any way.Needs help.
Hello! ! I'm coming from different languages, just getting back into JavaScript, and struggling on this one...I see how to JavaScript the placing of a Form Button on a page, including how to set its location...https://acrobatusers.com/tutorials/js_add_buttons_to_pdf ...but I'm trying to figure out how to automatically place the button over each bullet in a document, for example. How can I find the coordinates (so to speak) of specific text or character strings found within a document, such as using a method like this? https://acrobatusers.com/tutorials/text-matching-regular-expressionsI'm using primarily Adobe Acrobat X Pro, but also Adobe Acrobat DC Pro.
Newbie.Looking to add a calculations tool on my form that will fill various fields.This is an evaluation form that asks multiple questions, and the responses either gives you a best answer, good answer, or wrong answer with a value assigned to each response. The form has a total of 48 Groups. Each group contains either 2 or 3 selections (some sections have just a right or wrong answer). I have named each group the same to allow only 1 selection per group. (i.e. Group1, Group2, etc.). I have assigned a Choice value to each with some questions having more weight than others (values 5,4,3,2,1, or 0). Points would be awarded depending on the question and best-worst answer (worst always being 0). No question will have more than a value of 5 for the best response. Lastly, each question group has an "N/A" block that would void the points from that question if the evaluator deemed it not required.Example (made up): How do you change a tire? Response could be Answer 1 that is a step by step ins
I am almost there. I have Adobe Acrobat DC.I can bring up the Java Console.My file name is test.pdfThe text of about 100 pages is extremely light.I can't figure out which code to put in the box so that it will turn all of my text to bold after hitting CTL + Enter.I am very new at this.Thank You for ANY help or DIRECTION you can provide.
I'd like to write a script that matches specific text in part of the field value but not all of it. Is there a way to script that?The logic would be if the field CONTAINS this specific text, change the text color. If not, keep the text color as black.Here's what I've tried (tried in both validation and format script with no luck):if(event.value >= "(T)") {event.textColor = color.red;}else {event.textColor = color.black;}Any suggestions?
Hi, I am a novice but have enough knowledge to have created several complex engineering calculation forms.Currently I have the following situation and need assistance:Field "volume required" = calculated based on user entry (other fields in the form)Field "depth" = calculated as: "volume required" / ("area" *2.32), taking that number and assigning it a value based on the range it is in (using if...else if)Field "area" = user enteredField "volume" = calculated as: "depth" * "area"I want to add a "plus" and "minus" buttons on either side of the "depth" field which should allow users to increase/decrease the value of the "depth" field in increments of 0.33. I am assuming that once that i s done the "volume" field will update based on the now changed value of "depth".I know how to create the buttons. I cannot seem to be able to come up with the script to get the buttons to manipulate the value of "depth". I created a hidden field which calculates the initial value for the depth and c
Hello Guys, how to skip 2nd and 3rd steps in batch sequence which is "Run commands on" and "Select output location" respectively. Since i added the details of 2nd and 3rd sequences in my script itself. Also one more question, is there any method to run the JavaScript alone without batch sequences? if so how to do that?
Apologies in advance as I have little JavaScript experience. A JavaScript was created by another coworker who also has little JavaScript experience and propagated to a specific file server folder/share location on our domain network. The script forces users to open PDF documents from this specific location and so prevents users from creating copies of what would be otherwise outdated documents (As was previously the issue). This script also auto time-stamps and closes the document after being printed. All of these JavaScript PDF's are accessed by our domain users via a Microsoft Access database (hyperlinks). These hyperlinks link directly to the file server folders where these JavaScript PDF's are located. This has worked without issue for some time but something has changed. The issue is that something has occurred that now prevents the PDF's with this JavaScript from opening. An error now appears (Warning: JavaScript Window - Invalid File Location). I can see the portion of code caus
Looking at applying a currency format to a field in a PDF form. That is, the symbol ($) is displayed at the front and if there are cents then it would be 65% of the font size and superscript.Need to create field in PDF Form and then using WebMerge to generate print-ready files.Can this be done? And if so, How?
I want to have 2 text fields lock but only after a correct validation of proper initials from an individual. I have a script to lock fields and s script to validate. How do I put the two together?Validate:event.rc = true;if (event.value != "" && event.value != "AAAA" && event.value != "BBBB"){ app.alert("The entered value needs to be either 'AAAA' or 'BBBB'!"); event.rc = false;}Lock:var fieldsToLock = ["TimeField309", "TimeField317"];for (var i in fieldsToLock) this.getField(fieldsToLock)How do I put these 2 together for the proper result I'm looking for?
Hi All - first post here on the Adobe forums, hopefully someone cleverer than I can help!I’m designing a PDF form for electronic completion.The client needs a pop up message to appear if particular choices are made from two drop-down menu fields, for arguments sake lets call them Field1 and Field2.I‘ve nearly manged to get this working nicely using a run JAVA script action upon exit/blur from Field2, however I only know how to trigger the pop-up message based on the entry value of Field2 - see an example of the code I have running now below;if (getField"Field2").value=="1") app.alert({ cMsg: "Dialogue message here", cTitle: "Message Window Title Here", nIcon: 3, nType: 0 });However, I don’t know how to write the script to include the condition of Field1, effectively saying ‘if (getField"Field1").value=="1") AND if (getField"Field2").value=="1") THEN run the app alert’ - if that makes sense!Is anyone able to help?Many thanks in advance!
I'm using this working expire code,function Expire(){// Get the current date and timevar rightNow = new Date();// Setup End Datevar rightNow = new Date();var beginDate = new Date("January 11, 2017 06:15:00 AM");var endDate = new Date("January 12, 2018 11:57:00 AM");if (rightNow < beginDate || rightNow > endDate) {app.alert("you are not allowed to view this doc.", 1, 0);this.closeDoc(true)}}Expire();what I'd like to know is can I modify the endDate to expire right now when I click a button. If that can be done can someone let me know how? Thanks for your help.PS: I know all the possible workarounds to defeat the code so please don't reveal them if you reply. I just don't want to educate those unscrupulous people looking for that kind of help.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.