Unlock the power of Acrobat SDK through our community.
Recently active
I found how to set the defaults in a stamp dialog box for text boxes, dropdown boxes, and check boxes, but I cannot find out how to set a default for a radio box. For instance, in the code block below, it's easy to see how the textboxes and dropdown list will have their defaults set. But I have no idea how to do it for the radio boxes. Does anybody know the syntax for this?var builder = { // These map to Text Fields in the Stamp textBoxes: [ { field: "Name", description: "Name:", default: function() { return ""; } }, { field: "Company Name", description: "Company Name:", default: function() { return ""; } }, ], // This maps to a Popup Group in the PDF named 'Project' popupGroup: "Plan Section", listItems: [{ popupItems: { //list of items of Popup menu, positive number indicates default selection "Civil": +1, "Struct": -1, "Arch": -1, "MEP": -1 } }], // This m
I have a PDF with file attachments of several different file types. The attachments need to open from a button or link click. This is easily done with attached PDFs, but I also need to open XLS, DOCX, and PPT files. There is not an obvious way to make a button or link do this. Is there a JavaScript action that could achieve what I want?
Hi,I want to get the vector image coordinates from PDF files. I have try to lot ways but did not take the values.Please give the solutions for this query.
I use a json file for configuration information. During initial development, I stored it in the plug in folder. I can read it from there without any trouble. I recently tried moving it to the LOCALAPPDATA folder under a folder I created for the plug in. The ocde tests for existince of the file, which works fine and opens it for reading in a stream. But it reads no data. Other that the file path, the code has not changed at all. The existence check uses GetFileAttributes, which does returen the correct file attributes and ensures I have the path right.I know Acrobat uses the integrity functionality to run the instance of Acrobat with my plug in using the AppContainer model, restricting some user privileges. But reading (and I hope writing) seems like it should be allowed in the user data area.
Bookmarks don't seem to work when clicked on with the embedded pdf. It doesn't navigate to any page. It stays as is. Everything else seems fine. Currently embedded onto a WordPress site. Here is the code: <div id="adobe-dc-view" style=" height: 792px; width: 100%;"></div><script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script><script type="text/javascript">document.addEventListener("adobe_dc_view_sdk.ready", function(){var adobeDCView = new AdobeDC.View({clientId", divId: "adobe-dc-view"});adobeDCView.previewFile({content:{location: {url: "https://xxx.pdf"}},metaData:{fileName: "xxx.pdf"}},{embedMode: "FULL_WINDOW", showFullScreen: true, showAnnotationTools: false, showBookmarks:true, showPrintPDF: false}); });</script>
Hi, Hoping somebody can help with a VBA (using Excel) question. I have reasonable understanding of VBA but have never worked with PDF forms until now.I have written VBA code to extract field names from a PDF document (Adobe XML form created in Adobe LiveCycle I beleive).Example field name = "data[0].mainpage[0].header[0].Table1[0].Row4[0].SUPPLIER_CONTACT[0]" How can I get the VBA to write to the PDF form fields? I have tried:fld.value = "TEXT"jso.xfa.form("data[0].mainpage[0].header[0].Table1[0].Row4[0].SUPPLIER_CONTACT[0]").rawvalue = "TEXT"but these do not appear to work. No error messages. For info, here is the VBA for getting the field names:Public Function PDFForm2()Dim acroApp As Acrobat.CAcroAppDim PDDoc As Acrobat.CAcroPDDocDim jso As Object, fld As Object, page As Object, xfaObj As ObjectDim numFields As Integer, FldNum As Integer, numFldNodes As Integer, numPages As Integer, PageNum As IntegerDim fldName As String, FormPath As String, XML As String, XMLPa
try to open a pdf file but it ask for upgrading to the latest version.I check for update and it shows the latest version
I would like to modify a preset acrobat action(.sequ file) (File Name Stamper) to remove the extension from the file name before it places the stamp. Ideally it would be a check box in the Action Settings dialogue. I have no scripting/programming experience. Is this something that is straightforward to accomplish? Thx. Apologies for being clueless.Derek
The default Comment Statemodel does not support all our needs, therefore I looked into the option to add via collab.addStateModel a custom Statemodel. (I'm using Acrobat Pro DC (32-bit)My example code is below.Note: To make shure that importIcon works, I allow the dialog to pop-up for now. try { var myDoc = app.newDoc(); var myAnnot = myDoc.addAnnot({page: 0,type: "Text",point: [300,400],name: "myAnnot",}); // import icon (20x20 pixels) from the file specified myDoc.importIcon("my_initial"); oIcon_initial = util.iconStreamFromIcon(myDoc.getIcon("my_initial")); // import icon (20x20 pixels) from the file specified myDoc.importIcon("my_accepted"); oIcon_accpeted = util.iconStreamFromIcon(myDoc.getIcon("my_accepted")); // import icon (20x20 pixels) from the file specified myDoc.importIcon("my_marked"); oIcon_marked = util.iconStreamFromIcon(myDoc.getIcon("my_marked")); // import icon (20x20 pixels) from the file specified myDoc.importIcon("my_negotiate"); oIcon_negotiate = util.i
Hi.We run an events website with 100s of events, each with information on event date, location, purpose, target customers, speakers, speaker photos, agenda, location maps, image gallery, sponsors, pricing options, etc. This looks great online. We want to now automate the creation of PDF brochures, one for each event, by injecting the content and images from our website CMS into Adobe back-end and designing a standard event brochure template to display it with branding etc. We'd then trigger a brochure PDF to be regenerated whenever any content in the corresponding event changes. We have all the CMS API, so looking to undertand how to feed into Adobe back-end. Any ideas how this might be done please?Thanks,Simon.
We are trying to leverage Adobe User Management APIs to add new users and associate Products with them.We found this document in the Adobe Developer Portal. https://adobe-apiplatform.github.io/umapi-documentation/en/ While in this document, the UserActions work fine ((https://adobe-apiplatform.github.io/umapi-documentation/en/api/ActionsCmds.html)). but we are not able to assocaite a product with this newly created user. The Product APIs have been deprecated and we have not been able to find an alternate. Can we get some help ? Thanks,'jayant
I'm not sure I quite understand what the Doc.flattenPages() method actually does. Perhaps I haven't been using a too much complex document yet. I just don't know what to expect from making this function call. Can someone please explain to me what the Doc.flattenPages() method does in particular?
Hello,May be the question has already been answered but I am strugling to find the right answer for my situation.I have a pdf form. The user input a date "from" and a date "to". My script is able to get the difference in days. But how:exclude weekendscreate a fuction with all holidays in a year to automatically exclude them during calculation?Here is my script. Please take into consideration my input field, I am new to adobe script.// get the end date valuevar cEnd = this.getField("To").value;// get the start date valuevar cStart = this.getField("From").value;event.value = "";// compute number of daysif(cEnd != "" & cStart != '') { // convert date strings to objects var oEnd = util.scand("dd/mmm/yyyy H:MM:SS", cEnd + " 0:00:00"); var oStart =util.scand("dd/mmm/yyyy H:MM:SS", cStart + " 0:00:00"); // convert into days since epoch date var nEnd = Math.floor(Number(oEnd) / (1000 * 60 * 60 * 24)); var nStart = Math
I am using Adobe Acrobat for the first time. I need to embed the fonts for a PDF and I'm using Microsoft on my laptop. What's the best way to do it please?
As is stated above, this topic is a submission for a feature change. I request that OCR have the option to be disabled. It's pretty straightforward what I am asking here, the purpose is to address those who do not benefit from said feature, but it is currently always on. Feature settings are hidden within the feature instead of in the preferences window, I also request that all settings for tools, also be located in the preferences window.
Hi everyone! I'm a beginner and don't know anything about writing code. I am trying to create a form for work and want the last box (Text 3.4) to show as a percentage. The formula that I want this form to calculate is [(Text 3.2 + Text 3.3)/ (Text 3.0 + Text 3.1)] * 100%. Can anyone please help me? It would be so greatly appreciated. Thank you!
Hi I have a very long document with lots of internal and external hyperlinks - is there a quick way to check for any broken links in Adobe Acrobat Pro DC e.g. Like you can in Dreamweaverthanks heather
Can our company can use this API for POC ? What precautions do we need to take care when we are doing POC, so it will not break license terms?
hi all, I'm making buttons in some PDF documents using javascript. They all work except the most trivial thing, I can't make a button that does the SaveAs.The javascript is trivially this:app.execMenuItem ("saveAs");When the mouse is released it does absolutely nothing, looking around does not seem to me that the syntax has changed, can you help me?
I've just downloaded a legacy version (from Adobe's /olddownloads page) of Adobe Acrobat Pro XI (to install on a new Windows 10 laptop), and it goes through the full installation, including selecting English as the language. But when it's finished installing and I open the program, a small window entirely in Japanese (or some other Asian language, but kanji-type characters, wholly unreadable to me!).I called Acrobat support, but the agent couldn't figure it out and sent me to a chat support, this forum. Anybody got a clue?thankscharles
Hello - I've been successful in creating a custom Balloon stamp, using the guidelines from Thom Parker'as excellent book "All ABout PDF Stamps..".However, when I move my stamp PDF to my user's PC, I get this error:NotAllowedError: Security settings prevent access to this property or method.Info.exhibit:8:App UserData2:CalculateAgain, it works on my PC.I've been searching and working on this on and off for a few weeks, and I am not making progress. Do I need to go the "trusted function" route?What am I missing?Thanks very much in Advance,Brian
I have Acrobat Reader DC. I have windows 10 enterprise software.New business laptop.On my old machine, I used to be able to right click on a jpeg and convert to a PDF. How do I add that function? I don't see it.Any help would be appreicated
how to change page orientation from portrait to landscape in an existing PDF ?
We have a plug-in application, which was implemented for 32 bit Acrobat was fine on the same.Recently we got a requirement for 64 bit version of acrobat, so I followed the steps mentioned in 64 bit SDK and upgraded the same application for 64 bit acrobat. I was able to compile the code and successfully created the plug-in, which I added to plug-ins folder of acrobat (say.... Adobe\Acrobat DC\Acrobat\plug_ins). But when I try to open the acrobat, it is not opening the acrobat. (and when that plug-in removed from the folder, acrobat opening).When I try to debug the code, below things are shown. What causing the acrobat failing to open in my Plug-in application.Please help me to sort out this issue.
Hi guys! I am a beginner at this and have searched a lot for anwers but haven´t found any that fits my problem.I have a PDF form timesheet that uses four time inputs. ex. time1in:07:00, time1out:11:00, time2in:12:00, time2out:16:00. Now I want to sum this up in a total hours field and need help with the script to perform this correctly.I have found a script that works to sum up the total hours of time1in and time1out but I do not know how to extend the script to also add time2in and time2out to the total sum.The script I have is:// startvar start = this.getField("8").value;var startArr = start.split(":"); // finishvar finish = this.getField("9").value;var finishArr = finish.split(":"); // differencevar hourDiff = Math.abs(finishArr[0] - startArr[0]);var minDiff = Math.floor((Math.abs(finishArr[1] - startArr[1]) / 60)*100); if (minDiff.toString().length == 1) minDiff = '0' + minDiff; var output = hourDiff + "." + minDiff;event.value = output;&n
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.