Unlock the power of Acrobat SDK through our community.
Recently active
Hi folks.First time posting in this community.I have a large library of PDF's. I have been creating and populating custom document metadata for each file using javascript containing barebones code such as:this.info.Name1 = "ACME Company"; this.info.Name2 = "1500"; this.info.Name3 = "2021-01-01"; . . .and then run it as a batch script.Through occassional sloppy coding, sometimes the custom property becomesthis.info.Nmae1 = "ACME Company"; //or// this.info.2Name = "2000"To fix these mistakes, I'll write a script with the linethis.info.Nmae1 = null; this.info.2Name = null;I checked this snippet in the javascript console and I can see it has removed the offending document data object but the change is not persistent. After I save and close the document, it remains. After each console entry I check it in the Documents Property → Custom Tab to discover it has not been removed. In some documents, I have a long list of metadata objects that are not really related to the docume
I have created an Acrobat DC PlugIn which creates a toolbar. The icon for the toolbar initially shows up correctly, but on subsequent mouse clicks of the icon, it turns black. I cannot find any significant documentation on the AVToolBarSetIcon function and am going by one or two samples I have seen. I am not sure what the two images in AVToolBarSetIcon should be. It doesn't seem to matter what the second one is though. The code is shown here: ASPathName pn = ASFileSysCreatePathFromCString( ASGetDefaultFileSys(), settings.logoFilename );PDDoc doc = PDDocOpen( pn, ASGetDefaultFileSys(), NULL, false );AVIcon icon1 = AVIconCreateFromPDF( doc, 0, 24, 24 );AVIcon icon2 = AVIconCreateFromPDF( doc, 1, 24, 24 );AVToolBarSetIcon( mainToolbar, icon1, icon2 );PDDocClose( doc ); Before Clicking: After Clicking:
I'm creating a worksheet meant to help with budgeting, adding up expenses and calculated a percentage based off of a number that is the total of two salary inputs. One of the fields is meant to calculate %50 percent of the total salary. Here's the code I'm using:var Salary_Total = getField("Salary_Total").value;var percentToGet = 0.50;var percent = (percentToGet / 100) * number;event.value = Salary_Total * Percentage; What am I doing wrong here?
I was looking through the Acrobat SDK Plugin Guide and saw the section of "Exporting data from PDF document objects". The section mentions using the "PDDocExportUserProperties" method to retrieve data from a PDF document object. I'm curious as to what kind of user properties are gotten from this method, but I can't find anything about this method other than the page that references the method. What does this method return if anything? Is there an alternative way to getting this PDF document object data? Here is the link to the "Exporting data from PDF document objects" section.https://help.adobe.com/pdfl_sdk/18/PDFL_SDK_HTMLHelp/PDFL_SDK_HTMLHelp/index.html#t=PDFL_MasterBook%2FUnderstanding_Plug-ins%2FExporting_data_from_PDF_document_objects.htm
Hello, I calculated the average text box of 3 fields into one text box to get a 1-5 rating. I will need to be able to use the outcome of that text field number to change the text outcome of another text box to reflect the situations below. 0 to 1 = Unacceptable1.1 to 2 = Below Average2.1 to 3 = Average3.1 to 4 = Above Average4.1 to 5 = Outstanding Can anyone help me please?
Hello, I am an adobe acrobat developer and enthusiast for just about anything that relates to interactive and dynamic pdf forms. I had a serious workflow question for Adobe Acrobat DC. What is the future of Adobe Acrobat Response files after Acrobat Flash Player is discontinued in late 2020? Will acrobat portfolios and response files still be supported after the discontinuation of Adobe Flash Player? I understand portfolios and response files rely on the flash player engine and its components to function as intended. I cannot find any documentation as to how or if this function will be affected. If so, I would love to know as soon as possible to prep my organization for alternative soltions. Thank you for your time. Bryan
Hi.I have written an macro as the following code to get the list of word and the quads of the word in PDF file.But the code doesn't work well.Sub GetPDFWdList() Dim acroApp As Object Dim acroPDDoc As Object Set acroApp = CreateObject("AcroExch.App") Set acroPDDoc = CreateObject("AcroExch.PDDoc") Call Prc_1(acroPDDoc) Call Prc_2(acroPDDoc) aroApp.Hide acroApp.Exit Set acroPDDoc = Nothing Set acroApp = Nothing MsgBox "Done" End Sub Private Sub Prc_1(acroPDDoc As Object) Call GetWdList_EachPDF(acroPDDoc, path, 1) End Sub Private Sub Prc_2(acroPDDoc As Object) Dim fileArr As Variant Dim i As Long fileArr = Array() Call GetFileList(folderPath, fileArr, "pdf", False) For i = LBound(fileArr) To UBound(fileArr) Call GetWdList_EachPDF(acroPDDoc, CStr(fileArr(i)), i + 1) Next End Sub Private Sub GetWdList_EachPDF(acroPDDoc As Object, PDFPath As String, docNum As Integer) Dim jso As Object Dim TotalPage As Long Dim TotalWds As Long Dim
Hi all,I have 3,4 ... pdf documents opened in Adobe Reader.a.pdfb.pdfc.pdfd.pdf .....Let's say that I want to close one of them.Is it possible also just to close tab without killing process?I found this with which I can manipulate pdfs documents.https://opensource.adobe.com/dc-acrobat-sdk-docs/https://www.nuget.org/packages/Adobe.DocumentServices.PDFTools/https://github.com/adobe/PDFTools.NET.SDK.SamplesNowhere I see in it that I can close one or specific pdf file.
I have a script that is causing an error. Everything works except one line. I am trying to insert a page in the document and the document.The linethis.insertPages({nPage:-1, cPath:"C:\Users\xxxxx\Downloads\Documents\Blank Page PDF.PDF"});throws an error about security settings prevent access to this method. How do I run this code in "privleged mode" It is Acrobat DC.{var numWords;try{for (var i = 0; i < this.numPages; i++){numWords = this.getPageNumWords(i);if (numWords < 300) {var PageText = "";for (var j = 0; j < numWords; j++) {var word = this.getPageNthWord(i,j,false);PageText += word;}var strMatches = PageText.match("This Page Intentionally Left Blank");if (strMatches != null) {this.insertPages({nPage:-1, cPath:"C:\Users\xxxxx\Downloads\Documents\Blank Page PDF.PDF"});}}}}catch(e){app.alert("Processing error: "+e)}}
Hi,We're looking at deploying a plugin (targetting both Acrobat Pro and Reader) and we need to convert an AVIcon object to a raster image file (ultimately a PNG file).As far as we can determine, the AVIcon class is purposedly obsfucated and there are no utility functions to convert between AVIcon and other formats. We're following up here to see if we have missed anything.As for alternatives, we'd appreciate if anyone could indicate how to convert a PDF page to a raster image from within Reader. We looked at PDPageDrawContentsToWindowEx() but it will throw. We were unable to find an example on how to this function in plugin and we're not sure we're passing in correct data.Cheers,Nuno
Hi Community, It seems that the export of PDF to txt doesn't launch OCR recognition. When converting the attached document to .txt, no text gets recognized.However converting to DOCX or HTML outputs the recognition text. Please find the script to reproduce in enclosure. Is it expected? Any suggestion to trigger OCR when converting to .txt would be highly appreciated. Thanks & regards,Simon
Dear all,I am trying to combine various PDFs via Acrobat XI Pro into a single PDF file. While at the beginning the process works more or less smoothly it gradually gets more time consuming (consolidating duplicate fonts) the more pages the final PDF file contains (>3000 pages). This leads eventually to the point that integrating a one page PDF file (via "combine files into single PDF" or "insert from file" it does not matter) takes up 1 to 3 hours just to crash at the end completely. The problem occurs with many different PDFs I am trying to combine and not one specific file.Here the technical specifications:Acrobat Pro XI: 11.0.17, Architecture: i386, Build: 11.0.17.9, AGM: 4.28.147, CoolType: 5.11.145, JP2K: 2.0.0.36554MacBook Pro: 2.8 GHz, 8 GB from 2014OS X: El Capitan, 10.11.6Any suggestions would be highly appreciated.Thank you in advanceDJ
Hello,I'd like to automate the process wich transforms all text areas of a PDF file into form fields.I can do this manually with the "Prepare form" button, then let Acrobat automatically detect fields.Step 1 : I create a PDF document from Access VBA containing a lot of text areasStep 2 : VBA should transform the text areas into form fields Any idea ?Thanks.
Hello,I'm looking to create a PDF document with text variables. This could be a document from scratch or a document that is pre-made and updated. My problem is that there are so many platforms and websites trying to sell me drag and drop products or enterprise solutions for document creation and management, that I'm not interested in using. I'm having a hard time understanding what the environment would look like, and the best way to manipulate the document. I've attached a file that has internal data and variables, it's way more complicated than what I want to do, however, it illustrates what I'd like to accomplish. Barring a self-contained PDF, in a nutshell, the functionality I'm looking for would be a text input update to the file (think MadLibs generator, type a verb and it populates the document). It needs to be a simple form with text boxes, dropdowns, etc. that will create a new or populate an existing PDF from input and a database, XML or static data via a PDF form or eve
Hello I have below questions. 1. How can we integration adobe apis in angular application ? 2. How to retrive only image from adobe api Please suggest Thanks
Hi,I am creating a dynamic stamp and I need help. The script is given below: list_lis1 = {"Middle":-1,"Secondary":-1};list_lis2 = {"AA-20":-1,"AA-21":-1;var oJSDlg = {strEdt1:null,strEdt2:null,strlis1:null,strlis2:null,GetListSel:function(oLst){for(var x in oLst){if(oLst[x]>0)return x;}return null;},initialize:function(dialog){var oInit = {x001:this.strEdt1,x002:this.strEdt2,lis1:this.strlis1,lis2:this.strlis2,lis1:list_lis1,lis2:list_lis2,};dialog.load(oInit);},validate:function(dialog){var bRtn = true;var oRslt = dialog.store();return bRtn;},commit:function(dialog){var oRslt = dialog.store();this.strEdt1 = oRslt.x001;this.strEdt2 = oRslt.x002;this.strlis1 = this.GetListSel(oRslt.lis1);this.strlis2 = this.GetListSel(oRslt.lis2);},description:{name:"Default",font:"default",bold:true,elements:[{type:"view",elements:[{type:"view",item_id:"Vew1",width:60,alignment:"align_fill",align_children:"align_row",elements:[{type:"static_text",item_id:"St01",name:"Name",width:115,bold:true,a
Hello everybody! I am trying to solve a problem. I have to develop an interactive PDF where users can click a button and display a number on another page of the same document. And if users click another button, a different number will appear.Does anyone know how I can do that?
Hi,I have an Excel table of data that has columns containing full .pdf file names/locations. I'm trying to insert each file into a master pdf file, and do 2 things:Add a bookmark to the location of the new file in the master file, in order. I have gotten the bookmarks to show up, but they are currently showing up out of order, and/or reversed.Ideally I would like the Bookmarks Navigation Pane to show as the default view, though this is 2nd priority. With adding the bookmarks, I'm getting a "Run-Time error 438:Object doesn't support this property or method" when I get to "n = UBound (BookmarkRoot.Children) +1" or any other reference to "BookmarkRoot.Chldren" I'm new to manipulating PDFs with VBA, so any help is much appreciated! Here is the more relevant code to this section: Dim numPages As Integer &nb
Hello everyone! I am trying to solve a problem: automatic insertion of a signature into a stamp on each sheet of a document.At the moment, I managed to create a dynamic stamp with a signature, refer to it from the code and insert the signature at the specified coordinate:app.addMenuItem({ cName: "Little_stamp", cUser: "Little_stamp", cParent: "Help", nPos: -1, cExec: "myTrustedFunction()", cEnable: "event.rc = (event.target != null);"}); function myTrustedFunction() { for (var p = 0; p < this.numPages; p++) { var annot = this.addAnnot({ page: p, type: "Stamp", author: "Acrobat", name: "myStamp", rect: [175, 40, 205, 60], AP: "#mySig" }); app.trustedFunction(myTrustedFunction);... but unfortunately this method sometimes fails because the coordinate is changing. Therefore, I decided to implement another way: find a specific word, find out its coordinates and step back 20 points from it. Tell me how to do this?
I am creating a form to ask: Have you had any of the following in the past 12 months? (Check all that apply or check here if None [ ]<--named "None Apply" ) checkbox.1 Problem maintaining balance.checkbox.2 Mental health problems.checkbox.3 Shortness of breathcheckbox.4 Chemical Dependencycheckbox.5 Needed emergency carecheckbox.6 Other (Explain: [TextboxOther])My checkbox JS is as follows: #1 var oAll = this.getField("checkbox");#2 var aAll = oAll.getArray();#3#4 //if "None Apply" checkbox is not checked[Off] then checkbox.1-6 remain visible. If checked then hide checkbox.[1-6] if unchecked become visible again.#5 if (event.target.value !== "Off") {#6 //set the check boxes to hidden if none apply;#7 for(var i = 0; i < aAll.length; i++){# 8 this.getField("aAll.").display = display.hidden;#9 console.println(aAll..value);#10 }#11 }#12 else {#13 //set the check boxes to visible if the none box not checked;#14 for(var i = 0; i <
I am using javascript to create an interactive PDF. I have just been doing this for a few weeks so I'm definitely a beginner. I have been successful in collecting and storing data from user form input. Now, I would like to graph results from this data (and ultimately create KPIs) and insert the generated images at predefined locations in the same PDF document - but I am not having any success.1) I haven't been able to find PDF javascript APIs to create basic graphs.2) Also I tried to import external library that creates KPIs into my PDF javascript logic but it didn't allow me to use the 'import' statement. Is what I'm trying to do possible? Thanks
I have been running Acrobat Pro DC for some time now, and just updated per Creative Cloud to Vesion: 2015.016.20045Since doing so, I am unable to utilize shared review functions. When attempting to initiate a shared email review, I cannot even progress to the second step using the "NEXT" button provided... it simply doesn't initiate a thing. In addition, when attemting to initiate a shared review on our network server, I can't get past the first step. I have uninstalled and reinstalled Acrobat, and just applied a patch. Still nothing. This is quite frustrating as the shared review functionality seems to be going in reverse as far as functionality goes... used to work perfectly and saved us time and effort. Not happening at the moment. Can anyone assist?
Hello everyone, the documentation of Acrobat SDK states "The only requirement for using the OLE objects made available by Acrobat DC is to have the product installed on your system".Which Version of Acrobat do I need to use those OLE objects (Acrobat Standard DC or Acrobat Pro DC)?Are there any differences between those two regarding the SDK features?
Does Acrobat Pro 8 work on Mac OS 10.11 ?
I understand that I can edit PDF documents, but I'm having trouble getting Adobe to recognize my hand-written PDF scans. I exported them into WORD and EXCEL and neither are translating the handwriting accurately. Does this make sense?
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.