Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Hi,I have a batch labeling action wizard which stores the starting document # in a global variable as "global.dnum". The default start value is 1 (e.g., document 1). I noticed if the user does not completely close Adobe Acrobat after labeling a batch of documents and then starts the action wizard again to label the next batch of documents, the action wizard skips the first document and instead labels the 2nd document with document 1 instead of document 2. My guess is this happens because the global variable needs to be reset. How can I force a reset/refresh of global.dnum so the user can label a set of say 10 documents and then label another set of 15 different documents, etc. without having to close Adobe Acrobat to ensure the right starting document number of 1 for each batch of documents?Using Acrobat Pro IX.Thx.Sue
I've created a numerous amount of check boxes to populate a sentance in one main text area. I have this basic code used under Custom Calculation Script: ------------------------------------------------------------------------var a =""if (this.getField("sample text").value =="Yes"){a=a + "R - sample text. "}event.value=a------------------------------------------------------------------------When i go to the main text area that contains that code and i click in it...i see the populated sentance i wanted, but what i want is to add more text to it....when i try to type in..it shows up fine, but when i click out of the text area, it disappears...i need it to stay.please help.
Hoping someone can help me...I have a adobe form with a text input field alongside a checkbox. I want my javascript to basically do the following: check the number inserted by the user into the text field and then spawn template pages (amount equal to that of the number inserted in the text field).This is the code I have so far however it is not working, can someone tell me what I am doing wrong? (by the way, the code is inserted as a mouse down action on the checkbox). The name of the text field is "buildingsNumber" and the template name is "buildings".var bAmount = document.getElementById("buildingsNumber").value;var t = this.getTemplate("buildings");for (var i = 1; i <= bAmount; i++)t.spawn(i, true, false, XO);
Hi,I've created a PDF form with yes/no questions. In the last field I want to see the summary of the amount of 'ja' (= yes) answers.The field ID's range from Tekstveld 1 (= Text Field) to Tekstveld 37, with no. 38 as the 'total' field.I've found a Java code and tried to edit it to my needs, but I'm not getting it...// Initialize counter variablevar sum = 0; // Loop through the fieldsfor (var i = 1; i < 37; i += 1) {// Add one if Teksveld is set to ja if (getField("Tekstveld" + i).value !== "ja") {sum += 1;}} // Set this field's value to the sumevent.value = sum;Can someone help me to get it right?Thanks!
I've created a button that uses JavaScript to add a template page to the end of our document. The button works, but it is greyed out. I titled the button "Additional Page", but the button is solid grey with no font. I've checked and the fill color is grey and the font color is black.I'm not sure what to do!! I'm not familiar with JavaScript - found the code online, so detail is appreciated.This is the code I'm using. var a = this.getTemplate("Page 5");a.spawn();In Prepare Form Edit mode, the text shows up, but it doesn't in Preview mode.
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,
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.