Unlock the power of Acrobat SDK through our community.
Recently active
We have developed in-house software for streamlining our business. Does Adobe provide an API in C# or Angular 7 through which on a click HTML page is automatically converted into PDF file and saved in the desired location?
Hi Guys, Hope you can help. I have a drop down box (Dropdown21) which has multiple employment options in there. Employed, Self Employed, Retired and House Person. I am using a button to run a Javascript, the idea being that if you select Houseperson in the dropdown box it will populate another field (C2_House_Person) with the value 15000. If you select anything else then it will be 0. So far I have the following:- var v1 = (this.getField("Dropdown21").valueAsString);if (this.getField("Dropdown21").value=="a House Person") event.value = "15000";this.getField("C2_House_Person").value = v1
Hi all, I'd like to know if there is a way to script or an existing method to find pages in a document that do not contain a certain word or phrase. I have a document that is 400 pages and each one should contain at least one instance of a specific word or phrase based on user prompt. Ideally the output would be a simple list of page numbers that are missing this word. Thanks in advance for any assistance.
Hi.I have pdf files with lots of markups (rectangles, ovals) and would like to use Javascript to automatically change their fill color to none and line thickness to 2 pt. Can someone help me out with the code?Thanks!
Help please if I need to calculate the gestational age in a certain date (any date)how do I do please ? I have 2 feilds the first "DG" date of conceptionthe second "age" the date at which i want to calcule the gestational age in weeks and days this my script (try67 helped me in this script) but this script is for the today date :var dateFormat = "dd/mm/yyyy"; var startDateString = this.getField("DG").valueAsString; event.value = ""; if (startDateString!="") { var startDate = util.scand(dateFormat, startDateString); if (startDate!=null) { var now = new Date(); var dayInMs = 86400000; var diff = Math.round((now.getTime()-startDate.getTime())/dayInMs); var diffInWeeks = Math.floor(diff/7); var diffInDays = diff-(diffInWeeks*7); event.value = diffInWeeks + " SA " + diffInDays + " jours"; } }please help me
I have a form that is about 200 text fields. Is there a way to use a general onblur / onfocus for all of them? adding the same javascript for all of them is a pain in the .......
I'm currently using Adobe Pro DC. Been trying to use action wizard to batch remove encrpytion and draft watermark on certain documents. Tried; Edit PDF > Encrypt (None) > Remove Watermark > SaveAt Edit PDF it prompts for password and wondering how I can add it to macro to add password automatically. Any suggestions would be helpful? Thanks
There is a tool for "documents will print", I would like to clear all default place holders. is this possible? I found and modified this script and I added in an alert and the default values are not deleted, for ( var i = 0; i < this.numFields; i++) {var fname = this.getNthFieldName(i);var ffield = this.getField(fname);console.println("fname: "+ fname + " - ffield.value: " + ffield.value);if (ffield != null && ffield.value==ffield.defaultValue) {ffield.value = "";}}
Hello, I need your help please, I need to calculate pregnancy age in weeks and days. I have a feild called DG (date de début de grossesse)and another feild called TA (terme actuel)I want to have the résultat in weeks and days in the feild TA : nombre of weeks followed by "SA" and nombre of days folowed by "jours"can you help me pleasethanks anyway
Hey all. I'm preparing a new form for my office using Adobe Acrobat DC, and I'm trying to get the date to auto-populate in a form field. Following some instructions online, I set the field to be read-only, so users can't mess with it, and set it to calculate with the following custom calculation script:-------------------------------var today = new Date();event.value = util.printd("m/d/yy", today);------------------------------This does, indeed, pull up the current date, but not dynamically: if I enter the script today, 11/25/19, it pulls that up, but if I open the document tomorrow, it'll still say 11/25/19, unless I re-enter the script, at which point it updates. Thanks, in advance, for your help.
Help pleaseI'm working (under Acrobat X)I created a date feild called : "DG"and another feild called "TP"I have to calculate between different dates.I would like "TP = DG + 39 weeks" in the form dd/mm/yyyy but i need so that the day stays the same.exemple if DG : is 01/08/2019 the TP must be 01/05/2020 (in another way the month + 9 (month = 28 jours). var sDate = this.getField("StartDate").value; // get date string var nWeeks = 39; // get or set the weeks to add var oDate = util.scand("dd/mm/yyyy", sDate); // convert to object oDate.setDate(oDate.getDate() + (7 * nWeeks) ); // add 7 days * number of weeks to date event.value = util.printd("dd/mm/yyyy", oDate); // format resultHelp me please
I have a 2 page sales contract that needs to be made read only before being sent to a customer BUT there are a handful of fields that the customer might need to update, so these need to stay open. I've seen various answers on here but can't find exactly what I need. I have a code in use on another document, but that makes the whole doc read only and you can't reverse it the action once the button has been pushed. For info, I can't change the field names on my document as they are actually merge fields, but the fields I want to stay open I can add a prefix, so is there a code that will make all fields read only apart from the ones with a prefix of OPEN? I've also seen on here that you can add a password to this action so if the salesperson hits the 'make read only' button early, he can reverse it by inputting a simple '1234' for example. He also has to input this to make the doc read only in the first place. Thank you!
I'm in Acrobat Pro I have a 50 plus page document. What I want to do is create buttons that will print certain forms within the document. My question is not with creating the button, but with the label of the button - can you have a multiline button label. I'd like the label to be, Finalization Documents JV-364 and VS-44, just like the image below. Would this be possible? Finalization DocumentsJV-364 and VS-44
Hello, I have a official PDF file that I need to fill in with a serial number and a date.So made the pdf to a form, and put in the 2 fields, and manually save it to "date_serialNumber_fixedtext.pdf".Now the problem is that this take so much time to do it manually because I have about 200 rows to do. Is it possible to fill the data automatic from the excel file and save the pdf individually per excel row? Second question, is it possible to do the automation work also in acrobat DC.
I'm looking to develop a Javascript function relating to this thread https://community.adobe.com/t5/acrobat/acrobat-javascript-extracting-footnotes-technique/m-p/10753722) and I've spent a while trying to figure out how all the tooling works inside Acrobat. When I click on the Javascript tool I'm presented with a toolbar with options such as Debug | Debugger | Document Javascripts etc. When I click on Document Javascripts I'm able to add one e.g. function test() { return 1+1 }and the only way I can figure out how to run it is: Close the "Document Javascripts" Window Click on "Debugger" on the toolbarSelect the script "test"Change the view to "Console" belowIn the console type in "test()" so that it executesHit ctrl+enter This seems like an excessive amount of steps that must be repeated to develop a script. Is there a better way? Further, I can't seem to see anywhere where I can save "global" scripts that I can re-use on multiple PDFs. Is this pos
Hello,I'm trying to put in a custom calculation script to solve the error "the value entered does not match the format of the field." I've followed instructions on prior posts for those who've gotten this error and but am now getting an error in the script "SyntaxError: missing ; before statement 4: at line 5 and i can't figure out what needs to be done to get past this error. Can someone please help me get past this? Here is my script: var numerator = (+getField("UnitPriceRow1").value) - (+getField("CostRow1").value);var denominator = +getField("UnitPriceRow1").value;if (denominator !== 0) {event.value = (numerator / denominator) x 100;} else {event.value = "";}
Want a script to do the following- Search all pages in a PDF document -- Every page should have a certain word or phrase based on user prompt in the Adobe Actions- If a page does not have this word or phrase, then print a list of pages that does not have this word or phrase. - want script to this step.- this code will be used from Adobe Action Wizard - I have got script to search and mark the word or phrase only want help for doing the last thing, i.e to show the list of pages which doesnot contain the word/phrase searched for. //HIGHLIGHTING COLORvar colHilite = color.yellow;var oDoc = event.target;var aAnnts = oDoc.getAnnots({sortBy:"Author"});for(var i=0;i<aAnnts.length;i++){if(aAnnts[i].type == "Redact"){aAnnts[i].type = "Highlight";aAnnts[i].strokeColor = colHilite;}}
When trying to call Acrobat API "ImportAnXFDF" in Acrobat Pro 2017, an exception error "Remote procedure call failed" occurred."ImportAnXFDF" is described at "JavaScript for Acrobat API Reference (May 2015)" included in the "Acrobat DC SDK Documentation", so we can use it. Can Acrobat API "ImportAnXFDF" be used in Acrobat Pro 2017?If so, please tell us how to call it.If we cannot use it, please tell us the alternative.Acrobat Pro 2017 version is 17.0.11.30152. In Acrobat XI Pro, no exception error occurred.
I have a large project I have been working on over the past 6 months which is currently stuck with one major bottleneck: combining a ton of pdf files which are sorted into folders. Currently after testing a wide variety of tools and libraries our best option in terms of performance and output size is via "Combine Files in Acrobat" (all other options either use too many resources, result in an insane many gig file size that cannot be used by our other process, or take so long that it is not feasible to use). The main issue we have using this method is that it must be done manually once per folder. It seems like this task cannot be completed via the Action Wizard for some reason so I was wondering if there is any other means to automate this process ie via scripts, sdk, macros, etc or even if it is possible to somehow rip the windows action from the right click option somehow so I can pull it into something like python and call it per folder. Any help on this is much appre
Let me set the stage:text555 and text666 are sums of other fields.text130.8 is the product percentage of text666/text555 (in simplified field notation). The problem:When all values are '0' i get the message:the value entered does not match the format of the field 130.8I know that this means that i need a string for what to do when the value is '0', but i have been trying for 4 days to write and research one that will work and i CANNOT get it and I'm so frustrated! Can anyone help me? lol
Having an issue when creating a dynamic stamp. I am entering in a custom javascript and select that when creating my form on the dynamic stamp. When I hit okay, it automatically sets it back to "Field not calculated" instead of keeping my javascript. I even made an error at first and it called that out, I corrected it and it seemingly won't let me have that script be entered. here is what I am entering var cAsk = "Enter POI Number" ;var cTitle = "POI Number: ";if(event.source.forReal && (event.source.stampName == "#mH2CRwgU97QYytFkFHMANC")){ var cMsg = app.response(cAsk, cTitle); event.value = cMsg; event.source.source.info.exhibit = cMsg;}
How can I write a JavaScript utilizing the setAction method on 30 sets of fields with the same numeric naming convention?I often utilize a for loop to match fieldnames and set Acrobat JS methods, but I'd love to learn how to utilize a find/change regex method in this manner.I don't know if it's possible, but I'd like to match the "hover_\d+" field and run one setAction to show/hide fields, etc.In other words, the digit of whatever field hover is, would be the same as the rest of the fields 1-30.I'd love to be able to write it something like: "hover_(\d+)" ==> edit$1, copy$1, trash$1, etc. where I'm backreferencing whatever digit the boolean logic is finding in the name.match() code.I could write this out 30 times, easy—but am wondering if there's a quicker, cleaner way of doing so.Perhaps an array with just 1-30 and reference the array in the display script?Perhaps instead of focusing on the "hover field", focus on the numbers whereas the regex would be: /.+1/ - /.+30/; or som
Hi, For PDFs that have been converted from Word files, I'm investigating how I can extract footnotes. One approach I'd like to validate the possibility of is writing a search that looks for footnotes in the text (understanding that "text" is not a straightfoward concept in a PDF). I've been looking at:ADOBE PDF LIBRARY SDKAcrobat DC SDKfor scripting options. I'm wondering if I could first do a search for a number - e.g. 1 and then either determine the rectangle shape and relative offset to determine if it's a footnote reference; or if text properties are available, the superscript property (if there is one). If it finds a footnote reference, follow on to find the actual footnote content at the bottom of the page and extract that. Thanks
Hello, I am new to AEM forms and sites.My requirment is that read xml from a folder and copy the same file into CRX at locaiton /content/xml-files.Hence i followed below steps1.created a workflow which can read the file and copy to destionation folder. in this workflow, i have used process task between start and end.2. I gave my java class name under process task. and same attached here named WatchFolderTestWW.java3. I have configured the watched folder from AEM->tools->forms->watched folder configuraiton4. in this confiuration, i used same workflow which i have created for execution.5. but able to execute the java Test Case : 1. copy one Address.xml into WatchFolderTestWW/input folder 2. document will go to failure folder with error. package wkint.core;import com.adobe.aemfd.docmanager.Document;import com.adobe.aemfd.watchfolder.service.api.ContentProcessor;import com.adobe.aemfd.watchfolder.service.api.ProcessorContext;import com.adobe.aemf
Hello Adobe Geniuses! I have a group of radio buttons:Button 1Button 2Button 3The group's name is radioButtons I have a form field:myFormField If a user chooses Button 1, I would like the text in myFormField to change to "Button 1"If a user chooses Button 2, I would like the text in myFormField to change to "Button 2"If a user chooses Button 3, I would like the text in myFormField to change to "Button 3" How would I do that? Scott
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.