Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Hello, I am trying to delete all of the second level bookmarks from my pdf.I am able to delete the first top level bookmark and it's child with the following code:if (this.bookmarkRoot.children != null && this.bookmarkRoot.children.length > 0) { for (var i = 0; i < this.bookmarkRoot.children.length; i++) { this.bookmarkRoot.children.remove(); } }However, but i am not sure how to change the code to only delete the second level (children of the children?) book marks. Any help would be much appreciated.
HiWould anyone be able to help?I have a form field that has Rich Text enabled. When the page closes the .richValue of this field is copied and reused somewhere else in the form.It all works great, all the values, font, font size etc is carried over except for line breaks. All the text is placed on the same line.Unless! you click Shift+Enter when you want to go to the next line. However I can't expect the forms users to know to do this. Would anyone be able to provide me with a custom Keystroke Script so that when the Return/Enter Key is pressed on the keyboard it actually inserts a line break.Many thanks for any help!Jon
Hello,I want to create a timer that pop-ups after a specific amount of time.The User also should be able to stop the timer and the pop-ups. (by choosing between two Radio Buttons)My problem is: the pop-ups never stop Can anyone help me? Thanks var timer= 0;var Feld = this.getField("Group3").value; if (Feld == "1") { function DoIt() { app.alert("Sie müssen erst einen Wert eingeben!");} timer = app.setInterval("DoIt()", 50000); }else { app.alert("Gestoppt"); app.clearInterval(tim
I have a form which has 3 check box or radio button. I want to be able to show/hide elements of a drop down menu list based on the select check boxi'm clueless, help would be really apppreciated
Hi.Can anyone please help.When I set a Global Variable in Document 1, I can access this Global Variable in Document 2 if Document 1 is still open.Why is this, I thought this was stopped by Adobe for Security Reasons?Kind regardsJon
Hello, I need help creating a script to allow me to average two cells, only if one of them is greater than zero. I have the following cells: "TotalRatingUC", "TotalRatingLC", and "Overall Rating". We'll call it the following for simplification: TotalRatingUC=A, TotalRatingLC=B, Overall Rating=C.So basically, i need C= A+B/2 if B>0. If B=0, i need C=A. I tried going off of other examples i found online, but the script i'm using is giving me an error message of: "SyntaxError:illegal charater 2: at line 3.I was trying this:if (this.getField("TotalRatingLC").value == '0') { event.value = (this.getField(“TotalRatingUC”).value } else { event.value = (this.getField(“TotalRatingUC”).value + (this.getField(“TotalRatingLC).value / 2 }Any thoughts? This is literally the last item i need to finish this pdf for my work.Thanks in advance!
I’m working in Acrobat Pro and I have a field named ChildDOB, date format is m/d/yyyy. I have a second field named Date18. I need to figure out when the child will turn 18. The statement that I am working with is this: If the child is under the age of 18 they must meet the criteria stated in Section 1. Date the child will become age 18: ___________. I know I need to add 18 years to the child’s date of birth, but not sure how to achieve this. Help is much appreciated.
I've been researching this for quite some time and it's getting frustrating that I can't figure it out myself! I have a PDF form. One field is a drop down menu. And then I have a group of radio buttons and a group of checkboxes. I have the group of radio buttons because only choice can be made ("Auth" or "Priv"). Group name is "14X: Type of Access". I have the checkboxes set up ("15X: U" and "15X: C") because more than one box can be checked. My code is allowing the checkbox to be selected but the radio button won't. The drop down menu has several choices and depending on the choice selected, either one or both of the checkboxes can be selected along with only one of the radio buttons ("Auth" or "Priv"). Here's a short version of what I have so far but only the "15X: U" checkbox is being checked and unchecked when I deselect "NIPR":var X = this.getField("14X: Type of Access");var A = this.getField(X.name+"Auth");var P = this.getFiel
I am working with really large (numbers of pages) pdfs. I know of two ways to extract non-sequential pages: right-click from either the page view OR the organize pages view.The problem is that I want to extract many different non-sequential pages (could be 200 pages out of 1100). I keep a list of all pages indexed in EXCEL (don't ask...that's just what we are doin right now ) . Anyway, as part of that process I use EXCEL to identify which pages will be extracted (and sent to third parties) from the larger *.pdf file. Because of that, I can easily using EXCEL VBA create a comma delimited list of which pages to extract from the *.pdf file.My problem is I am a complete novice at Javascript. So right now, I have to open up Adobe and hold the CNTRL key while I scroll thru and try and select dozens (if not hundreds) of non-sequential page for extraction. One slip and I have to start over again.I just want to be able to feed (could be copy-paste) a list of
I am creating an adobe form and have 4 dropdown fields [text1, text2, text3, text4] that are populated by another dropdown box [main_text]. The fields text1, text2, text3, text4 have the same options [option1, option2, option3, option4]. Is there a way to hide an option when it is selected in one of the dropdown boxes? For instance if a user chooses option 1 in the dropdown box called text1 can that option be hidden in the other 3 dropdown boxes [text2, text3, text4]. Then the same thing when the user chooses an option for text2 and so on. Eventually by the time they get to text4 there should be only 1 option left for them to choose.
I have a document that is 200+ pages with mostly tables. The tables are tagged as tables, but the scoping is not applied to the appropriate row/column headers. Is there a way to expedite or automate this or will I have to go into Table Editor for each table and mark the header cells as appropriate?
Hi,I have to add watermarks to 1200 documents. The watermarks contain a part of the file name, but in many cases 3 - 4 documents need the same watermark (e.g. a-123-1, a-123-2, etc. all need xyz-123 as a watermark). Is there any way to make that happen from an excel table (one column with file names, one with corresponding watermarks)?Thanks a lot
Read an attribute value of the XML fileFile a.xml, the path is: C:\Program Files\Adobe\Adobe Photoshop CC 2018\Presets\Scripts\a.xmlThe content of a.xml is:<Mark><Widths>600</Widths><Hights>591</Hights><RES>254</RES><Name>029</Name><CWidths>2</CWidths><CHights>2</CHights><Quxi>0</Quxi><Date>29</Date><Cwei>20</Cwei><JY>029</JY></Mark>i want get Date.value for text field by javascripti try:var f = new File('/C/Program Files/Adobe/Adobe Photoshop CC 2018/Presets/Scripts/Proof_2.0.xml'); f.open('r'); var xml = new XML( f.read() ); f.close(); var Widths = xml.child('Widths'); event.value=Widths;but text field no valuepls help mee pls help me
Hello,I have 1 checkbox with the name taxable and 2 fields with the name CashPrice and TaxableTotal. And in text1 there is a value. Now comes my question if i check the checkbox the value of CashPrice needs to be added to the TaxableTotal. There are 8 lines that will needed to be able to be added. I don't know how to begin. Can someone help me with this script ?
Hi,Is there anyway for a user to add text to a text box that has a custom script applied?Joel_Geraci has given the following script which works perfectly, however I'm wondering if there's a way to do the same thing, only allow users to then add/change the text that's generated...any ideas?Thanks (My work around is simply put a separate text box at the side, but wondering if there's a script work around.)var paras = [];var fields = this.getField( “CB” ).getArray();// sort by namefields.sort( function( a, b ) { var nameA = a.name.toUpperCase(); // ignore upper and lowercase var nameB = b.name.toUpperCase(); // ignore upper and lowercase if ( nameA < nameB ) { return -1; } if ( nameA > nameB ) { return 1; } // names must be equal return 0;} );for ( var i = 0; i < fields.length; i++ ) { var field = fields[ i ]; if ( field.isBoxChecked( 0 ) ) { paras.push( field.value ) }}event.value = paras.join( "\n\n " )
Cheers!I know that it is an issue that is discussed and solved in various platforms, but i have a very (probably quite simple) issue that I can not solve.I believe I am missing a small but some important parameter since I am new to js.Basically, I am creating a pdf form in Acrobat.I have 6 radio buttons in a group (group name: Group1) and each have different names.Independent than that I have some text field (layer name: "DayMonth-1") that I would like to display (which is hidden in default) if the user selects for example first radio button (layer name: "un_jour_precis" under Group 1).I used the following code as a MouseUp Event for my radio button:var x = this.getField("un_jour_precis");if (x.value = "Off") { this.getField("DayMonth-1").display = display.visible;}else { this.getField("DayMonth-1").display = display.hidden;}But, nothing happens I would appreciate any corrections/suggestions!
Does anybody know if there is setting to fix this problem of mine when saving pdf as tiff/bmp.Application Version : Acrobat Pro XI/Acrobat Pro DC 20171. open a pdf file with text as outline.2. saveas pdf to tiff3. change tiff setting resolution to 300dpi4. continue with saving as tiffafter examining the saved tiff file carefully, some text (japanese fonts) with 1-2px space will look like it is being filled by the color of the text. looks like anti-alising is not performed during saveas, hence the filled effect.Note: the problem disappear when the pdf is exported in 600dpiSide by Side Comparison of text
What would be the best way to automate with JS for changing a specific layer in PDF to have is Print Initial State to «Never Print»? Is it possible?
I have a PDF set up with a dropdown. The dropdown named "Country" allows users to select their Country/Region. I have 27 other layers in my PDF, each having an image of a flag. They are stacked on top one another. My hopes is to have the layer toggle from hidden to visible based on the selected country in the dropdown. I found many topics about buttons or checkboxes, but could not find anything based on dropdowns.Please find my PDF through the link below Shared Files - Acrobat.com
Is there a way with javascript to Save a PDF Form with the Reader Extended PDF option activated?I was expecting to be able to do so with an Action, but this is not available.Thanks!Jean-Claude
just realized that it is possible to edit PDF files using javascript.I have some, very small, experience in the past writing controls in javascript but honestly I don't know how to edit a pdf file using this language.I especially don't know where to begin...May someone help me?examples and steps to begin are really appreciated 🙂thanks!
Does anyone know which PDF viewer on mobile currently has the most support for the javascript object model. I am particularly interested in forms support for functionality such as showing/hiding fields, validation and formatting. Adobe offerings are really inadequate in these areas.
I am trying to do an if then statement on a PDF form.I have the following formulas in excel and would like help implementing them in PDF.here are the name of the fields on my PDF form.
I have a button labeled Military. When a user clicks on that button, I have a window that pops up asking if they're Active Duty, National Guard, or Reservist. I'm asking them to input a number representing one of the three choices and then another field auto-fills their choice when they click OK. Otherwise the field is blank. Here is what I have so far, but nothing is auto-filled into the other field:var vMil = this.getField("13: Persona");// Display Response Boxvar vMilInfo = app.response("Input the number representing your military status.\n\n1) Active Duty\n2) National Guard\n3) Reservist"," [Box 9 - DESIGNATION OF PERSON]");switch(vMilInfo){ case "1": vMil.value = "A = Active Duty"; vValidResponse = 1; break; case "2": vMil.value = "N = National Guard"; vValidResponse = 1; break; case "3": vMil.value = "V = Reservist"; vValidResponse = 1; break; vMil.value = ""; }I'm doing this in
Здравствуйте! Помогите, пожалуйста. В Adobe Acrobat Reader DC 2017.012.20098 при нажатии на ссылку возникает предупреждение "Этот файл pdf пытается загрузить: javaScript.RelatedTopic1.click(). Продолжить?". При нажатии на "Да" ничего не происходит. Что делать? !
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.