Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
Hi,I have a pdf document with 1000 pages.800 pages is in colour, 200 black and white and I wish to reduce colour pages to 500 pages.I have a list of selected pages that need to be in colour and I also have a list of pages that should be black.There is an option to convert colours in Adobe but there is no way to paste a list of pages and you can not select thumbnails neither and then convert.You can only give a range page 1-1000 for example or give a single page number but you can not ask for conversion of pages for example: 3,5,7, 25, 80, 500 and convert them all in one go.I heard that Java could handle such a task but unfortunately I can not find good example.If there would be some plugin being able to perform such task that would be great!Thank you for your answers.
I have created a formula in adobe pro fillable forms the formula works fine, but i need to be able to manually enter numbers into it as well. Is this something that i can do?
Hi,I have a requirement in my organisation. Current process - We compare, verify & validate data in two different PDF's which are different table formats. Currently this process seems to be manual and tedious.We need your help to explore if there's any possibilities to perform above activity automatically (even partial will also help).Requirement - Build a tool to read 2 different adobe file to compare data among each other and highlight the mismatch values/areasPlease let me know if this can achieved, I will come back with sample pdf to explain further in detail.Thanks,
Dear Acrobat scripters,Is there an way you can get any number and than text in this.getField.value . Do I have to do that with RegExp? if (this.getField("field1").value = 'ANY NUMBER + ANY TEXT') {DO SCRIPT;} else {DO SCRIPT;}Already thanks for the help!Greetings
Hi,We encrypt PDF files using custom security handler. One of our customer is unable to open the encrypted PDF file with Acrobat Reader DC 2019 latest patch 2019.010.20064. If customer downgrade to previous patch 2019.008.20071, everything just works fine.PDDocOpen() API throws this exception "Bad Parameter" - error code 1073741827 = 0x40000003 = genErrBadParm.Our customer security handler is written in C++.The issue only occurs at customer location and we are unable to reproduce locally. Looking forward to hear from experts.Thanks,Sameer
I need to write a function to disable a digital signature, when user hits submit button. Also when user re-opens the form than there should be no digital signatures saved.
Hello. I am attempting to have 3-6 different text fields automatically populate with pre-determined information based on the user's selection in a drop-down menu. For example, my drop down will have Red, Blue, Green, Yellow. If the user selects Red, then Text1 will fill in Apple, Text2 will fill in Fire Truck, Text3 will fill in Rose and Text4 will fill in Tomato. If the user selects Yellow from the Drop Down, then Text1 is banana, Text2 is sun, Text3 is also banana and Text4 is lemon. I know it involves JavaScprit, but to be honest, I'm a novice when it comes to that. Any help would be greatly appreciated!
I'm using the fontWeight method to try to set the font of a text field to bold.I loop through all the fields, and let's say the field I'm looking to make bold is called "Number":loop{get name //cFieldNameget field of name //oFieldif(cFieldName == "Number"){oField,fontWeight = 700;}}in the javascript API manual it says fontWeight 700+ is considered bold, but when the script runs without errors, it doesn't change the font weight at all. I'm editing fontSize and textFont in the same script and they work, so it's not a question of the structure of the script, I don't think.
So let's say I have multiple instances of a text field, three in this case, all titled "Insert Date".I can see when I'm in the "Prepare Form" page, that the fields have number identifiers on them once there is more than one of the same namei.e.Insert Date#0Insert Date#1Insert Date#2I'm running some javascript script to set the font size of the field in question. I loop through all fields and set an if statement for fields named like the ones above:loop{getname // works as it should call this cFieldNamegetfield of getname // works as it should call this oFieldif (cFieldName == "Insert Date#0"){oField.textSize = 10;}}Unfortunately this sets the text size to 10 for all 3 fields, not just the specific one (Insert Date#0). It seems I'm not actually referencing that individual field. I absolutely need the field name to be the same. What can I do to achieve this?
var aNumFields = ["FieldA", "FieldB", "FieldC", "FieldD"];function Min("aNumFields"){ // n = number of fields that have a numerical value > 0 var i = 0; for ( var i = 0; i<aNumFields.length; i++) { var v = this.getField(aNumFields).value; if ( v != ) { n++; min = v; } }}event.value = minValue;I have changed this script around so many times I have probably made it impossible to correct, any assistance you can give would be greatly appreciated.
Is it possible to code a field to log each time a user saves changes or edits the fillable form?
I have been given a task to add a plugin in Acrobat. There will be an icon in toolbar and clicking on that will open an explorer. When user select some text from pdf document then a context menu should open with some options in it. And when user picks an option then selected text becomes the part of explorer. All the selections that user will make becomes the part of explorer in a tree view structure. Once user save the pdf file then it should be saved somewhere in header so that when file is viewed the Adobe Reader then all the selections remain visible in the form of tree view.Can I create a plugin that contains above mentioned features? If yes then what should I read?There are so many things that I need. I have started to look into samples that are provided with Acrobat DC SDK and able to run those with Acrobat. Any help would be highly appreciated.Thanks
Hello,I'm trying to create a script that splits a document at each bookmark, including any nested bookmarks, and naming the resulting files after that bookmark name. I've got the name and first page right, but the end page of the document is proving to be an issue for me. My code is as follows:var bkmN=[];var bkmS=[];var bkmE=[];function getBkmInfo(bkm, nLevel){ var s=""; for(var i=1; i<nLevel; i++) { s+="-"; } bkmN.push(s+bkm.name); // START PAGE ============== // ========================= bkm.execute(); bkmS.push(this.pageNum); // END PAGE ================ // ========================= bkmE.push(this.pageNum-1); // ========================= if (bkm.children != null) { for(var i=0; i<bkm.children.length; i++) { getBkmInfo(bkm.children, nLevel+1); } }}getBkmInfo(this.bookmarkRoot, 0);bkmN.splice(0, 1); // Removes bookmarkRoot infobkmS.splice(0, 1); /
I am trying to add two fields for a sum in a third field, but only if the 2nd field is a positive number. The two fields I am adding are: “Total Hotel Expenses” and “Total ASP Less Per Diem” to come up with a total in the field “Total Expenses Due”. But if the “Total ASP Less Per Diem” is a negative number then I want it to add it as 0. Any assistance would be greatly appreciated…Thanks Patrick
I am trying to get the following If/Else statement to work and keep getting the "Syntax Error: missing ; before statement 2: at line 3" error.// Get the value of the input field, as a numbervar Overall Performance Rating = this.getField("Overall Performance Rating").valueAsString); // Set this field's value based on the input valueif (Overall Performance Rating<=1.0) { event.value = "UnAcceptable";} else if (Overall Performance Rating>=1.0 && Overall Performance Rating<=1.99) { event.value = "Needs Major Improvement";} else if (Overall Performance Rating>=2.0 && Overall Performance Rating<=2.49) { event.value = "Some Improvement Required" ;} else if (Overall Performance Rating>=2.50 && Overall Performance Rating<=2.99) { event.value = "Average" ;} else if (Overall Performance Rating>=3.0 && Overall Performance Rating<=3.49) {event.value = "Significant Results"; } else if (Overall Performance Rating>=3.50 && Overall P
I am trying to print a PDF file on citrix . While printing, it looks for .xdp file only at C:\users\user123\AppData\Local\Temp. Is there a way to make Adobe DC JavaScript to look for .xdp file at different location. I am using below code to printvar pp = oDoc.getPrintParams(); oDoc.print( { printParams: pp,
Hello everyone! I could use some help with a PDF document script.Let me explain my document a bit...I have a Weekly Checklist for my management team and it's formatted as a PDF Form. It's about 19 questions where the manager has to chose either "Yes", "No", or "N/A" from a drop down box. Any response that would be an exception from the acceptable answer requires an explanation in the comment section text field. Example: For Question 1, if the manager selects "No" when it should be "Yes" they are required to explain why in the comment section. Once all of the questions have been answered, I have a Email button that currently only checks to ensure the name and employee number is present. Once that's validated (whether it's there or not) a dialog box opens that would allow you to send the document to me as a PDF. It then resets the document.Here's what I would like...I would like to have a custom validation script set up that checks each one of the questions for the appropriate response w
I'm new to any sort of modifications in Adobe, but have done some things in JavaScript so forgive me if this isn't possible to do. I can try to be more specific if i need.
Hello friends, I would like to ask everyone's help to solve an issue. I created a verification profile for my documents in acrobat. Would you like to run it through some script, would that happen? Thank you for your help.
how to use my purchased Acrobat writer standard XI dll to use in C# to read write editable pdf forms[Question moved to the Acrobat SDK forum. -Mod]
Good evening, I am trying to figure out a way to unlock all of the form fields in a document, I have looked around online for examples but couldn't find any. Any help would be wonderful, thank you!
Hi,Could you help me to solve this problem?In a pdf form: an element of a radio button group (not all of the group) to be hidden if an element of an other radio button group is checked.Thanks a lot,bj
Hello,I'm putting in some javascript (still new to Javascript as well) on a new interactive pdf form that requires certain fields to be filled in. Currently, I've tested having this javascript code placed within the Validate > Run custom validation script and Calculate > Custom calculate script:var fieldName = event.targetNamef = getField (event.target.name)if (f.value.length == 0 || !f.value.replace(/\s/g, '').length){ f.setFocus() app.alert(fieldName +" field is required. Please enter a value.") } Each has their own problem. Validate will only alert if something is entered in, if the user just tabs over or clicks in another field no alert is set off.Calculate, will fire off each alert when one of them is triggered, which seems a bit annoying. Any suggestions to get this to work withou
hello can you execute javascript in acrobat dc to delete the same password in several files?
Hi,I am creating a basic PDF form survey with radio button yes/no questions and next / back buttons to show each page. When the user pushes the "next" button on page 20, page 21 needs to be shown only IF 3 previous questions on depression (1,2, and 3) OR three previous questions on irritability (6,7, and 😎 were answered yes (yes = 1, no = 0).Here is the code that is ALMOST working:Document level JSvar depressionchecklist = this.getField("Q1"+"Q2"+"Q3").valueAsString;var irritabilitychecklist = this.getField("Q6"+"Q7"+"Q8").valueAsString;JS for the "next" button on page 20if ( depressionchecklist == "3" || irritabilitychecklist == "3" ) {this.pageNum = this.pageNum = 20;}else {this.pageNum = 21; }Right now, even when the depression and irritability questions are all answered yes, when I hit the next button on page 20, it automatically skips to page 22 (it reverts to the else statement).It's probably some simple mistake with the code.... Any ideas?
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.