Unlock the power of Acrobat SDK through our community.
Recently active
Just like the title suggests, I want to create a custom button. Once the user clicks on the button, they'll have the choice to enter their own password (or I can set one in the code.) Then, when someone tries to open the document, they'll be asked to enter the password they either picked or that I set in the code. If the password is wrong, no access to the PDF will be granted. Do you think this can be done?
We have tried a variety of methods and javascript and absolutely nothing will work. Ideas and help are greatly appreciated!Here are two codes we tried with no luck:var A = this.getfield("Group16").value;var Y = this.getfield("Text21").value;var Z = this.getfield("Text22").value;if (A=="Choice1")document.getElementById("Text27").value = Y;else document.getElementById("Text27").value = Z;document.getElementById("Text27").value=this.getElementById("Group16").value;#2:var S = this.getfield("Text21").value;var T = this.getfield("Text26").value;{if(Group16.value=="Choice1"){var S=this.getfield("Text21")}else{var S=this.getfield("Text26")}}
Hey there, I have a given date which is a form field "Case.DATE(Date dd.MM.yyyy)", and need to check, if it's before or after the 14.09.2022.Based on that, another form field should just be filled in with an "x".Is that possible with a util function?Also, is there a way to automatically subtract 3 days from that given date?Thousand thanks in Advance!
Can Acrobat/Reader be minimized from within a plugin?
Hello everybody. Is there any way to align a line of a text field horizontally, and then, when you press enter, the two lines of text are both horizontally aligned as well? please check this image, to make it more clear. Maybe some javascript code to solve it? thanks!
I have a radial section with 4 options. They're connected so that only 1 option is allowed. I'm looking to have each option tie to fields in the form so that certain fields are hidden or showing if a specific radial option is selected. In this picture, in the Reason area, there are 4 radials. If we select "New Drawing", I am trying to have the lower half of the screen to hide the 2 drop downs listed as well as the fields undert location, quantity, and tag #. If we select "New Revision", I want those hidden fields to show. How can I achieve this?
Hello,I need to create a link to the selected text so that when I click on it a certain page opens in the browser.I created a PDAnnot objectPDAnnot annot = PDPageCreateAnnot (page, ASAtomFromString ("Link"), & fr);Now, as I understand it, I need to add an action to this object - PDAction. But I don’t know how to do this. There is no such example in the Acrobat DC SDK in Documentation and in projects.Help me, please.
I know I have seen one, and now that I am at a point where I need to do this, I can't find it.
I've got a script to set a date field (LastDayWorked) as one day before another date field (TermDate) but when I clear out the original TermDate the LastDayWorked auto defaults to the day before the current date. I'm not sure how to adjust the script so that if the TermDate field is blank then so is the LastDayWorked as I only want a date populating there if there is a TermDate entered. Any suggestions on how to clear this field? I've currently got: var numDaysToAdd = -1 ;var fromDate = util.scand("yyyy-mm-dd", this.getField("TermDate").value) ;var toDate = fromDate ;toDate.setDate(fromDate.getDate() + numDaysToAdd) ;event.value = util.printd("yyyy-mm-dd", toDate) ; Greatly appreciate any/all insight! Thank you!
Hi Forum Whizzes,This is such a trivial little thing, but it is really bothering me that I can't make it work.I have a form which contains many input fields for Name, Address, Website, Email, Phone Number, etc. One of the pieces of data I would like the user to supply is the name of their Instagram account ie: @AcrobatJavascriptDunce (Which should probably be mine...)Rather than have external titles for the fields, the style on the form is that the text box contains default text, which tells the user what they need to put in the box. So the default text for the Website field is "Website", obviously, and the default text is displayed in red. I have it set up so that when the user clicks on that field, the default text disappears, and the cursor is in the box ready to type, and when they DO type, the text is now displayed in black. It all works very nicely for my other fields, but for the Instagram field, I would like the action to be subtly different.When the user clicks on the default
StartProcess doesn't run in protected mode, but what if clients are reluctant to turn protected mode off? Are there any settings where I can specify that my plugin should be allowed to call StartProcess, even if protected mode is on? CheersPete
I am encountering an issue with character encoding and equations created in MS word. I have googled this to death and wanted to see if someone has a solution for us. The issue seems to be the font Cambia Math, but I can't figure out how to resolve it. In the past we converted equations to images and used alt text for the reader, but it is inefficient. I am running Windows 10 and the continuous release version of Acrobat Pro.ei
Hi all, I am creating a PDF-Form as a Service Sheet. But now iam stuck in a Middel of thing.i have following Fields: A, B , CField A (Start Time) is a Time Field in Format HH:MMField B (End Time) is a Time Field in Format HH:MMField C is a Variabel Integer Field (Text Field) I would like to Program this in Javascript to do the Follwing:When i enter a Time in Field A in Format HH:MM and a Number in Field C. The Output in Field B will be the Sum of Time in Field A und The Number from Field C in HH:MM format. Exampel:Field A have the Value 14:00.Field C have the Value 2Field B should give the Value 16:00 I tried some Javascripting but without successIam using Adobe Acrobat Pro 17.I would be very Thankfull for your help.
I keep getting this error everytime I try to type in a newly opened PDF. I have tried several times to follow the instructions in the "correct answer" post, and it does not correct the issue. Any other suggestions? Using Windows 10.
After Adobe "help" chat basically told me they won't help and to go elsewhere AND exhausting all community suggestions that I tried. I had a weird idea that worked. After removing Adobe and removing every Adobe related file I could find...I reinstalled....AGAIN...but this time I told it to load as the TRIAL version which installed and asked if I had a code, I put it in and....NO ERROR! Everything worked as it did before the code first showed up. Of course I lost preferences but the programs work again.
encountering a problem while automating PDF form filling and attempting to open the print dialog in Adobe Acrobat using Python. Despite ensuring the correct installation of Adobe Acrobat and validating the code, we encountered difficulties accessing the PrintWithDialog method. However, unable to resolve the issue with the PrintWithDialog method and encountered an AttributeError when attempting to access it.
Is there anything special that needs to be done to post to the Windows Applicationevent log? Using some boilerplate code that doesn't get any error, but not seeing anything in the log.I had to set up the policy.txt file to allow file access and to run an external application, but didn't see anything in the docs about event log access.
Hi all. I have created a digital form for use in the iPad where myself and users can put a signed signature in the document. I have created a reset button for the form, it adds the signatures option to reset but will not reset the signatures and they remain. I have tried JS from another post and added JS to another button to test but still does not delete the signatures. Is this possible by Java Scripts ?
Is it possible to create an if/then statement where if B4 = B3+1 than display the first number and the last number with a dash in between and if not then put a dash after the number in the cell. Result I am looking for based on the below would be: 64, 114-118, 282-284, 288-290. Any help is greatly appreciated. Example:Cell B3 is 64, Cell B4 is 114 and so on.MAP 64114115116117118282283284288289290
HiI have no JS knowledge but tried this out by reading examples online + using chatgpti have a very crude JS. It is doing what i was trying to achieve, that is, to redact header and footer of all PDF i have selected. In acrobat, i created an Action, select all the files i want to redact. But when i run this script, it keeps showing this JS script and i have to keep clicking ok to run it + it keeps prompting me to "Save as" the file as PDFname_redacted.pdf. Can i seek some pointer how can i tune the script such that when i run it, i just redact the PDF i have selected without the need to keep clicking anything ? Thank you/* My Script */var qd = [[39, 813, 557, 813, 39, 757, 557, 757]]; // Quad coordinatesvar qd1 = [[38,88,559,88,38,42,559,42]]; // Quad coordinatesvar numPages = this.numPages; // Total number of pages in the PDFfor (var pgNum = 0; pgNum < numPages; pgNum++) {this.addAnnot({type: "Redact",page: pgNum,quads: qd,overlayText: "Deleted",alignment: 1, // Center alignme
I am trying to auto populate the week ending date, which is Sunday, based on the weeks work date that my tech did the work. I am new to forms and not a script wizard. Any help would be greatly appreciated.
This is what i have this far. Field Names:1 - Clock In, 2 - Lunchout, 3 - Lunchin, 4 - Clock outIf you use whole hours such as 08:00, 12:00, 13:00, 17:00 - works greatbut if you do this 08:00, 12:30, 13:00, 17:00 or 08:00, 12:00, 13:30, 17:00 - error calculating. What am I missing!!! I have been workign on this hours and cant seen to fix it. Any help would be greatly appriciated.------------------------------------------------------------------------------------------var start = this.getField("1").value; var finish = this.getField("4").value; if (start=="" || finish=="") event.value = ""; else { var lunchout = this.getField("2").value; var lunchin = this.getField("3").value; var startArr = start.split(":"); var finishArr = finish.split(":"); var hourWDiff = Math.abs(finishArr[0] - startArr[0]); var minWDiff = (Math
I am working on a PDF form and am stuck on one of my calculations. There are two fields "Desired Start Date", which is a date entered by the user. The "Desired End Date" is calculated to be one year from date entered by user. I have that figured out-- however, before the user enters a date, I would like that field to remain empty. Currently it fills in with 01/00/000. How can I get that field to not calculate unless a date is entered by the user? So far, I've tried this but can't get the field to remain blank://if field “Desired Start Date” is empty, leave “to” field blankvar myStartDate = new Date(this.getField("Desired Effective Date").value);if (((myStartDate == 0) && (getField("myStartDate").valueAsString === "")) { event.value = "";//if field “Desired Start Date” has a date entered, use the date to calculate one year from date entered.}else {this.getField("to").value = util.printd("mm/dd/yyyy", new Date(myStartDate.getFullYear()+1,myStartDate.getMonth(),myStartDate.getDate
We have developed plugins for Acrobat and Reader and are noticing the new UI experience being rolled out gradually in Acrobat. It appears the latest release does include some support for third party plugins, however currently the user would have to click 3 times to access the plugin menu before every action. Is there any information available on plans for third party plugin support in the new UI experience? For example, will it be possible to make third party plugin more accessible, for example in a toolbar rather than always having to go through the menu. We would like to understand what is coming before it shows up on client desktops. Thanks.
Is there any problem with using Visual Studio Professional 2017 to develop C++ plug-ins for Adobe Acrobat?
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.