Unlock the power of Acrobat SDK through our community.
Recente
Hello, I am tasked with looking for several professional libraries needed for product development in my company. One of our planned product's core features requires click event handling within a PDF file, or the ability the detect bookmark/hyperlink click events. I can't seem to find any help about this specific issue, does anyone know if it's possible? And if it is, can it be done with natively with C#? Does it require a complicated workaround or JS event handling?Thanks, DK
Hi,My aim is to lock a number of fields in a form with a password chosen by the person who will administrate the form. It is not a question of high security, it is only to make sure that the fields will not be modified by accidental clics or deletes.I was able to accomplish what I wanted with the code suggested in this post : Re: Form Field Security .I slightly modified the code for the password to be extracted from another field. Here it is :--------------------------------------------------(function () {// Get one of the fields in the groupvar f = getField("admin.logo");// Determine new readonly state, which// is the opposite of the current statevar readonly = !f.readonly;var readonly_desc = readonly ? "deactivate" : "activate";// Ask user for passwordvar resp = app.response({cQuestion: "To " + readonly_desc + " the fields, enter the password:",cTitle: "Enter password",bPassword: true,cLabel: "Password"});var pw=this.getField("Mot_passe").value;switch (resp) {case pw: // Your passwor
This is my current script:if(event.value != ""&& this.getField("Name").value != ""&& this.getField("Phone Number").value != ""&& this.getField("Email Address").value != ""&& this.getField("Directorate").value != "Select from Dropdown") {this.getField("User's Signature").readonly = false;} else {this.getField(User's Signature").readonly = true;}
Hi,I happened to have to work in a very old environment with Adobe Acrobat 7.1 installed, but I think even newer version does not have an API for this.Say I have some random data var data = 0xe3f2b1 and I want to save this data alone to the hard drive. Would there be a way to do this?I tried to convert to string, create data object and then export data object, likevar str = String.fromCharCode(0xe3, 0xf2, 0xb1);this.createDataObject("MyData.dat", str);this.exportDataObject("MyData.dat");This ended up not saving any byte greater than 0x80 (not saving anything in extended ASCII range). If I have a byte 0xb0, it would be saved as 0x80.Just wondering is there any way to export random data out of the Acrobat? Even if emailing the data file out as an email attachment would be fine.
Hi all - I am developing a Acrobat Javascript to download survey results from Epicollect 5 (a basic data collection app) and populate them in a PDF form. I am able to make HTTP requests using Net.HTTP.request to authenticate and to retrieve the text results from the survey. But the survey results also include a set of photos, which can be retrieved individually by a GET request. Can anyone provide any hints or examples of how to add a .jpg image as an attachment from the stream result from a web call?My idea is to download and add the images as attachments, then switch the image fields on the form to display those images. Thanks,Doug
Ok, so I've done some research on trying to add the auto tab feature to a fillable form I'm creating. It's a questionnaire and I need it to auto tab onto multiple lines (2 different text fields), I needed to create enough room for someone to write anywhere from 20-150 characters without having to tab to the next line to complete the answer. I'm no where near understanding javascript, but in my quest in trying to figure out how to auto tab I learned that I need to input the correct javascript in the first text field properties under the format tab. I've came across multiple forums that have showed me similar javascript, but I cannot get it to work in my fillable form. So hopefully anyone who replies to this can dumb it down a bit for me to understand. Or at least point me in the right direction, any help is appreciated.
I don't know Javascript, but I know that what I'm looking for is a basic script.Anyhoo.....I have two fields.The 1st field is blank, unless an amount or number is entered.The 2nd field divides the number from the 1st field into 12 and then adds 2.I was able to figure out how to get field 2 to function the way i'd like, but field two shows the initial value as 2, and I need the field to be blank.I need it to be blank because there is third field that adds the sum of the second field automatically, and there are multiple field2s so the 3rd field automatically adds the field 2sDoes this make sense? I hope someone can help out.Thanks
Thank youBob
Hello,I need to create a button that will save my file on a specific folder with the filename of one of the field in the document. Is this possible? I guess with a javascript but I have no idea on how to do it.Thanks a lotLuca
Hello!I am running into issues and I can't seem to figure out why.I'll try to write this simply... I am working on a paperwork package for a dealership to handle multiple vehicles sold at once. I have a couple line items that are divided evenly amongst all vehicles sold. If it is NOT able to be divided evenly, the remainder is calculated and added or deducted from the first vehicle sold. That is all working just fine. My problem is here... If the item is not divided evenly, a warning icon appears next to the line. This is the function I have written:function warning(TotalField,PerField){var PerName = event.target.namevar PerRounded = round(PerField,2);var Count = this.getField("SOLD_COUNT").value;var Offset = PerRounded * Count;if ((Offset == TotalField) || (Offset == 0))this.getField("WARNING_" + PerName).display = display.hiddenelsethis.getField("WARNING_" + PerName).display = display.visible}The function seems to be working backwards. I want the icon to appear ONLY when Offset
Hi.I have developed a plugin which delete the text element from PDF.In some cases, the value obtained from PDEElementGetBBox return the different value from two text element at same position within PDDoc objects(objectA and objectB).objectA makes from objectB. const PDDoc objectA = PDDocCreate(); PDDocCreatePage( objectA, PDBeforeFirstPage, srcrect ); PDDocReplacePages( objectA, 0, objectB, pagenum, 1, false, NULL, NULL, NULL, NULL );I Used PDEElementGetBBox to same position text element within objectA and objectB.but return value(textBBox.left and textBBox.right) is different.can you tell me reason about this case happened.
I have an Adobe form with fields that have a parent, child relationship. If I check (or uncheck) Check Box7 which is the parent, which would indicate it is Not Applicable,how do I get the Child checkboxes (Check Box 8, Check Box 9, Check Box 10) to check or uncheck?In addition, a child should be able to be selected without selecting the parent or the other children Check Boxes. So if the Parent field is applicable, but Check Box 9 is not applicable, I would need to be able to check just Check Box9 withoutit affecting any other check boxes.I tried some of the suggestions I found online but keep getting syntax errors and was not able to use them....Please help!
I have series of combo boxes and my client would like all seven options to show up when the dropdown appears. Right now only six show up. Is there a way to use Javascript to se the dimension of the drop down or the number of lines. (I not sure of the terms to search as i am not a coder.)TYIJJ
If I put in a function that is incorrect the debugger flags it as a bad function. But var x = 5 does not store the variables
I need to be able to grab the invoice number from pdfs and add to filename. Customer always sends their invoices in the same format. Is there a way to get the text from the pdf and add it to the filename while resaving the document?I am using DC professional
Hi,I got a request of 342 pages PDF document. I need to add a textfield at the bottom of the first page and that should duplicated for all the pages, by mistake I kept the field size small. So, I need to delete all the fields and that is so difficult to delete the field in all the pages.I am going to add a button on the first page, when I click that button all the fields should be deleted instead of hiding it.I need a javascript to do this work more easier.
I am working on a rather large form for my company. Here's the general gist:User selects from 4 different radio buttons groups on page 1User hits "COMMIT ANSWERS" button which calls a function to spawn different pages dependent upon their answersIf user ignores Commit button, an app alert prompts them when the pages closes.Currently, if someone changes any of the answers, hitting the Commit button again will update the package correctly. If we lived in a perfect world this would sufficient, however as the typical user will ignore that button... I would like an app alert to prompt them to commit their answers again when they change an answer (or change an answer and then navigate away from page 1).Any help would be greatly appreciated!! Thank you!
I wrote the following JavaScript that runs when a customer "MouseUp" (clicks) a radio box. It requires them to fill out a field when the "yes" box is checked:f="Explanation";e="Yes: custom design";tField=this.getField(f);if(event.target.value==e){tField.required=true;}else{tField.required=false;}"f" is the field in which the customer types their explanation, and "e" is the "yes" checkbox. The script is run through the "properties" of the "yes" check box.My issue is that there is also a "no" box as part of the radio family. So, when the "no" box is clicked it "un-clicks" the "yes" box. Unfortunately, this does not "un-require" the explanation field. Can someone suggest an edit to my JavaScript to make this happen?(I apologize if my explanations are poorly worded. I am very new to JavaScript)
I have a writ table pdf that has a lot of calculations and JavaScript in it. I've made many of these in the past and now I'm having an issue with one of them where it will not email. Any ideas?
I've been debugging a crash in an application which appears to stem from the Acrobat Reader ActiveX components, when Acrobat Reader DC 2017 is installed on the computer. The application is a native Windows application written in C++, but I cannot easily create a sample project for it (inherited code base, not my forte), but I'm getting the same error (Structured Exception) from a simple test/repro project made in C#.In this specific crash instance, it appears that the key step is performing any key press operation, within the control, after loading a document. This brings up the special tools in the right-hand side of the viewer's control area.The sample C# repro project can be downloaded here: Dropbox - AcrobatReaderCrash.zip , and the steps to reproduce from it are as follows:Start the application, with or without debugging enabledClick on either of the "Load" buttons, at least once, up to however many you'd likeClick within the viewerPress the "Esc" keyClick the load buttons again,
Hi all,I'm in the process of batch adding metadata to PDF documents in Adobe DC.My script is working for all the default elements like Title and Subject, but I'd like to be able to add the key value (name, value) pairs for custom properties as well, but I can't figure out how to access the custom properties to write to them.Can anyone help me out with this?
Is there a way to use a button control, (or with) javascript so that when selecting the button control the data in the form dynamically updates a row in an Excel spreadsheet?
Hi,I got a request of one page PDF document from my client via email.In the bottom, I'm having a submit button where I need to attach the PDF into outlook and that part has been done. When I click the submit button new mail is generating, but I need to attach the pdf file by replying to the original Client email. So, for that I need to find the email subject which the Client has sent.I want a javascript code to do this work.Kindly assist me by sending the JavaScript code.Thanks in advance.
Hi all,I am creating a component for a server based application where we take an existing PDF and want to apply encryption.The certificate used to apply the encryption can be identified but I need help which Adobe component to be used best and which calls to be used best in a C# .NET 4.0 server application.All users have Adobe Acrobat Standard installed on their machines.ThanksDaniel
I need to be able to add and place one or more TIF images into a page in a PDF and save it as PDF/X1a. I am using Acrobat DC and the JavaScript interface right now.I have tried successfully creating a Button field where the image should go, and then use importIcon() to import the image, and buttonSetIcon() to insert it into the field. But, I don't want a button field in the PDF.I have also successfully tried using addWatermarkFromFile which works great with one problem: The image has a transparency property and because of that I can't export to PDF/X1a.Any help is appreciated.
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.