Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
Hello,I am practically new to javascript and have no idea how to code. I have 2 items in a drop down list. These 2 items are 2 separate paragraphs with about 5-6 sentences each. When I run the form and click on the drop down menu, it only shows me 1 line of text and cuts off the rest. Is there any way to code so that the whole paragraph is displayed in the drop down text box? Would greatly appreciate your help!!
Hi,I created a PDF form that sends to user who fills it. Then the document sends to printercompany who prints out the PDF document.The printig Company sends back the PDF and say they can not print because it is the CID font in the document."OK, the CID fonts is an adobe construction that uses another font table than regular fonts. In our print process included an optimization step where the font replacement copies of shared resources and where the problem arises. Character table of a CID font is not the same as other fonts. Both TrueType, OpenType, and PostScript using the same font tables."A colleague has shrunk the file with an external program, but the CID font is left.I've Googled but can not find how to remove the CID font from Adobe Acrobat Pro DC.
I am looking for a "rubric" to assess a persons knowledge of Acrobat Pro. For instance, if someone were to tell me they were an expert in using it, what things would I be able to ask them about that would let me know their level of skill?
hi, i want to change font & font size in all text fields. I have tried bellow code but it change the font size but didn't change the font. can u pls help me. thanks..font - Courier Newfont size - 10// Loop throught the fields in the document for (var i = 0; i < numFields; i++) { // Get a reference to the current field var f = getField(getNthFieldName(i)); // Change the properties of certain types of fields switch(f.type) { case "text": f.textFont = font. Courier New; f.textSize = 10; } }
Hi thereI created a form with a few text fields and some combo boxes. The combo boxes have Text as user value/face value and numbers as export values.The numbers are used to calculate some other fields on the form.I also added a button to reset the form, which works fine if I open the document on my desktop computer.But the intention is to use the form in a mobile environment and there I have a problem:whenever the form is reset, the default values are no longer displayed as text (by their user values). Instead the export values are used.e.g. the selected default value of my combo box would beuser value: goodexport value: 6If I open up the document for the first time in the mobile version of Acrobat it - correctly - says "good", but when I reset the form the field now states "6" as visible content.How can force the mobile version of acrobat after resetting to show the user value of the default combo-box item and not its export value?Thanks in advance----Additional info:- form based on
Hi,I am creating a PDF form survey with yes/no radio button questions. There is one question and "next" button per page that makes the next page appear. The question is called "Q1". I want to make the button do nothing until they answer.For example, if Q1 was on page 6, this code might keep them on the same page if they don't answer:var v = this.getField("Q1").valueAsString; if (v==" ") this.pageNum = this.pageNum = 5; else this.pageNum = 6; (This doesn't work - it always goes to page 7, even if they didn't respond)Any ideas on how to fix this?Thanks!
At work, for each project I submit, I use a pdf form that has the information from the previous two editions of that project, as well as the current. We manually copy each field down each year (CurrentPages gets copied to PrevPages, etc.). I was hoping I could use javascript and a button to make this automatic. Can anybody help? Some of these fields are text fields, some are drop down lists, etc. Each field that needs populated will already need filled and will need cleared and/or overridden.
Good evening, I made a script to print specific pages in a range from my document, except that the page information being printed are all different dimensions on the paper.Here is my script: print.this(false, 0, 6);print.this(false, 7, 23);Is there a sepcific printer setting I must use, to make the pages print out correctly? Any help would be wonderful, I intended the pages to print out, "fitted."Thank you!
Hi,I am trying to write some code on the "exit" button of a survey that will close the form and export the data as a .csv file to a location on the user's computer of their choice. The data consists of simple radio button answers, some yes / no, and some multiple choice (four possible answers).I've been messing around but haven't found a good solution..Is this possible?Thanks!
Have a custom action setup to reduce pdf file size in a specific folder and its subfolders. However, I need the action to skip over all other file types that are NOT pdf files. If it's a javascript command that needs to be inserted into the action, that would be fine. But haven't found a way to accomplish this. Current action (without javascript command) fires error message when trying to open, .docx, .xlsx, .txt, etc. files. Any help would be greatly appreciated - even if it's to tell me to stop trying, it cannot be done. Then I will move on.Thanks.
I have a java script that I use to submit a form to 2 different addresses depending on a certain field.But when it send the form it sends as an FDF not a PDF; I need it sent as a PDF.How do I ensure it is sent as a PDF not an FDF?I am an absolute novice at java script so any help would be appreciated.thanks in advanceR.Keevvar addr= "";if (this.getfield("DropDown1").value=="Yes"){addr="1stmaillist@whatever";}else{addr="2ndmaillist@whatever";}This.submitform("Mailto:" + addr);
Hii am trying to create a form to that has a text field change color to either green or red depending on three things. the first variable is a the text field "wpds1", the second is text field "dia1" and the third is the text field "Amps". the user would input UB36 into the "wpds1" text field and either 5/32 or 1/8 into the "dia1" text field. When the user inputs a number into the "Amps" text field i want the color to change based on the input. here is what i got so far.var f = event.value; var wpds = this.getField("wpds1").value; var dia = this.getField("dia1").value;if (wpds = "UB36") { if (dia = "1/8") { if(f >= 70 && f < 131) {event.target.fillColor = ["RGB",0.800,1,0.800]
i am trying to create a form to that has a text field change color to either green or red depending on the calculation of values from two other text boxes. at first i had consecutive If Else statements and the calculation would work but the color change would seem to be delayed. . say the range of values to turn the fill color green is 19 - 26, if i type in 19 the color wont changeto green. but when i type in 20 it does change green and if i go down to 18 it stays green. is this issue because i had consecutive If Else statements? var f = event.value; var wpds = this.getField("wpds1").value; var dia = this.getField("dia1").value;var pass = this.getField("pass1").value;var Distance = this.getField("Distance").value ; var Time = this.getField("Time").value ;var Travel_Speed = Distance / Time * 60;if (Distance > 0 && Time > 0){this.getField("travelSpeed").value = Travel_Speed ;}else { this.getField("travelSpeed").value = ""}if (wpds == "UB36") {&
I am trying to make a field change its fill color based on its expiration date. I have tried to figure out a way to do it using the action builder to no avail.Example:User enters expiration date in the date fieldif the date is greater than 90 days out the fill color stays whiteif the date is greater than 60 days out but less than 90 days out it turns greenif the date is greater than 30 days out but less than 60 days out it turns yellowif the date is less than 30 days out it turns redI was easily able to make this work in excel using =XX>TODAY() + 60 and a quick format change but livecycle is proving to be much more difficulty. Obviously I could stick with excel but PDF is so much cleaner IMO.Any help would be greatly appreciated.
Greetings. I have looked all over for this solution and am hitting a wall.I have two dropdown lists on my Adobe Acrobat DC form. Here is the pseudocode I am trying to create into a javascript action:If (dropdownList1 value == "department1") && (dropdownList2 value == "building1") then textBox value == "Mr. Church"elsetextBox value == " "Anyone had any luck getting something like this working?Thanks.[Moderator moved from non-technical forum Lounge to JavaScript .]Nancy
We have multiple PDF files in Lotus Notes that needs to be migrated to SharePoint 2013, each PDF in lotus notes has link reference to other PDF.But as we migrate to SharePoint these link reference needs to be updated to point to new location, we are looking for some code solution to read and update these links.Any server side or client side code will work, but we are not willing to use any third party DLLs.Ankit
Hi,I am creating a mental health pdf form survey with very basic yes/no radio button options (See image below). Each page has one question. I am trying to create some simple code that transitions to the next page if a user selects one radio button (Q1 choice 1), but skip to the 11th page if they select the other (Q1 choice 2). I want this to happen when they click the "next" button.I assume I add the code to the "next" button... Something like "if radio button Q1 choice 1 = true, go to next page, else go to 11th page" (excuse my lack of coding knowledge).How would I go about this?Thanks!
Is there a Javascript available that automatically renames a PDF based on the content? Some fields in the PDF should be reflected in the PDF name.
I'm using the javascript map object and its not working as expected. I searched the forum for any issues with the map object, but found nothing. The relevant javascript documentation is here. I created a form with javascript at the Page Level. The javascript uses an iterable literal for initialization:this.myMapIterable = [ [ "002", { "code": "002", "rate": 0.0165 } ], ];this.myMap = new Map(this.myMapIterable);I shortened myMapIterable to one entry, but in the original there are over 50 entries. The length of the iterable does not present itself as an issue. Given the above code one would expect that getting an entry, using the following code, would produce the associated object:this.myMap.get("002");The above, should according to the Javascript documentation, produce the object:{ "code": "002", "rate": 0.0165 }Unfortunately, it doesn't. What I get is undefined!? I been battling this issue for the past day. Playing around in the Javascript debugger, I have found that the Acrobat imple
I tried the instructions below but it does not work:In Acrobat:The script you create to display the current date when the document is opened is a document level script.To create an automatic date field:1. Select Tools > Forms >. Edit > Add New Field > Text Field and create a text field. (For more infor-mation, see the section on Creating Form Fields in the Acrobat online help.) Select All Properties > General tab and name the field Today.2. Select the Format tab, chooses Date for the format category, and chooses a month, day, and year format option (for example, “mmm d, yyyy”). On the General tab, make sure the field is read-only because it will be a calculated field, and click Close.3. To create a document level script that is executed each time the document is opened, choose View > Tools > Document Processing > JavaScript > Document JavaScripts. Name the script Today, and click Add.4. Delete the automatically generated text, defining a Today function, that
I've created a PDF with a list of 'results'. Each have a Title, Link, Date and Description.For some Links, the converted hyperlink in Acrobat Pro / Reader CC is incorrectly appending part of the second line, the Day.This only happens in Acrobat apps, not Chrome PDF preview or Edge PDF preview.here is a link to the dochttps://drive.google.com/a/bitvore.com/file/d/0B-_yL1qkqD-_a2oyMWwtLU9iWjA/view?usp=sharingIt is looking like a bug in Acrobat. Does anyone know why this might be happening? !
I am working on a vacation request form that has a field for start time and end time in h:mm tt format. I have a script that is working for calculating the difference in those fields, however, I need this have an exception and I am not sure what to add/change.If an employee request 8:00 am to 12:00 pm the script works fine, however, if they request 8:00 am to 5:00 pm it fails because it doesn't take the hour lunch period into consideration.Please advise.// get the values of the fieldsvar sStart = this.getField("Start TimeRow1").value;var sEnd = this.getField("End TimeRow1").value;// clear field as a default actionevent.value = "";// compute only if we have valuesif(sStart != "" && sEnd != "") {// add a formatted date value to the time field valuessStart = "1-Jan-1970 " + sStart;sEnd = "1-Jan-1970 " + sEnd;// convert the date time strings to date objectvar oStart = util.scand("d-mmm-yyyy h:MM tt", sStart);var oEnd = util.scand("d-mmm-yyyy h:MM tt", sEnd);// convert date ob
Hi,I'm new to Adobe Javascript.We use the Extract and Print commands to create new pdf files which we send to clients. One of the problems is that we are not able to print more than 32 pages using the menu print command. We need to print up to 100 pages. We are using Adobe Acrobat Pro DC, version 19.0.10.20069.49826.So, what we do is perform two print commands to pdf files, then use Adobe Combine to merge the two files together.We want to avoid having to print multiple files and then stapling them together. We are happy just using the print command to one file.Any suggestions?Rico
Hi! I am trying to pull form data from a PDF document and place it in an email using app.mailMsg - I have a button placed on the page where the data will come from with a mouseup trigger. I've cleaned up the data and email structure that I want to use a few times so I'm not sure if there is an error in my code/syntax (I'll paste below) or it is something that I am completely oblivious to. Any help is greatly appreciated! Thank you! var cMyMsg = "DOEE Notification\n\n"cMyMsg += "Client Name: " + this.getField("custName").value + "\n";cMyMsg += "Date Inspected: " + this.getField("inspectionDate").value + "\n";cMyMsg += "Address: \n";cMyMsg += "Structure Type: " + this.getField("structureType").value + "\n";cMyMsg += "Year Built: " + this.getField("yearBuilt").value + "\n";cMyMsg += "Owner: " + this.getField("buildingOwner").value + "\n";cMyMsg += "Building Structure Consists of:\n";cMyMsg += " *Framing: " + this.getField("typeStudFraming").value + "\n"
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.