Unlock the power of Acrobat SDK through our community.
Actividad reciente
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?
when [Enable Protected Mode at startup] turn offWe have code using AppExit() method to exit Adobe Reader DC 2020 after printing using DDE.Now with Adobe Reader DC 2021, the same AppExit() method does not exit , Adobe Reader DC 2021 application is still opened.how should we exit the application using DDE? Much appreciated!
Hi all, I was trying to run the OCR in Acrobat(Acrobat API) using node js. I have successfully run the OCR using node js with acrobat API. But I was trying convert the code executable app using electron & packager library from node js I got belo error. I have created the credential and replace in the path ,but got the same above error. Please share your thoughts..... Thanks
I'm working with C# and adobe acrobat SDK. When the program throws an error due to the pdf already being compressed I want to move the pdf.However, C# complains that the file is being used by another process and I know it has to do with the SDK and not another program. After some debugging I found out that compressPDFOperation.Execute is the culprit.How can I close it so that I can move the file? try { // Initial setup, create credentials instance. Console.WriteLine(".json: " + Directory.GetCurrentDirectory() + "/pdftools-api-credentials.json"); Credentials credentials = Credentials.ServiceAccountCredentialsBuilder() .FromFile(Directory.GetCurrentDirectory() + "/pdftools-api- credentials.json").Build(); // Create an ExecutionContext using credentials and create a new operation instance. ExecutionContext executionContext = ExecutionContext.Create(credentials); CompressPDFOperation com
When I script the OCRing of an image PDF, it creates bounded boxes and can't find text unless the cursor is in that particular bounded box.However, if I manually (Enhance Scans > Recognize Text > In this file > Settings > Output = Editable Text and Images, OK) OCR the file, the findtext command works.Document is already open when I run this VBA script:Set aApp = CreateObject("AcroExch.App")Set aAVDoc = aApp.GetActiveDoc() Set aPageView = aAVDoc.GetAVPageView() Set aPdDoc = aAVDoc.GetPDDoc() pageCount = aPdDoc.GetNumPages ' Get PDF OCR'd For curPage = 0 To pageCount - 1 aPageView.GoTo curPage aApp.MenuItemExecute ("TouchUp:EditDocument") Next curPage rtgFound = aAVDoc.FindText("accordingly", 0, 0, 1) rtgFound is False. If I manually OCR the document and run this code:Set aApp = CreateObject("AcroExch.App") Set aAVDoc = aApp.GetActiveDoc() Set aPageView = aAVDoc.GetAVPageView() Set aPdDoc = aAVDoc.GetPDDoc() pageCo
Hey all, I'm working on a project where I need the choice on a dropdown menu to reveal and hide certain fields. I wrote a code that works just fine for text fields but will not work with an image field. Code below: switch(event.value) { case "Option A":this.getField("Text 1").display=display.visible;this.getField("Text 2").display=display.hidden;this.getField("Image 1").display=display.visible;this.getField("Image 2").display=display.hidden;break; case "Option B":this.getField("Text 1").display=display.hidden;this.getField("Text 2").display=display.visible;this.getField("Image 1").display=display.hidden;this.getField("Image 2").display=display.visible;break; } With this code applied to my Dropdown field my Text fields swap just fine, but the Images remain visible no matter the dropdown option chosen. Another thing I noticed is that whenever I rename an Image field it becomes a Button automatically. I thought that might be the issue, but I adjusted the code
Hi I am using Adobe Acrobat standard 7.0 version. I am not able to insert page number in the option "Header and 'Footer" . error message prompted as "Bad Parameter". please help
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.