Questions
Recently active
I have a field that a person enters a value into. The value has to be entered as a value of 0.5 or 0. For example:12.0012.5013.00Those values are acceptable. A value of 12.25 is not acceptable. Is there a way to basically not except a value that does not end with a .00 or a 0.50 and just leave the field blank if the operators enters something other then this?
Can someone tell me how to have a number format and a custom format script? I am using this script to put the feet hash mark when I enter a number. Like so,AFNumber_Format(0,0,0,0,"\'",false); The thing is I cannot set the number format so I can only enter a number if I use this script. If I don't use this script then I can set the number format but then I lose the feet hash mark. I can only use one or the other formats. Is there a way I can have both? At the moment I only have this script in the custom format script pane window. So then, I can enter text in the field. Not what I want to do. Can someone help? Thanks.
I'm sure there's an exceedingly simple answer I'm missing, but I can't seem to get this to work right. All I want to do is subtract 2 from the sum value if the radio button ABCs is marked "NA" but it seems that no matter what I do, it still displays 8. Name: ABCsRadio Button Choice: NAHere was my best shot:(function () { var sum = 8;if(ABCs.value == "NA"){sum = sum -2;}else {sum = sum;} event.value = sum;})();Thank you for your help!
Can someone tell me how to write a calculation script for this. Im adding my "Dental" field and "Health" to get the "Total", Then to the right, there are two fields for "6100" and "1150" (just accounting codes). Anyway, If the "Total" is $784.96 or something, how can i make the first $300 go in the "6100" field and the remaining balance go into the "1150 box? Thanks Guys!
I've used the following code in VBA for years since Acrobat 9. I had a new user of the application that had Acrobat 2017 Standard installed and it doesn't run the scan command.Set gpdfApp = CreateObject("AcroExch.App")gpdfApp.MenuItemExecute("Scan")I did some debugging and I could make the MenuItemExecute("Scan") work if I opened a document in Acrobat first but it doesn't seem to work right when Acrobat launches. Is there any code I could add/change to make this work for me?
I have created an Acrobat Plugin using Visual Studio 2013 and C++.In that plugin, I am doing the following:Create a new PDF documentUse AVConversionConvertToPDF and PDEElementCopy to create a PDEImage ( I repeat for 2 images: a 1-bit monochrome TIF and an 8-bit grayscale TIF) Use PDEContentAddElem to add the images to a new document.Save documentThe saved document has the 2 images with the proper values (bit depth, dimensions), except for 'Filters'. The 1-bit monochrome image shows JBIG2 as a filter, but I want to use CCITT.Can I change the compression for a PDEImage element before I save the PDF file?Note: I am not using PDEImageCreate because AVConversionConvertToPDF handles all types of image formats already. The resulting PDF file is fine, except for the image's compression.
Hi Expert,I am new to IAC development, I have written one c# utility which will take pdf and extract the annotation from it and save it to some local drive.Below is my code:______________________________________________________________________________________________________ String fileName = "D:/test.pdf"; Acrobat.CAcroPDDoc pdDoc; pdDoc = new AcroPDDoc(); if(pdDoc == null) throw new Exception("Failed to create Acrobat PDDoc object."); // Open the source PDF document &nb
Hello Everyone,I have two fields on a form that are used as a start and end date for a temporary duty which is normally 10 days. I have a script that automatically enters a date into the end date field which is 9 days after the start date field. I would like the user to be able to override and enter a different date if the temporary duty is going to be less than 10 days. Below is the script I entered into the End Date field:var date= util.scand("dd mmm yy", this.getField("PTDYStart").value;date.setDate(date.getDate()+9)if (this.getField("PTDYStart").value!=""){event.value=util.printd("dd mmm yy",date)}else{event.value=""}I welcome any and all assistance with this.
Hi. I am currently making a time sheet in Adobe Acrobat DC which requires a unique reference number everytime a new person fills it out and sends it in. I have tried several things and besides setting up a database the pdf can connect to and extract a new number from which wasnt used, this is what i came up with.I made a button you can click on "LøbenummerKnap" (sorry for the danish), when clicked it fills out my field with a new random number which is based on time. And it works.My problem is that i need it to be as short as possible but still guaranteeing the next number is unique to what have bin given earlier.This is my code on the button:var d = new Date();//Divide by 100 to get milisecondsthis.getField("Løbenummer").value = Math.floor(d / 100);So every milisecond a new number is assigned to my "Løbenummer" field if the button is pressed. The odds of anyone clicking the button at the same milisecond is very very unlikely, but my boss still wants the number to be shorter for furthe
I'm sending a POST to a server. I noticed, using fiddler, acrobat sends the request twice. Once without the authentication headers and one with the authentication headers. I have two servers, a test server, which sends back a realm with the 402, and a prod server that has no realm. Acrobat will send the request again with the proper auth headers for the test server (i think because there's a realm), but will not send another request to the prod server, I'm assuming because it lacks a realm.I can't find any other reason for this except to assume acrobat wants to know what realm the auth will be used in. I tested this in POSTMAN, it works for both servers, but the authentication header is sent right away (no need for two calls).
HelloJust updated to the 2016 Office 365 and in all modules, my "adobe pdf" add on's has dissapearedAny idea how to get these back? Tried a re install of Acrobat with no effectCheers
I currently have the following java script in a adobe pdf to perform calculations. One of the problems I am running into is the form is performing the calculations live. I do not want the calculations to be performed till values are entered. So currently the 3 text boxes are "Neck1", "Neck2" and "Neck3". Once values are entered into these boxes I would like to perform the average calculation. Any help would be appreciated. I am not experience with JavaScript so please be very detailed with answers. // Custom calculation script (function () {// Get the field values, as numbersvar v1 = +getField("Neck1").value;var v2 = +getField("Neck2").value;var v3 = +getField ("Neck3").value;var nTotal = (v1 + v2 + v3)var nAverage = (nTotal / 3)var nRounded = Math.round(nAverage / .5)*.5;event.value = nRounded; })();
Ok guys and gals. I'm going nuts here. I have been doing a lot of research on a dynamic drop down list for adobe acrobat pro XI. I've seen a few things but nothing is working. Here is what I am trying to do. I have two drop down boxes in a form titled "Status" and "Rank." I want Status to have two labels to chose from; NCO and OFFICER. In the "Rank" field I want the list of either all of the NCO or Officer ranks to appear for selection based upon which option is chosen in the field "Status." I tried this script which has gotten me the closest but only displays the data in the "Rank" field for NCO when NCO is the first item in the list in the "Status" field and the data that does appear in the "Rank" field does not display as drop down options. Rather, it displays as a line of text with commas. If I chose the Officer item as the 2nd item in the list, I get no change in the "Rank" field. It stays populated with the original NCO
How do I decrease the white space leading in the tag tree? With the August 2017 automatic update to Adobe Acrobat Pro DC Version 17.012.20095.42964, the tag tree suddenly got expanded using a lot of white space leading. This negatively impacts me because now I can only view about 27 lines of tags. Last month, I could see about 50. This means I now need to spend a lot more time scrolling up and down in order to see tags. This is not acceptable. Whoever thought this was a good idea was wrong. It's a bad idea. I'm a production person in Acrobat. I can't waste all this time. When I telephoned Adobe, the heavily-accented girl told me there was no way. And, she told me there is no way to go back to the previous version. Help!!! Please. Someone. Hello? Thanks [sniff sniff]
Hallo ZusammenIch möchte gerne einen benutzerdefinierte Stempel erstellen. Dieser soll auch dynamische Funktionen enthalten wie Datumsangabe und Wochentag.Wie mache ich das?Danke für die Hilfe
I have pdf document that has a javascript set to allow date to appear when document is printed but hidden when viewing.ASK: I want to have the words PRINTED ON: appear before the date. I created a text field and named it TODAY. Selected HIDDEN BUT PRINTABLE in properties.Then chose: Javascript, document actions, Select document will print, edit, them the following script.this.getField("TODAY").value = util.printd("mm/dd/yyyy", new Date());[Email address removed by Moderator]
I am at a loss as to how to interpret this error. I'll try and lay this out as simply as possible.I am working on a paperwork package for the selling of multiple vehicles. Some line items are divided evenly amongst the number of vehicles sold. If it is not possible to divide the item evenly, I have written a document-level function which calculates the offset in cents:function remainderCatch(TotalField,PerField){var PerRounded = round(PerField,2);var Count = this.getField("SOLD_COUNT").value;var Offset = PerRounded * Count;var RemainderRaw = Offset - TotalField;if (RemainderRaw == 0) { event.value = PerRounded} else { event.value = (TotalField - ((Count-1) * PerField))}}FYI: The "round" function is a separate document-level function which rounds to the nearest decimal place of your choosing, the hundredths place in this example).I have 5 fields which call this function, all under Vehicle #1 (so that only the first vehicle's numbers are adjusted). For this
Hi,I'm struggling with this; hopefully someone can help.I'm creating a PDF that has some questions that are radio buttons with numeric values on each one. I'm wanting the sum of those selected to show a particular button - the result.I've done something similar in the past, however that just populates a field with predefined text and colours the box - in this instance I'm wanting to show/hide a button as I was hoping to do a graphical answer as opposed to just words.Here's the script I'd use previously:var nResult = this.getField(“XXXXXX”).value;if ( nResult > 14 ) { event.value = “XXXXXXX”; event.target.textColor = ["RGB", 1, 1, 1]; event.target.fillColor = ["RGB", 0, 0.454902, 0.482353];}else if( nResult > 7 ) { event.value = “XXXXXXX”; event.target.textColor = ["RGB", 0.113725, 0.113725, 0.105882]; event.target.fillColor = ["RGB", 1, 0.780392, 0.345098];}else { event.value = “XXXXXXXXX”; event.target.textColor = ["RGB", 0.113725, 0.113725, 0.105882]; event.target.fillColor = [
I have designed a pdf form to be used as a questionnaire however it is extremely long and comprehensive and it is not always necessary for a user to fill in the complete document. On the first page of the document I have a list of the different sections of the questionnaire and then if the user checks the checkbox of the sections, then only the pages of the document of those sections gets displayed and the ones that don't get selected, the relevant pages stay hidden. From what I have read, I will need to convert the pages to a template (Which I have figured out that I do under the organize pages tool) and then under the checkbox properties I will need to run a javascript under the actions tab to show or hide the relevant pages. My problem is I have no idea how to write javascripts. Does anyone have a line of code that I could copy into my document and substitute the page numbers (or whatever the case may be) which would give me the desired action on the document? I can't imagine that i
Hello gurus,Description:A) I have 8 fields: "start1", "start2"...."start8", each of which has a start date in this format "dd/mm/yyyy". Let's call these fields 'starting dates'. The starting dates are normally always on a Monday. These starting dates represent the date a program begins.B) I also have a field called "weeks 1", "weeks 2"..."weeks 8". This field is automatically populated and contains numerical variables corresponding to each of these starting dates, and lists the number of "business/school weeks forward" for each of these starting dates (in other words, the duration of the program). Each "week" represents a full business/school week, so "Mon-Fri" is one week. For Instance, "16 weeks" means "sixteen Mon-Fri cycles" mapped over the normal calendar days. The number of weeks varies significantly and is independent. In other words, for field "start1", I have a corresponding numerical field called "weeks 1" that may list "16" weeks. The same goes for all other starting dates,
I added some javascript that worked yesterday but now it is not working. When the oh.value is a certain number checkboxes are checked.var oat = this.getField("OrderAmtTotals");var oa3 = this.getField("OrderAmt3");var oa4 = this.getField("OrderAmt4");var hr = this.getField("HostRetailTotal");var oh = this.getField("OrderPlusHostRetail");if ((oa4.value !=null) || (oa3.value !=null && hr.value !=null)){if (oh.value < 150.00){event.value = 0;getField("HalfPrice1").checkThisBox(0,false);getField("HalfPrice2").checkThisBox(0,false);getField("HalfPrice3").checkThisBox(0,false);getField("HalfPrice4").checkThisBox(0,false);getField("HalfPrice5").checkThisBox(0,false);}else if (oh.value > 149.99 && oh.value < 300){event.value = oh.value * .10;getField("HalfPrice1").checkThisBox(0,true);getField("HalfPrice2").checkThisBox(0,true);getField("HalfPrice3").checkThisBox(0,false);getField("HalfPrice4").checkThisBox(0,false);getField("HalfPrice5").checkThisBox(0,false);}else if
Hi,I'm trying to create a loop that effectively goes through a folder containing multiple pdf documents. This script is essentially meant to open and extract specific data from each pdf and export it to a single .txt file. The data export script has already been written, but I am having issues with setting up my loop to work through the folder.This is the general layout of the loop I am currently working with:while (***FOLDER HAS NEXT FILE***){ var thisFile = ***SAVE FILE NAME AS STRING VARIABLE*** app.openDoc(thisFile); (insert data extraction and export script)}If this initial approach is ineffective, or if there is a more efficient alternative, please share! Thank you!
I created an if statement with OR but it doesn't seem to be working. Here is my javascriptif ((oa4.value > 0) || (oa3.value > 0 && hr.value > 0)){then do what's next...I have order amount lines and lines 1-4 are filled in then other things can happen. Also if line 1-3 are filled in with values and another total value is not null then that counts too.
(the signature is in WMF format)Need to print a PDF and either merge or append with a signature file(the signature is in WMF format). This needs to be an automatic process because I need to repeat it many times
Is there a javascript that can access "use local fonts" in the Preference window? I want the user to uncheck that option so all the fonts I used in the creation of the form will be used. At this point I just don't want any pop out windows saying, "Helevetica Bold cannot be used" (something like that). I'm trying to figure this out. I thought, all the fonts I selected to use in the form creation would be available. The only thing I can think of is to uncheck the "use local font" option. Any other suggestions out there?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.