Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I have used the following code in a pdf document. event.value = ( this.getField("Rent").value / this.getField("Month").value ) * this.getField("Days").value. I have formatted the field for two decimal places. When I total several of these calculations in a later field it is sometimes off by .01. While the field is rounding the number, it is using the actual number with many places after the decimal point in adding multiple fields together.
Hello,I am building a single form that I hope to make multi-purpose using different views.The first view/function is an internal facing document that a technician will populate much of the information. This will ultimately end up with a sales rep, who can then click a button and create a customer facing document with much of the information retained and a lot of it hidden.I have almost everything dialed in and I am stuck on maintaining the data initially entered by technician into the 2nd customer view. The fields between the 2 different views are largely the same, but the positioning within the document changes once switched over the to customer view.What I want to accomplish is having duplicated or linked text fields that once the tech enters it the first time will mirror into the 2nd customer field view (which would be hidden at the time of the tech completing the form).Best way I can equate it is a cell reference formula in Excel.Any ideas?Thanks in adv!
i have a small question regarding formulas in acrobat. 4 fields there... if i enter a number in one of them i want to calculate the values of the other 3 fields. if i enter another number in a second field (not empty) the calculation should start from the beginning.... who can help me there??
I just got quite a bit of help on another thread and got my script up and running perfectly (Here is the link if anyone wants context: Saving PDF form to specific folder based on field data ).Now, I'm wanting to run this script via a form button but I'm running into the expected privilege issues you'd expect since I'm running it as Trusted. Is there anything I need to do to my code to make this possible or is it a security setting that will need to be changed?Here is the script: [JavaScript] Attempt - Pastebin.com Thanks again everyone, y'all have been a huge help!
Hello Javascripters,I'm using DC, and I have a form set up that I use as a template to create many versions of itself. At the moment, I open up the master form, fill in all the relevant details, and then hit a custom menu item that saves the master form as a copy of itself to a specified folder on my hard drive, naming it with concatenated data from some of the fields on it that I have just filled in, and in the process, closes the original master, having reset all the fields, leaving it clean and fresh to open another time when I want to create another copy. (Each copy contains information about various events that I am attending, and I need to know travel and accommodation details for each etc)The master form also has a pdf attachment, which contains supplementary information regarding travel itinerary details pertaining to the event I am attending.When the master form saves a copy of itself, it obviously includes a copy of the attachment along with it. This is exactly what I want it
Hi again, everyone! I came here a while back looking for help on a script to import a tab delimited txt file, creating forms with the imported data, and then saving them to specific folders based on a certain field's data. Below is the pastebin for that code and it's commented out to show what each bit is for.[JavaScript] PDF Form Saving - Pastebin.com I'm wanting to dumb this down a bit so that, instead of importing data to create the forms, a user will: fill out the form, choose the menu item according to what type of form it is, and the script then uses the PFFSID field data to use in the Switch portion to determine the folder it is to be saved in at the end of the script.I thought that if I simply removed the While loop that the Switch section would be able to pass all necessary data to the SaveAs command, but I was wrong and I'm not exactly sure why. If you'd like to lend a hand please let me know any questions you might have so I can be as useful as possible.Thanks!
I grabbed some code on how to rename a file based on the string position within the file. That doesn't work for me because the data in the files changes so the text I need for renaming the file can be shifted. What I need instead is some sort of If/Then/Else formula. I found that code here: https://forums.adobe.com/thread/2364649 but I'm trying to tweak it to suit my needs. I am incorporating this script into an Action in Acrobat that will run through a batch and rename (or create new files) in a designated folder.This is the criteria I need for the rename:IF the PDF contains the text "Packing List" THEN I need the new file name compiled by returning the value AFTER the string "Reference to Invoice" + "." + the value AFTER the string "Shipment Number" + "." + "pl" + ".pdf" This would look something like this: 123456789.PPHB12345.pl.pdfELSEI need the new file name compiled by returning the value AFTER the string ""Customs Invoice" + "." + the value AFTER the string "Shipment No."
Hey there.I have a form for naming corporate officers. One company can have 2, another can have 22 so what I would like to do is:If information is entered into "First Name" then require"Last Name""Title""DOB"Any help is GREATLY appreciated!!!
I have a fillable PDF that has multiple date fields. There is a main date field and all the rest follow in sequential order i.e. the main date is June 1st 2019 and then the other fields would go June 2nd 2019, June 3rd 2019, and so on. How do I get them to auto-populate based on the primary date?
Ideally I'd like to setup an action that will add a few lines of white space to the first page of multiple documents at a time.I am hoping to increase the page size to add a footer text / image that includes the filename and some other information. I used to be able to use the Crop tool to increase the page size, but that doesn't seem to work now and i'd like to be able to set it up as an action. I am probably not explaining this as well as is needed but hopefully someone can help me get on the right track. Thanks!
I have the following code for extracting 3d data ( file ) from my annotation , but as the result I have encoded ( compressed ) file , how I can get the decoded file ( not compressed ) ? I've tried cosOpenFiltered and cosOpenRaw and it doesn't work char* ptr1 = new char[2800000]; ASFile asGLTFFile = NULL; CosObj stm = PDAnnotGetCosObj(annot); CosObj stm3d = CosDictGetKeyString(stm,"3DD"); &nb
How to download .MSI package of Adobe Acrobat Reader DC application
I would like to be able to determine if a PDF has layers/OCGs in it using an existing VB.net where we are previewing images.We have some graphics files that our graphics department didn't turn off a layer with template marks on them.We can't see them in the preview, but they do show up when actually printed.When I come across one, I want to be able to alert them to correct the situation.
Is there any way to click OK using vba or javascript on a Acrobat dialog box?
I have a script in a field that takes 3 other fields and formats them into 1 address field that is formatted nicely.Works great if the user is inputting them in but I would like it to work if I import data into those 3 fields - but it is not.Code is below. I have this as a calculation script:event.value = this.getField("shipper_name").value + "\n"+ this.getField("shipper_address1").value + "\n";if (this.getField("shipper_address2").value!="") event.value += this.getField("shipper_address2").value + "\n";event.value += this.getField("shipper_city").value + ", "+ this.getField("shipper_state").value+ " " + this.getField("shipper_postal_code").value;I figure it has to do because the script is triggered only after the field is existed and when importing no field is getting entered/exited - therefore the script does not run.Is there a way to have the script trigger when the data is imported or maybe when the file is opened?
Hi,I've downloaded the SDK 7.0 for Linux and unzipped. Am unclear on which binaries to install or if I need to do a make/compile first. There appears to be two binaries in the unzipped folders. makekey and makeppi. Are these the binaries? If so, how can I get a listing of the methods/functions in each? Want to determine which binary contains the methods/functions outlined in the SDK 7.0 object model.Have code working on Windoze side but need to port over to linux.Any help or guidance to resources would be most appreciated.Thank you.Scott
I'm new to to this and looking for help creating Java script to count multiple letters. Example: A**A, or AA would be added up and total displayed in bottom cell under category "A**A". I attached a photo for reference. Thanks for the help.https://ibb.co/6WdxMcf
I have a group of 15 check boxes, if one of them (or more) is checked, then I would like field to show. If none are checked, the field disappears. How would I do this?Additionally, if the check boxes and fields are updated (if spawned), how would this work?
Want to put a value in a field if one box has anything written in it and another value if another box has anything written in it. if text118 has something i want to return a value to itemcost of 69.98 if text119 has something i want to return a value of 64.98. any help?
Hallo!Bräuchte bitte Hilfe bei einem Javascript Habe ein Formular mit "Adobe Acrobat Pro DC" erstellt und ein Feld eingefügt in welchem beim Öffnen immer das aktuelle Datum stehen soll.Das habe ich über Javascript-Anweisungen für Dokumente gemacht.Der Code ist :function UpdateDate(cFormat) {return util.printd(cFormat, new Date());return true;} this.getField('Datum').value = UpdateDate('dd.mm.yyyy');this.getField('Datum').defaultValue = UpdateDate('dd.mm.yyyy');Im Acrobat Pro funktioniert alles super.Aber auf meinem PC wo ich Acrobat Reader installiert habe aktualisiert sich das Datum nicht.Habe schon die Javascript und Sicherheitseinstellungen geändert (Was meistens die Ursache in der Google Suche) aber auch das hat nichts gebracht.Überseh ich da etwas oder geht Javascript in Reader DC gar nicht?Bin für jede Hilfe dankbarDankeLiebe Grüße
I need a script to calculate the nth day of the year. I would like to input a date on a form, and then have a script in a different field that takes that date and tells me the nth day of the year for the date I input in the other field. Example: I would like to input May 31, 2019 in a date field and the in another field put on the script which would using that date and show the number 151 in this case. I have searched the net and found some discussion but nothing that works in adobe. (they go on and on about time zones and leap year etc.) I just need something simple that works in adobe.
I have a plug-in I am porting back over from PDFLibrary to Acrobat.The plug-in modifies the color of every object on the page that has a color attribute: vector, gradients, images, etc.It works great in PDLibrary and has for many yeas now. In Acrobat, the same process never updates the window until I save the document.The pattern I use iterates through pages like this: PDPage page = PDDocAcquirePage(pdDoc,i); ModifyObjects... PDPageNotifyContentsDidChange(page); PDPageRelease(page);At the end I call:AVPageView pageView = AVDocGetPageView (avDoc); AVPageViewInvalidateRect (pageView,NULL); &nb
Is there a way to add a javascript that merge the data from the file and save to a specified file upon signature?
Hello,I am having an issue with a section of my code which I have tried nearly EVERYTHING I can think of to correct. I have a form which is being used as a Vacation request form. On it I have two date pickers which matter:Start Date --> Date_5End Date--> Date_6I am trying to calculate the difference in days between these two dates factoring out Holidays (which are stored in an array) & working weekends (also stored in an array) and Weekends (which I have set in an Array of two values "SAT" & "SUN"). For right now my employer does not have a need for working weekends but it has been discussed (time in lieu etc) so it was important that it is there as an option. When I get my start date and end dates captured (code block 1 below) and have them run through the function (getDateArray) something VERY odd happens. The formatting I want is perfect BUT the start date gets bumped "up" one day and thus all of the calculations are wrong.EX:I select May 27, 2019 as my start date. I t
How would I write the formula in adobe?Message was edited by: Malcolm Thomson
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.