Unlock the power of Acrobat SDK through our community.
Recently active
Good morning.I am creating a program that automatically signs a PDF, but at the moment of signing I sign with a default image:I would like to know some way to upload the image that I want.
I'm still working on the same doc a few years later. What I would like to do now is to make a job sketch of a fence layout with the drawing tools in Acrobat. Most of the doc, up to this point, has been created around using the following script. Here's just a few lines, but you guy will know what I'm doing. So, take a look at the following: try {otherDoc.getField("DrAA1").value = myDoc.getField("DrAA1").value } catch(e) {}Is it possible or would anyone know of a way of making the drawing in one myDoc the click "Generate" button and the fields and the drawing would fill the otherDoc. Any solutions or suggestions would be appreciated.
I have been trying to delete a particular page using the following script provided by Acrobat JS aficionado Karl Heinz Kremer. This code is in the mouse up event of a button. The text "HW2019-02" is searchable on the page (not an image and not a field value).Unfortunately, I just cannot get it to work. Does anyone have a fix for this?for (var p=this.numPages-1; p>=0; p--) { for (var n=0; n<this.getPageNumWords(p); n++) { if (this.getPageNthWord(p, n) == "HW2019-02") { this.deletePages(p); break; } }}Thank you in advance
Dear Javascript experts,I'm trying to do this but it is very wrong.If 1 field gets lower in textSize the other field has to adjust the same textSize automatically.var pricefield = this.getField("01_pricefield.pricefield").textSize;var pricefieldxtr = this.getField("01_pricefield.extra.pricefield").textSize;if (pricefield < pricefieldxtr) {pricefieldxtr = pricefield;} else {}Already thanks for the help!Greetings
I am converting a HTML file into PDF using evoPDF library in a c# application. This PDF form has multiple textboxes and my requirement is to track keypress event or blur event for these textboxes. I am not able to find syntax on how to write these event handling in Adobe JavaScript. Can someone guide me with these. Your help will be highly appreciated.
Hello,Recently I've got a lot of complaints about Adobe acrobat plugin unload error in event logs on application closure which not happened before.Error: 2/1/2019 10:05:12 AM Information Windows Error Reporting 1001 Fault bucket , type 0Event Name: APPCRASHResponse: Not availableCab Id: 0Problem signature:P1: Acrobat.exeP2: 19.10.20069.49826P3: 5c1a8755P4: MyPluginAcrobat.api_unloadedP5: 3.4.0.1P6: 5bb35795P7: c00001a5P8: 00711dc0P9: P10: Attached files:\\?\C:\Users\userName\AppData\Local\Microsoft\Windows\INetCache\Content.Outlook\7SLVAM2F\Document.pdf\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER974E.tmp.dmp\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9AC9.tmp.WERInternalMetadata.xml\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9E55.tmp.xml\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9E62.tmp.csv\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9F3E.tmp.txt\\?\C:\Users\dlavange\AppData\Local\Temp\WERA57B.tmp.appcompat.txt\\?\C:\ProgramData\Microsoft\Windows\WER\Rep
Hi JavaScript experts.I need to use the previous value of "A" in a function but my brain isn't enought logical to find an easy way by itself.function myFunction(A) { // 1. blablabla, use A in one or several lines // 2. here I need to keep the value of A for the next time the function will be called}Thank you for your help.
Hi.I need some help in making the right JavaScript for my Price Group checkboxes. I will try to explain.First of all, my Price Group 1 checkbox is always checked (YES) and locked in normal setup.What I want help with is whenPrice Group 6 is checked (YES), Price Group 2, 3, 4 and 5 must be autofilled checked (YES)Price Group 5 is checked (YES), Price Group 2, 3 and 4 must be autofilled checked (YES) - Not Price Group 6Price Group 4 is checked (YES), Price Group 2 and 3 must be autofilled checked (YES) - Not Price Group 5 and 6Price Group 3 is checked (YES), Price Group 2 must be autofilled checked (YES) - Not Price Group 4, 5 and 6Price Group 2 does not execute any JavaScript in this matterAnd the other way aroundIf Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 2 is unchecked (OFF), Price Group 3, 4, 5 and 6 must be unchecked (OFF)If Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 3 is unchecked (OFF), Price Group 4, 5 and 6 must be unchecked (OFF), but P
I have multiple date fields, ie: Date.0 Date.1 … Date.5 Date.6These are formatted mm/dd/yyyyIn the custom validation script, after Date.0, I use the following to get the current number of the date field: var str = event.target.name; var res = str.charAt(str.length-1);I then use this.getField("0." + (res-1)).value to compare against event.value.What want to do is:Compare the two dates to determine if the date just entered pre-dates the preceding date.And, if it does, serve up: app.alert("The date you entered is invalid. Please enter a date that does not pre-date the previous entry date." ,0);I would very much appreciate help in getting a working script.Thank you
If anyone can help resolve a real headache in writing a javascript that will round correctly, I would be so very much appreciative! I am very new at writing Javascript, but I am getting better and more creative all of the time. Right now, I am absolutely stumped. I'm designing form, and I've run into an issue with writing a javascript with validation. Here is the situation:1. I have three columns. The first column is a number which is input by the person filling out the form. As an example they might enter $75,480 into column one.Column 2 and column 3 are numbers to be entered by the person filling out the form.2. Column 2: Since column 2 is a number input by the person filling out the form, I wrote a validation script as follows:var a = this.getField("Q5").value;if (event.value > a)event.value="";else event.value;Q5 is a hidden field that I wrote that is a value based on $75,480 x 0.01 = $754.80.I wrote the validation so the num
Good evening, I have created a script to spell check a very large list of medications and cancers for our company.I have created a loop to make all the fields lowercase, before spell checking the document.... However, the fields are being made to lowercase, and then I am prompted the error: "InvalidSetError: Set not possible, invalid or unknown.Field.value:22:Batch undefined:Exec"Here is my code for the loops:for (i = 0; i < this.numFields; i++) {var AllFields = this.getField(this.getNthFieldName(i));AllFields.value = AllFields.valueAsString.toLowerCase();}spell.addWord(items); spell.check();for (i = 0; i < this.numFields; i++) {var AllFields = this.getField(this.getNthFieldName(i));AllFields.value = AllFields.valueAsString.toUpperCase();}Any help would be greatly appreciated!
I have a self-made PDF that has 8 checkboxes that represent 8 other pdf forms. What I want to happen is when I click specific checkboxes and hit submit it combines and open the files I clicked the checkbox for. After combination I will run a Javascript that completes all the forms. How can I have adobe perform this function?
Hi,I'm trying to find a sample of a plug in that would show a dialog on MAC. I see a sample with wxWidget but that is an overkill for me - I need very simple dialog and simple functionality behind it. I guess that that's an easy one, just don't know how to start.Paolo
Hi,We are facing an issue with the Make accessible feature in the Adobe. It's not covering all aspects which lead to manual intervention.We are facing issues of adding new tags manually or make the entire document accessible manually. We wanted to create a plugin which will fix or create accessible tags based upon the custom rule defined.Kindly let us know the best approach to solve this problem.
hi,how to call an action from action list in the Action Wizard tool using JavaScript?i need to run the action list automatically instead of need to click manually to run the action.i really appreciated the help.thank you
I have 200+ documents. I need to paste (insert) on the page (no matter where, but preferably in the upper right corner) the document file name. How can I do that?Thank you.
Hello,I am trying to set up a form that will display the word "standard" in a field next to a paired checkbox if checked but otherwise keep the value of what the user types.Right now, I have this in the custom calculation script for the text field called upper1:var upper1= this.getField("upper1");if (this.getField("Check1").value != "Off")upper1.value = "Standard"elseupper1.display = display.visibleIs there a different way that doesn't require overriding the value of upper1? I'd like to not overwrite the user-inputted value if possible and just have it selectively display the user value or not. User value could be blank if they don't want it.Alternatively, I'd like to set it to display the export value of the checkbox when checked and the user-inputted value if unchecked.
I have a form I am making that I have 3 fields that default value is N/AI am trying to make a 4th field to add these 3 fields but the problem is if the field is not displaying a value then it the calculation script does not work. It only works if all 3 fields have a numerical value.I have to have the field to display N/A if there is not a numerical value in it.So my thoughts have been for the 4th field to convert the N/A value to 0 but how do I use the value if it is not N/A. I think I am over complicating it in my head and that is why I can't come up with a solution.My original script:var nDownPayment = this.getField("DEAL_PURCHASE_TRADE_TOTALNET1").value + this.getField("DEAL_PURCHASE_CASHDOWN").value + this.getField("DEAL_PURCHASE_REBATE").value;if( nDownPayment > 0.00) event.value = this.getField("DEAL_PURCHASE_TRADE_TOTALNET1").value + this.getField("DEAL_PURCHASE_CASHDOWN").value + this.getField("DEAL_PURCHASE_REBATE").value;else event.value = 0.00but this script doesn't
Please help - trying to create action button on PDF page - need to export form data to XML not FDFexportAsXML(); - nothing happens ...exportAsFDF(); - exports OK but cannot import to my Excel XML map/scheme
Hello,I have several "survey" forms I created containing grouped radio button selections, I'd like to have a command or radio button that will export the form content to xml. I know I can accomplish this via the "more form options" in Acrobat Pro XI" but I need to have this happen in Acrobat Reader. In short I want to insert either a "export" radio button or an "export" command button that will execute JavaScript to export the selected radio buttons to an xml output.Thanks for your help.Adriano
I have a simple addition calculation script to toal the RowTotal:var proRatedPerDiem = this.getField("travel_prorated_perdiem1").value;var lodging = this.getField("travel_lodging1").value;var total = proRatedPerDiem + lodging ;event.value = +total;The "proRatedPerDiem" field is also a calculated field and when that changes, about 50% of the time, the RowTotal either does not change, or it comes up with some old value . I have run the javascript debugger and confirmed the script always runs, it just often doesn't return the correct value.This is my first time working in Adobe. Is there some weird caching or something?
Hi All,I don't work with Acrobat very much other than an occasional PDF change. So, I did some digging and discovered that like Photoshop, Acrobat can be automated. And I tried to do this myself, but I have no idea what I am doing and thought if I come to the community, they could help me. My fingers are crossed that someone can assist with this.Okay, so here is the scoop. I have pdfs that are scans of documents. I did a basic test to confirm that Acrobat could do what I need which is convert these PDFs into Excel spreadsheets. It can, but there is a catch. I have to delete all the pages of the pdf except for one, and then convert it. I tried just doing the whole PDF, but it would combine cells and mess up the data. My idea was to create an automation that would:Open the PDF DocumentExtract the first page Save it as a new documentDelete the first pageContinue for all pagesTake extracted page and save as an excel spreadsheetThen, I will take those sheets and either put all the data toge
HI, I have a large pdf editable form with lots of dropboxes and javascript. It is still a work in progress which means I want to do a bit, save it and carry on. How can I do this and keep the javascript / dropdown boxes editable??Thanks
Anyone know why Acrobat's update (2019.010.20019) broke my JS? Most of the code dates back to 9/X and have been updated for privilege and security changes (10.1.1) but now the global vars all are saved but then a couple of vars aren't retrieved from GlobData and those vars default to default settings. Anyone run into a similar experience? The only change was updating to 20019 from 20069.
I have a top/cover page with some basic demographic fields whose values are going to be repeated as read-only on subsequent pages.One of the fields is a radio button with the choices LEFT or RIGHT.The subsequent pages are all unique, hidden templates that are spawned on demand via this.getTemplate("Page2").spawn(1,false); this.getTemplate("Page3").spawn(2,false); this.getTemplate("Page4").spawn(3,false);The text fields and date fields that are on the top/cover page populate into their read-only counterparts on the tops of the new pages.And, the VALUE of the radio-button successfully assigns to it's read-only counterparts (programmatically confirmed it accepted the choice value), but the radio button is NOT DISPLAYING the tick mark. This was not the behavior before I turned the pages into templates. When I was developing the pages the code worked like a champ. And, even now if i h
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.