Unlock the power of Acrobat SDK through our community.
Recente
Hello, I've created a PDF formular file with an input field and when the person enter the price then other fields are going to be calculated using the entered number. Everything is working in my Acrobat DC PRO but when I send the file to another person without paid adobe subscription, then the person can enter the number but the brutto and netto fields are not calculating / updating. Is this normal or am I doing something wrong? Or only people with DC PRO become the calculation? Best wishes and thanks in advance
I have form which can be filled out manually or electronically. One section has a comment box with multiple lines "printed" on the page. Since I can't modify line spacing to line up with the printed lines, I would like to have a validation script to fillColor with white when an entry is made in the field (this will cover up the lines) or with no fillColor if there is no entry (which will leave the lines visible). Or it could be phrased the other way around. But I don't know how to write the script to describe a "no color" situation. I found something similar on another post between two colors, but not with no color. , but I don't know how to fix it. .if (event.value == "") event.trarget.fillColor = color.red; //how do i say no color?else event.target.fillColor = color.white; TIA - Michelle
In theory, what I'm trying to do is pretty easy. But I've reached my breaking point trying to figure it out on my own. This is for a project at work that I need to figure out and have ready ASAP. Any help would be extremely appreciated. Every week I am required to visit a construction site and take 35 photos from specific locations for the duration of the project. The locations from where the photos are taken do not change from week to week. Once the photos are taken they are required to be compiled into an interactive PDF that shows a map of the site with each location of where the photograph was taken designated with an icon. That icon should then be clickable to show the image that was taken from that location. I have only been tasked with this for two weeks and both times I've been able to meet their requirements but it's sloppy and labor intensive each time. The first week I simply created a single PDF of the map and all 35 images, each on their own page. Then I added bu
Help please if I need to calculate the difference between two dates in weeks and days.how do I do please ? I have 3 feilds the first "DG", the second "date", the third "age" I can make the diffrenece in weeks or days but not bothplease help meevent.value = 0;var strStart = this.getField("dob").value;var strEnd = this.getField("date").value;if(strStart.length & strEnd.length) {var Start1 = util.scand("dd/mm/yyyy",strStart);var End1 = util.scand("dd/mm/yyyy",strEnd);var diff = End1.getTime() - Start1.getTime();var oneDay = 7 * 24 * 60 * 60 * 1000;var days = Math.floor(diff/oneDay);event.value = days;}
Hope someone can help, I'm new at creating forms and need help with fill and sign. I have created a form for customers to fill in and then sign using a stylus pen. Is there any way in which the form can be set to auto bring up the fill & sign box when the field is selected on the form and automatically set the signature within the field. thanks
I have an 800+ page pdf file with 21 bookmarks. I want to print the whole thing, but have some indicator where the bookmarks begin and end so that I can insert tabs. In this particular case there are no page numbers to go by, and going page by page is very tedious. Therefore, I want to send the whole thing to the copier in one shot but be able to separate the bookmarks. This can be done through slip sheets, offsetting (collating), or even breaking the document up into individual sections. While I've never worked with JavaScript at all, let alone within Adobe - this appears to be my best option. Does anyone have any idea?
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Você já é cadastrado? Entrar
Ainda não tem uma conta? Crie uma conta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.