Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
Hi all,I have a question about compatibility between different versions of Adobe.Our development team has created a PDF form with extensive JavaScript logic using DC Classic Track 2015, a standard in our public service. We are planning to roll out the form to a large number of private companies who submit data to our Ministry using these forms. We had previously communicated that the offices would need to upgrade to DC, due to issued discovered with JavaScript compatibility with earlier (pre-DC) versions. We have questions about version compatibility, specifically between DC Classic Track 2015, DC Continuous Track, and Acrobat 2017. Is it safe to assume that forms created in DC Classic Track 2015 will be fully supported by DC Continuous Track and Acrobat 2017, and has Adobe made any promises / guarantees around this? I haven't found any clear answers online. The form logic is extensive and complex, and we are wondering if we need to give ourselves more time to run full test cycles on D
Hello everyone,I have been tasked to research ways to create a PDF document that has a drop down menu and when one option is selected from the drop down menu, then multiple fields throughout the document would be auto filled based on the selection from the drop down menu and unfortunately, coding is not really my strong suit. Another thing that I'm not too sure about is that the employees of my institution are wanting to email the PDF document out to our customers and then have the customers fill out the PDF document and then send it back to the institution. So would anyone be able to provide some input on the best way to create the described PDF document that would also not be an issue with emailing out to customers? Honestly, I'm not sure on how the email providers would react to receiving a PDF doc with a lot of Javascripting, if they would even react to it at all. I appreciate any and all input.Thanks,
01. Number pdf file names in a folder.02. ADD a number at the beginning of each file name but not change the original file name. examples: abc.pdf becomes 0001 abc.pdf; xyz.pdf becomes 0002 xyz.pdf etc.03. To make this less complex, add a 4 digit number (0001, 0002, 0003 etc) unless there is a way to fine tune the number of digits depending on the number of files in the folder.
I need my pdf to open on the first page regardless of the local Acrobat user's setting (Edit --> Preferences --> Document --> Open Settings --> Restore last view settings when reopening document).I have already set the pdf's Properties --> Initial View to default at "Open to page: 1"; however, on systems that have Acrobat configured as above, the file will open to the last page the user was accessing. I need the document to open on the first page no matter what.I've tried adding JavaScript --> Document Will Close --> "pageNum = 0;", but that doesn't override the local setting.Any ideas?Thanks,Gene
Hi, I have zero experience with Java script and only just figured out calculations in Livecycle before they shut down support & now our forms won't open - i've had to re-crate our forms in Adobe DC.I need to write a calculation, I have 3 number fields (Quantity, Price, Total)Item Quantity Price TotalBattery less that 35 batteries  
Hi, all.This is my 2nd day fiddling with java script and I would appreciate any help.Here is what I want to do... Add links on each page which opens an external PDF file in existing windowHere is the code-----------------------------var linkWidth = 36, linkHeight = 18;//get target PDF namevar myname = this.documentFileName; myname = myname.slice(0,1);var my_target_pdf = myname + " Section illustration.pdf";//do it all pagesfor ( var i=0; i < this.numPages; i++){var cropBox = this.getPageBox("Crop", i);var offsetLink = cropBox[2] - cropBox[0] - linkWidth;var linkRect2 = [602,linkHeight+550,linkWidth + offsetLink-32,550];var rhLink = this.addLink(i, linkRect2);app.openInPlace = true;rhLink.setAction("app.openDoc('" + my_target_pdf + "', this);" );}--------------------------------------It links to the external PDF, however it opens new window.Also my customer does not want to see security alert when the external PDF opens.So I don think I can use launchURL...Any
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.