acrobat-sdk


Acrobat JavaScript - convert JavaScript page links to “real links”

筅森魡賤 提交于 2019-12-25 06:55:02
问题 The situation: I have ~1,000,000 PDF files. I am using Acrobat JavsScript to search for certain keywords in each of the PDFs, and then give the keyword a link by setAction("this.pageNum = n") . The pageNum value, n, is generated by my script, too. The result is that the user can go to page number n directly by clicking the link. The problem: I do not want the links to trigger JavaScript actions. Instead, I want to them to be "real links" . Each of the "real link" should point to the same page

How to associate search catalog file (.pdx) with PDF document

半腔热情 提交于 2019-12-25 03:22:55
问题 Using a .NET application, I am trying to create a PDF "table of contents" that references other files, like one would distribute on a DVD etc. For this purpose, I need a search index and catalog, so full-text search will work across documents. I have been able to automate the construction of the index by copying an "old" .pdx file (the directory structure is always the same) and then calling JavaScript from C#: var js = $@"catalog.getIndex(""{pdxFilePath}"").build('alert(""Hello"")', true)";

Setting outASPathNames for Acrobat Dialogue return value

爷,独闯天下 提交于 2019-12-24 00:28:50
问题 I am writing a plug-in for Adobe Acrobat and having some issues I am setting my dialogues implementation of AVAppOpenDialog variable *outASPathNames in the code at the bottom. It says in the method that this variable is a ASPathName** Here is how I am setting it. Even though the file is called file.jpg it sometimes shows different names like A9R5D8F.tmp or just not work. I suspect I am not setting the variable correctly, but black box testing is very hard when you don't get told what is wrong

C# to read XFA form data

旧巷老猫 提交于 2019-12-22 10:58:13
问题 I am trying to programmatically read the field values from a Livecycle created form. I tried opening the document using the Acrobat COM component and it seemed to work and with some reflection I managed to get the actual field names, but the value for each field is the hard part, as it seems. Furthermore, I know believe that I actually need to use a different approach to extract the values, since it is an XFA form PDF. (Please don't tell me to look into the examples provided in the Adobe PDF

How to convert PDF to Word using Acrobat SDK? [closed]

谁说胖子不能爱 提交于 2019-12-17 19:28:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . My .Net application needs to convert a PDF document to Word format programmatically. I evaluated several products and found Acrobat X Pro, which gives a save as option where we can save the document in Word/Excel format. I tried to use Acrobat SDK but couldn't find proper documentation from where to start. I

Adding page numbers to pdf through VBA and Acrobat IAC

风流意气都作罢 提交于 2019-12-13 12:23:15
问题 I am trying to do the following thing from Excel vba: Export certain worksheets to pdf Take an existing pdf document and insert it in the newly generated pdf at a specific place (not necessarily at the end or at the beginning) Number the pages of the merged pdf, omitting two title pages I already figured out the first step. For the second and third step, I have Adobe Acrobat XI Pro at my disposal. Since I want to do this in one go from vba, I have downloaded the Acrobat SDK. From some quick

Trying to flatten PDF using flattenPages() but nothing happens

≯℡__Kan透↙ 提交于 2019-12-11 04:47:44
问题 I'm trying to call the Acrobat Javascript API from VBA to flatten all annotations in a document, using the following code: Sub flattenPDF() Dim AcroApp As Acrobat.AcroApp Dim AcroDoc As Acrobat.AcroPDDoc Dim jso As Object Dim path As String path = "C:\Users\userID\Desktop\thisfile.pdf" Set AcroApp = CreateObject("AcroExch.App") Set AcroDoc = CreateObject("AcroExch.PDDoc") AcroDoc.Open path Set jso = AcroDoc.GetJSObject jso.flattenPages AcroDoc.Save PDSaveFull, path AcroDoc.Close AcroApp.Exit

Adding page numbers to pdf through VBA and Acrobat IAC

流过昼夜 提交于 2019-12-04 21:32:44
I am trying to do the following thing from Excel vba: Export certain worksheets to pdf Take an existing pdf document and insert it in the newly generated pdf at a specific place (not necessarily at the end or at the beginning) Number the pages of the merged pdf, omitting two title pages I already figured out the first step. For the second and third step, I have Adobe Acrobat XI Pro at my disposal. Since I want to do this in one go from vba, I have downloaded the Acrobat SDK. From some quick Googling, I think I should be able to figure out the second step now, using the IAC, but the third step

工具导航Map