Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
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.
If anyone can offer advice on how to write javascript to return a 0 if a number is less than zero I would greatly appreciate it. I can't seem to figure this out. Here is the scenario: I'm trying to get field L144 to return a positive number or a zero. I'm looking at field L26 to make this determination. I was thinking something along the lines:var theField = event.value ("L26");var theValue = theField.value;if (+theValue > 0) { event.value (L144").value = +theValue;}else { event.value ("L144").value = "0"; }Thank you in advance for any help with this!
I need help with this rounding:var v3 = (this.getField("valor_for").value-10)/2;event.value = Math.floor(v3);I need the value of the operation always be rounded downthanks
Hello. I have set up my form to calculate 1 point for each checkbox selected. I have a text box with a the calculate operation as sum and I picked all the check boxes that need to be counted as a point when selected. Works perfectly when tested in Acrobat but, when I send for signature, it no longer calculates the total in my text box. I have no idea why it stops calculating when it goes through Adobe Sign. Any insight on this?
Would someone be able to help me write a java script for the following:I have a form that has two columns:1st column is Mealswhere they input the $ Amount2nd column is a dropdown menu where they select one of the following.B - has a maximum of $10.00L - has a maximum of $15.00D - has a maximum of $25.00What I would like the script to do…if possible.Under the 1st Column when they fill in the $ amount and then select from the dropdown menu (B, L or D) if the dollar amount exceeds the maximum it will automatically change the amount in the 1st column (Meals $ Amount) to the maximum amount.
Hi,I have a fillable form PDF with buttons at the bottom of certain page that add a duplicate blank form page (giving the user more room to add information). The template page has both text fields and check boxes.When using the button, the additional page is added fine, but the check boxes on the first page are all cleared when they shouldn't be. Any thoughts as to why this might be happening? This is the Javascript code I am using.var expTplt = getTemplate("TemplatePage"); expTplt.spawn({nPage: pageNum + 1, bRename: true, bOverlay: false});Thanks!
I have a drop down field in a PDF form. When a user selects from the drop down, a popup window appears asking additional questions and those answers are inputted into another field. If they click cancel another window pops up asking if they're sure to cancel. If they click the YES button, I want the drop down field to revert back to the default selection.I'm running two functions. One is in the drop down's custom validation window called (fSystemRequest) and the other is called (fExitPortalSelect) that is running inside the (fSystemRequest) function. So if they select YES or try to "X" out of the window, the (fExitPortalSelect) function is ran. Here's the (fExitPortalFunction) code I have:function fExitPortalSelect() { var vQuitPortalSelect = app.alert("Are you sure you want to quit?\n\nYou will not be able to gain access to the network until you answer these questions.\n\nClick 'Yes' to quit or 'No' to continue filling in the infor
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.