Unlock the power of Acrobat SDK through our community.
Recently active
HiI have a relatively complicated form that is using buttons to show/hide multiple layers.Everything is working well, but I am trying to find a way for the layer visibility state to be saved when the file is saved, so that when the PDF is next opened the layers are still in the same state.Is this possible?
Hi,I'm currently doing some coding task to export pdf files to doc ones. I tried to use batch sequence but Acrobat will eventually pop up error messages or just exist itself for some files. To get the things under control, I tried to use AIC (for excel VBA) to export them one by one, but met barrier for using jso.I tested the basic AIC function by using the following code and it was working correctly :Sub test() Dim AcroApp As Acrobat.CAcroApp Dim theDocument As Acrobat.CAcroPDDoc Dim bm As Acrobat.AcroPDBookmark Dim thePath As String thePath = "C:\temp\test.pdf"' Set AcroApp = CreateObject("AcroExch.App") Set theDocument = CreateObject("AcroExch.PDDoc") theDocument.Open (thePath) MsgBox "Number of pages: " & theDocument.GetNumPages theDocument.Close' AcroApp.Exit Set A
Hi All,This is my first attempt at using Javascript...I am attempting to create a Save As button on a form that will:Create a file name based on fields;Save to a specific folder (And if it doesn't exist then create folder);Bring up the "Save As" box for confirmation (as opposed to a silent save);Bring up a warning IF Adobe is going to save over an existing pdf (aka has the exact same name);Close Adobe after all of the above is executed.So far I have been fairly successful. I have been able to do a silent save, saving to a specific location and saving the file name based on fields. I need help building the rest of the functionality into the code if possible.Thanks in advanced!-------------------------------------------------------------------------------------------------------------------------The code I have so far is:Trusted Level Function saved in Notepad under the Adobe / Javascript foldermySaveAs = app.trustPropagatorFunction(function(doc,path) {app.beginPriv();doc.saveAs(path);ap
Hello,I am trying to poplulate a textbox with the export values from multiple selections from a Dropdown List Box. For example, my dropdown list box may have: Item Value/Export Value:Posting Journal Entries to General Ledger/F_GL_POSTBudget Adjustment Entry/F_BD_ENTRYetc. I want the user to pick from the descriptive terms (the Item Value in the Dropdown list), but have the more technical description (the Export Value) poplulate in the text box. The user picks as many Item Values as they need one at a time. If they pick one they don't need, they pick it again and it is removed from their selections. I found a DOCUMENT LEVEL script online that works for this EXCEPT that it provides the Item Values rather than the Export Values. I need the Export Values in the text box, not the Item Values. Here is the script:function fillRoles(doc, fieldName, newValue) { var ar = []; // Get the value(s) currently stored in the dropdown value and // convert them to an array
Hi, Am wondering if there is a script that would allow for a single page of field entries a user has made, to be cleared in entirety, likely using the function; this.resetForm() Ideally looking to achieve this with script that doesn't require naming each field individually (lots of fields!) like the example shown below, but perhaps just allows the reset of the page itself?. this.resetForm(["Field1", "Field2", "Field5"]); The standard reset form function in DC Pro is somewhat annoying in as much as if you then add more fields later on after setting which specific fields you have ticked earlier on in making the form, it seems to add those new fields as well, which is frustrating as quite often you might want to adapt and create more fields etc. later on.
I am looking at the SDK plugin sample SelectionServer and I am not seeing how to change the default folder icon to something custom. I tried "AVToolBarSetIcon" but that didn't seem to affect the icon that is displayed on the Tools page.
When the user changes the size of text in their window display options the custom icons of the sample plugin get really small. The native icons resize appropriately. Is there anyway to get the custom icons to behave like the native icons? 1920 x 1080 with text size at 100% 1920 x 1080 with text size at 175%
I've created a collection of customized dynamic stamps with a touch of javascript functionality, and am trying to find a way to share the whole collection throughout my workspace. The best I've worked up so far is them creating a number of "blank slate" stamps, and by-hand copying over the form fields I've made in the set to their own blank slates. This isn't quite as elegant a solution as I was hoping for, but creating a new collection and replacing the Acobat-made custom stamp file with my own doesn't lead to the creation of new stamps, and simply selecting one of the custom stamps from the file as a new stamp replaces all of the dynamic aspects/functionality that's built into them.Does anyone have recommendations on sharing the PDF containing my stamps with others?Thanks!
Buenas tardesCon que tiempo de anterioridad se debe cancelar la suscripción antes de que esta sea renovada automaticamente .
I have mailed to commercial Adobe, but no reply in more than a week. So I'm trying to ask here.I have used the PDF Service API to generate PDF from DOC, but I wonder if there is (as a payment SDK or so) a package that I can install on local server, without external connection, to generate PDF in the same way?I need to setup a project for a Government organization, and I must avoid any external connection, API, or microservice.
I would like to know what script to use to have a value assigned (value of 1) to a checked box (named 1-1) only when checked.
Hi,How to get this container Path coordinates from PDF File.
Hi, I am creating a PDF form with numerous fields including dropboxes and complimenting text fields, I can work out the export value for most of the options, but I also have the option for people to enter custome text but cant figure out how to make the export option to be blank to corresponding text box. I have attached some screenshots for explanation. I want the blank field to export nothing to the text box. I am sure its probably easy to do but for the life of me I cant seem to work it out
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?
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.