Unlock the power of Acrobat SDK through our community.
Recently active
Hi Team,Can Anyone provide the sample code to AddSticky Note Annot to Existing PDF File using VBA code using Acrobat SDK(JSObject).ThanksMahesh
Hi,After several researches, I discovered that there were a lot of interesting functions in Adobe that I could use for my project, but I discovered that these functions (like for example saveas ()) can only be used on the Adobe console, is it possible to use them elsewhere? in my case, I would like to use them in Google Cloud Functions with Node.js ?! Thanks
Ok. Could someone please help? I've been tasked with taking an excel order from and creating a fillable PDF. Here is where I lose it. I need to create a calculation with user filled amounts that calculate sum and a discount.Subtotal + Misc Amount + Shipping Costs = Final TotalDiscount in percentage will applied to final total.The calcualtion for the final total I get if there is no discount. The discount is a user filled field that may or may not apply.If there no discount then the field need to be empty. If the user inputs a number then it must show a whole number with the percentage sign and calculates the final total.Any help would be great. I'm a scripting noob.
I have 10 Dropdown boxes all named "satunsat.#" (# is 0-9). I want to count the number of "SAT" and "UNSAT" answers and provide a percentage. The percentage is no big deal I already do that in a couple of other fields. But how do I get it to count those answers? Also I use "-" for my blank value and not all 10 dropdowns will be used. It varies depending on information available. So sometimes I will have 6 total answers, or 5, or 10 or even just 2. -SATUNSAT
I'm on macOS Mojave, version 10.14.6 and using Creative Cloud Adobe Acrobat DC version 20.0. Where the eff are Dynamic Stamps/Created Stamps stored on here?? I'm trying to create a dynamic stamp, and every tutorial I've found says where to find the stamp files but so far that spot does not seem to exist for me. There's gotta be a better way! UPDATE:Okay, of course, I found it immediately after posting this question. Here's the link that helped me solve it, courtesyof Adobe Community Professional Thom_Parker, in case anyone else needs it: https://www.pdfscripting.com/public/Installing-a-PDF-Stamp-into-Acrobat-Macintosh-and-Windows.cfm
I have a PDF document that has a mailto: link inside. When I click the link I am presented with an Outlook email to the recipient but I want to add the document as an attachment in the process. Suggestions
Hello there,Is there a way to change the value of a Radio button with some kind of JavaScript "If function"?The dropdown box /pixelamount/ has 3 options: 1024/2048/4096 To every option there are 3 radio buttons /Group1/: A, B, CMy problem is that every option should have a radio button with different value e.g.:1024: A = 102048: A= 204096: A= 30and i have no clue how to achieve it. Thanks in advance for any tips!
There are two "Date Field".If there is no input in one of them, I want to reset the other "Text Field", but I can't. The following JavaScript is embedded in the "Text Field" that I want to reset. In the example below, the "Text Field" is "AA_A".The "Date Field" are "Day_Start" and "Day_Set". By the way, "Text Field" is numeric.And also readonly. var AAAa = this.getField("AA_A");var AAAb = AAAa.value; var DayBa = this.getField("Day_B");var DayBb = util.scand("yyyy/mm/dd", DayBa.value);var DayBc = DayBb.valueOf(); var DayCa = this.getField("Day_C");var DayCb = util.scand("yyyy/mm/dd", DayCa.value);var DayCc = DayCb.valueOf(); All of the following do not work. (1)if (!DayBc || !DayCc ){this.resetForm("AA_A");}; (2)if (DayBc == null || DayCc == null ){this.resetForm("AA_A");}; (3)if (DayBc == undefined || DayCc == undefined ){this.resetForm("AA_A");} (4)if (DayBc == '' || DayCc == '' ){this.resetForm("AA_A");} (5)if (DayBc ==
Hello,I'm trying to write a function to replace text inside FreeText comments without losing the Rich formatting of said comment. Previously I used a .filter.map(replace) over the getAnnots() array of a document, but this removes any formatting and makes everything use the richDefaults. The nested for loop I have right now (see below) is returning the correct value in the console, but I can't get it to output to the annotations themselves. Could anyone please help me figure out why?var replaceItem = "abc123"; var replaceWith = "def456"; var annots = this.getAnnots(); var toReplaceItem = RegExp(replaceItem, 'g'); for(i=0; i < annots.length; i++){ if(annots[i].type == "FreeText" && annots[i].contents.search(toReplaceItem)!= -1){ for(j = 0; j < annots[i].richContents.length; j++){ annots[i].richContents[j].text = annots[i].richContents[j].text.replace(toReplaceItem, replaceWith) } } }
I do not have any JavaScript experience and am hoping that someone can assist me with a Adobe form calculation.I am creating a Pass/Fail scorecard that will take a value from a field (Calc_OScore) and then return a word (Perfect!, Pass, Fail) based on the score.Due to my lack of experience and ignorance, my attempts to make this work have been nothing more than copy/paste trial and error from others' scripts and experiences.I've tried this:var text ;if ("Calc_Score" == 16) {text = "PERFECT!!";} else if ("Calc_Score" > 11) {text = "PASS";} else {text = "FAIL";}And one of these:var int1=this.getField("E_score").value;var int2=this.getField("S_score").value;var int3=this.getField("P_score").value;var int4=this.getField("C_score").value;var tSum = Number(int1+int2+int3+int4);var rVal = 'NULL';if(tSum===16){rVal='PERFECT SCORE!';}else if(tSum>11){rVal='NOT PERFECT BUT OKAY!';}else{rVal='FAIL';}return rVal; Can anyone help out here? If it makes it easier to understand what I'm try
I have already disabled the JavaScript Feature completely by registry trick. But however when users open a document which has JavaScript which user have a option to enable JavaScript which we want to restrict, this is applicable to all document which has the JavaScript based.
How can I can find the oCoords (field.rect) information for each check box in a check box group? I'm only able to find the first set of coordinates. It seems that the function getNthFieldName is also seeing the entire checkbox group as 1 field. I tried to play around with exportValues and field names but I was never able to locate the .rect information for all exportValues. I have to change hundreds of check box groups into radio buttons. I made a lot of progress thanks to this forum and older post but at the moment I can only create all the correct radio buttons at the location of the first checkbox group field. This means I have to manually drag and drop them to the correct field location. Example:In the example below you can see I can only find the location of 1 box even though there are 3var fieldName = getField("Check Box Group"); fieldName.rect 279.6754150390625,313.5375061035156,297.6754150390625,295.5375061035156 fieldName.exportValues 1,2,3 &n
Editing this post as I solved my original two problems. But I've encountered a new one. I'd like a two fields to be required only if a checkbox has been checked. One field is a text box, the other is a signature field. I don't know how to edit the Mouse Up/Mouse Down/Etc. options of the checkbox so that the other fields are required ONLY if the checkbox is checked. Thoughts?
Hi,please help me solve my javascript problem. I'm not a specialist and I can't handle it.I have in PDF form ex. four number fields. A, B, C, D.Field A is the entrance. Fields B and C do calculations (ex. A+B+C). Field D=A+B+C this is the result.Now I want to make an auxiliary field D1.Script operation. After entering the D1 value, the script substitutes the A value, checks the calculations and the D result, and works until the D = D1 condition is metThank you for any tips.EditI came to this solution, but the result is always 1 too bigfor (var i=1;this.getField("D1").value!=this.getField("D").value;i++){this.getField("D").value=this.getField("A").value+this.getField("B").value+this.getField("C").valuethis.getField("A").value=this.getField("A").value+1};
I am trying to figure out the best way (or any way) to compare and merge two PDFs. I have two versions of a document - one is clean, and the other is a working copy with comments on it. These documents are frequently updated, with new pages being added in. The pages that are added are sometimes added at the beginning or the end, but sometimes they are scattered throughout the document. It is important to have one clean copy and the separate one with the comments. I cannot figure out a good way to update them each without having to insert the pages individually on each document. What I am trying to do is to be able to update the clean version, adding in the pages where I need to, and find some way for Adobe to add the new pages into the working copy. I can perform the Compare Documents feature and be able to identify the pages that were added, but I cannot figure out how to get those added pages into the working copy automatically, while still r
How do you create a maximum on a fomula.Expense sheet10.00 Breakfast10.00 Lunch10.00 DinnerMax calculation $25.00
Hello, I have a PDF file containing some cutting marks as a spot color named "cutter". Is there a way with the PDF Library SDK to create a method that can output 2 files, one with only the cutting marks and the other without the cutting marks ? Thank you for you answers
Hi,I need to zoom a part of a 3d modell e.g. one node/mesh by javascript. I aready could select a node or a mesh but I'm not sure how I could isolate it.In the adobe GUI is very simple to do it "Select a Node"-> "Right click"-> "Part options"->"Zoom To Part". I know there are some more options in the API which are not documented: How to make spin tool defaultOption2: Is a possible to set the Camera-Object to a target like a node?Best regards,KaterK
Hi There,According to this document here: https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf it's possible to open a PDF file specifying a bunch of useful parameters. While instructions for Windows is pretty clear, it's unclear as to how/if the MacOS version even supports this anymore. I've found that it's possible to pass the file name to the MacOS app, but it won't take any additional parameters (or at least I haven't found a way how to). I also noticed that the reader app registers acrobat:// and acrobat2018:// protocol handlers on MacOS but I couldn't find any information on what the URI supports (if at all). Many thanks.
While opening an Adobe Acrobat invoice I receive the message "To view the Flash technology content in this PDE file, please install this version of Flash Player that supports Adobe Acrobat Reader and Adobe Acrobat."I have installed the Flash Player on my computer and am able to open the invoice.The problem is that I need to submit this invoice to get a warranty replacement and the company I am emailing the invoice to won't download Flash Player and therefore they can't open the Adobe Acrobat document.Now that I have this document opened within Adobe Acrobat on my computer what steps can I take to save this document in a format that won't require Flash Player to open it?
I think this may be a unique request, but I am looking for a method whereby I can include a video record button within a PDF file. So this works like this, the user of the PDF file would complete any necessary field entries and when completed would be presented with a video record button. This button when pressed would then allow the user to record and imbed a video specific to themselves, perhaps to document the fact that they have completed the entire PDF. I want to use this in lieue of electronic signature.Any thoughts?
When attempting to uncheck the "Enable global object security policy" option under Preferences>JavaScript, occasionally the box won't remain unchecked. So I'll go in, uncheck the box, close Preferences, then go right back into Preferences>JavaScript and the box will be checked again. Any idea what's going on here, and what to do about it? Update: No settings under Preferences will save when I make changes. None of the checkboxes remain checked/unchecked after I close Preferences and return to it. I uninstalled and reinstalled Reader also, no change.
Hi,Odd question...I am trying to limit users of a PDF mental health survey form to navigate through the pages with only the "next" and "back" buttons I provide for them on each page. This is because I don't want them to see future pages without first responding to the yes / no question on each page (the flow from one question to the next is very important).I have the survey set to open in presentation mode (an Indesign option) so they do not see the scrollbar in Acrobat Reader to discourage switching pages without answering the question, but I wish I could completely limit it.Is there a way to stop them from switching pages using the scroll wheel on their mouse or their keyboard without answering the page question and then pushing the "next" / "back" button?Thanks!
I can successfully sign a document using a JavaScript via the Action Wizard, but according to the JavaScript for Acrobat API, it requires that I log in to security.PPKLiteHandler using a Digital ID file (.pfx file extension) or PKCS#11 library. I would like to digitally sign the PDF via JavaScript using an enterprise-level certificate from the Windows Certificate Store. How can I do this programmatically? Thanks,Mark
Hello, I was working on an interesting project for a client of mine and I came across an interesting problem I was hoping someone could help me with? I was scanning through thousands of pdfs for some information and extracting this to Excel for processing. I used the acrobat library to work with the pdf data. The problem I was having was that when the program encountered a password protected pdf, it would bug out until the cancel button was pressed. I couldn't find anything in the library documentation on how to handle password protected pdfs so I used window api to click the cancel button. A direct side effect of this is that I am unable to do anything on the machine whilst the program is running as the windows api would activate the acrobat window.When not opening the pdf to look for the password button (and not using the windows api) I didn't have this issue as it was doing all the reading and copying text in the background. My question is this: is there a way to find out whe
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.