Unlock the power of Acrobat SDK through our community.
Recente
I'm currently trying to write a JavaScript to Extract pages from PDF files and save those extracted pages as a separate document.Say I have a 100 Page document, I wish to extract 30 Pages, now the first 90 should each be 3 separate 30 page documents, now when I get to last 10 I wish to save those 10 pages as another document. What's the best way to ensure this in a Script?[Here is the list of all Adobe forums... https://forums.adobe.com/welcome][Moved... Encore is to author a DVD and has nothing to do with a PDF... Mod]
Hello all,I use following code to check after clicking a "save" button(which is additional created on the pdf) if all or none of mandatory fields are empty:var i_sum;var i;var RequiredFields = new Array(14);RequiredFields[0]="T_UNTERNEHMEN";RequiredFields[1]="T_BPNR";RequiredFields[2]="T_TEL";RequiredFields[3]="T_ANSPRECHPARTNER";RequiredFields[4]="T_EMAIL";RequiredFields[5]="T_PROJEKTNAME_NR";RequiredFields[6]="T_KUNDENNAME";RequiredFields[7]="T_ANGEBOT_NR";RequiredFields[8]="T_BEGRÜND";RequiredFields[9]="T_PROJEKT";RequiredFields[10]="T_REGULÄRER_NETTOPREIS";RequiredFields[11]="T_ERFORDERLICHER_NETTOPREIS";RequiredFields[12]="T_NAME";RequiredFields[13]="T_ORT_DATUM";var fld = 0;i_sum=0;var fieldCount = RequiredFields.lengthfor (var i=0; i < fieldCount; i++) { fld = this.getField(RequiredFields); if (fld.value.length==0)&n
Hi, I am creating a estimation/quotation form that can be quoted in GBP, Euro and USD. To do this, i have a radial button for each and you select the one you want. In the form i have 3 sets of the same fields with different currency formatted and it hides the un required ones and shows the selected one. I've done this before and it worked perfectly. I needed to do an update to the layout so recreated on word and trying to copy over the custom calculations and javascript however when copied over, only the first bits work - i've tried rearranging it but its the first chunk always, so in the below all the visible work but none of the hiddenthis.getField("T1").display = display.visiblethis.getField("T2").display = display.visiblethis.getField("T3").display = display.visiblethis.getField("T4").display = display.visiblethis.getField("T5").display = display.visiblethis.getField("T6").display = display.visiblethis.getField("T7").display = display.visiblethis.getField("T8").display = display.vi
Good afternoon everyone.At the start of every form we fill out, we usually have to write in our personal information such as name, address, phone number, etc. I have something similar to that, but I want to give the user a chance to save what they have in a separate file before continuing. In theory, what I'm doing is giving the user a chance to save the file to a new location so they don't accidentally overwrite their copy, and once they've entered all the pertinent information, a button will be revealed that when clicked executes a Menu Item of File>Save As . Make sense?Once the user fills all of these fields in, another text field labeled "Submit" will appear. I'm using a text field because I'm using the Custom Calculation Script:var bReady = true; if(this.getField("DateOfReview").value.length == 0) bReady = false; else if(this.getField("ArrivalTime").value.length == 0) bReady = false; else if(this.getField("DepartureTime").value.le
I am updating to a newer version of Acrobat, and I have the following C# code which is giving me an error saying "cannot implicitly convert from int to boolean":var pdfDoc = (CAcroPDDoc)Microsoft.VisualBasic.Interaction.CreateObject("AcroExch.PDDoc", "");if (!pdfDoc.Open(SourceFilePath)) // <-- red squiggly under "Open()"{ throw new FileNotFoundException();}Obviously, in a previous version the Open() method returned a boolean value - now it returns an int. Can someone please provide me a reference to this method so I can determine the "meaning" of the returned int values? I cannot find any reference to this method. Help!!
I have a dropdown menu, that when an item is selected a description appears in a text box from the selection in the dropdown list. This is the script I already have, but it only shows for the first item in the dropdown list. I need help getting the text field to show from every selection in my dropdown list.var v = event.value;var targetValue = "";if (v == "Appliance Repair")'{ targetValue = "Text";}else if (v == "Carpet Repair"){ targetValue = "Text2";}this.getField("Description").value = targetValue;
Hello, I am having issues changing the text color and size of comments when using the comment tools. I used to be able to do this by putting cursor on text and opening the text properties bar, but the text properties bar has stopped popping up even when selecting Crl+E. When using a text box, I can get the properties bar of the text box pop up; then I switch to the text inside the text box and the text properties bar appears, however, I am not able to adjust font type, size and color. Help? Could the text setting have been accidently set to default? If so, can this be changed?
I know this is very basic js but I am attempting to change the color of 3 groups of radio buttons based on the mouse up action on another specific radio button in a different group. After the color change is set i am then resetting the group and setting it to read only but the trouble I am having is setting the fill color. I am sure my syntax is incorrect but I have googled and can not find one that will work. I am attempting to set the fill color to gray. Any assistance would be appreciated. Thank you. this.getField("Group2").event.target.fillColor = "150,150,150";this.resetForm(["Group2"]);this.resetForm(["Group3"]);this.resetForm(["Group4"]);this.getField("Group2").readonly = true;this.getField("Group3").readonly = true;this.getField("Group4").readonly = true;
Hello everyone;I found the following script (linked below) that worked just fine in calculating the age of the user in years, but I'm having problems customizing it so that it will do the same for months. Even with the little changes that I made, it seems to almost work except that it doesn't show months from 1-11. Case in point, see the screenshot below. At the time of this posting (April 2018), if the Date of Birth is in June, shouldn't the script calculate that the user is 32 years and 10 months old?I didn't know how to copy/paste code into this post so I took a screenshot of what I had (see below). It is customized (probably horribly) from another script that I found here on Adobe's forums: https://forums.adobe.com/thread/1667044. It may be horrible but something seems to be working on the form, but just not exactly how I need for it to.So, how can I customize the above script to show the user's age in months (I guess in the current year)? So if the user just celebrated a birthday,
In previous versions of Acrobat, I thought you could set a destination in a pdf and then call it from a webpage to open the document and go directly to the page. I cannot find how to do it using Acrobat DC.
I'm looking for Enterprise tool that converts PDF to text or convert Non-searchable to searchable PDF. Does Adobe have this type of tool?
In Excel it would look like this: =(B31-B30)/B31B31 Field is named: Yesterday's PlanB30 Field is named: Yesterday's ActualSimple percentage variance in excel however, not sure how to get this into My pdf table. I am using the most recent version of Acrobat DC.Thank you in advance and sorry for the elementary question.
Hi,I've found a topic about validation of fields.When a field meet a specific value, the background color changes.var v = Number(event.value);if (v>=1 && v<=6) {event.target.fillColor = color.red;}else event.target.fillColor = color.white;This is exactly what I want, but I'm using number field with decimals.How can I check If the value is between 1 and 6.49 and color it red and with all other values, color it white ?I've tried this, but it didn't work:var v = Number(event.value);if (v>=1 && v<=6.49) {event.target.fillColor = color.red;}else event.target.fillColor = color.white;Can anyone help me out here ?
The combine feature in Adobe Acrobat DC Pro or Standard does not work. Getting 'No PDF file was created because Adobe Acrobat DC encountered an unidentified error'.
Below are this the question from my form. I have a radio button Yes/No set (named HMDA) and I want to force the applicant to answer the question without being able to skip over it. I wrote the below code but it doesn't work properly. If the applicant tries to skip the question an alert will appear letting them know they have to answer the question. When they click ok to dismiss the alert - if they answer yes to the question my script works fine and they can move on to the next question on the form. However, when they click ok to dismiss the alert - if they try to answer No to the question the alert appears again and they click ok to dismiss the alert then the No button will populate and then applicant can move on. Script for my Question:if(getField("HMDA").value=="Off")app.alert("If the applicant is an individual, is the collateral offered a residential dwelling? Please select Yes or No",1,0,"HMDA ERROR")Also, how do I get rid of the Warning: "JavaScript Window"
Hello, I have a pdf with 500 pg, with 100 markers created with the names and surnames that appear ...My question is when I click on "PEREZ JUAN" goes to the page where it is, now it will be possible to "HIGHLIGHT THE PEREZ JUAN PLABRA" so that it is easier to locate where it is in the page?looked like when I go to the "search" tool and highlights the word found
Can anyone take a look at this and tell me what I'm doing wrong? I'll admit, I am an extreme novice when it comes to this, so any help at all would be greatly appreciated!
In DC, when I combine several pdfs into one, I am getting double bookmarks (the file name and the bookmark that was inside each file). Is there a way to delete either the parent or children bookmarks as a bulk batch after combining the PDFs into one? I've found Sean Stewart's javascript but that only deletes the parent bookmark if it has the .pdf extension in the bookmark title, which it does not. I have about 900 bookmarks/files (which created 1800 when combined) and I don't want to manually change each bookmark to have the .pdf extension. So I would be happy with a js that changes the parent bookmark to include the .pdf and then I can run Sean's js. I've tested it on a small pdf where I manually added the .pdf to three bookmarks and it works. But I can't do that to 900 or I would just manually delete the bookmarks. Looking for a somewhat easier solution. Even if it's two separate js (one to rename, one to delete etc.) Thank you so
Hi, I would like to create an alert box that will only come up on the first document in a batch. I have the pop-up as a Javascript that runs as part of a longer action that also includes preset Adobe actions (such as "Remove Hidden Data"). Right now I have something like this: app.alert("Did you create a copy in a pre-cleaned folder?", 1);The action then goes on to do a couple of other things from the pre-set actions in Adobe (removing hidden information, setting the initial view, and saving the document) before going on to the next document in the batch of files to be processed. However, when I include the javascript as part of my larger action, the alert box pops up with every document in the batch that is being processed. Is there a way to make it pop up only on the first document but not on subsequent documents?Thank you!
Need help with "value entered doesn't match the format" in my PDF. This message pops up every time I tab to a new field when entering data.
Is it possible to take a scanned document such as a tax return and export the data in each field to specific cells in excel ?
Hello,i need in my PDF as result of a box the division between two other boxes.Unfortunately, for the division I need the Java script for it.Anyone knows it?Thank you.
Hi All,I am getting below error when compiling DC sdk for java using mvn command:mvn -X samples/pom.xml exec:java -Dexec.mainClass=com.adobe.dcapi.samples.AddPassword -Dexec.args="/config/default.json /SDK/test-files/foobar.pdf 12345"Apache Maven 3.3.9Maven home: /usr/share/mavenJava version: 1.8.0_151, vendor: Oracle CorporationJava home: /usr/lib/jvm/java-8-openjdk-amd64/jreDefault locale: en_IN, platform encoding: UTF-8OS name: "linux", version: "4.4.0-112-generic", arch: "amd64", family: "unix"[DEBUG] Created new class realm maven.api[DEBUG] Importing foreign packages into class realm maven.api[DEBUG] Imported: javax.enterprise.inject.* < plexus.core[DEBUG] Imported: javax.enterprise.util.* < plexus.core[DEBUG] Imported: javax.inject.* < plexus.core[DEBUG] Imported: org.apache.maven.* < plexus.core[DEBUG] Imported: org.apache.maven.artifact < plexus.core[DEBUG] Imported: org.apache.maven.classrea
Morning,I working for a big Company and used Acrobat Professional XI pro from long time. Our IT department gave me another laptop and when I installed the software, it's required the serial number of license that I haven't. I tried to find it, and I have just this number as serial [serial number removed - DON'T POST A SERIAL NUMBER IN A PUBLIC FORUM].I got the authorization to download the software from my department under license, but never asked me the serial number because we use our portal to find and use a programs legally.Could you please tell me how to find this code?RegardsMirko
French dollar amount text field entry, enter Keystroke period or comma, becomes comma in text field.Currently my scripts do this:If I type 12345, it converts to 12345,00 not 123,45If I type 123,45, it remains 123,45, which is fine for French.If I type 123.45, the period is unavailable. I must use the comma otherwise the amount would show as: 12345,00 instead of 123,45, it will automatically add zero cents.I have 2 functions to a document level JavaScripts for the French dollar amounts.FORMAT SCRIPT function fr_format_decimal() { AFNumber_Format(2, 2, 0, 0, "", false);event.value = event.value.replace(/\./g, " "); }KEYSTROKE SCRIPT function fr_keystroke_decimal() { AFNumber_Keystroke(2, 2, 0, 0, "", false);}TEXT FIELD PROPERTIES / FORMAT / CUSTOMCustom Format Script // Custom Format JavaScript fr_format_decimal();Custom Keystroke Script // Custom Keystroke JavaScriptfr_keystroke_decimal();I need to be able to type a "comma" or "period" and have it end up French (Comma).1234.50 or 1234,5
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Você já é cadastrado? Entrar
Ainda não tem uma conta? Crie uma conta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.