Quantcast
Channel: Adobe Community : All Content - Acrobat SDK
Viewing all 2571 articles
Browse latest View live

check acrobat reader version

$
0
0

Hello.

 

Do not speak English well.

I'm sorry.

 

Questions are two.

 

One.

- How to check version information for installed acrobat reader on my PC?

 

Two.

- Check the latest version of Acrobat reader installed on my PC?

 

The available development languages

C++ or Delphi(pascal) or C# or Etc

 

Please help.

Thank.


Add Javascript action to bookmark

$
0
0

I'd like to add an action to a bookmark to open a link in a new window.   I have tried the following with no success  

 

Set AVDoc = CreateObject("AcroExch.AVDoc")

 

        If AVDoc.Open(myFolder & myPDFFile, "") Then

            AVDoc.BringToFront

            'Set the PDDoc object.

            Set PDDoc = AVDoc.GetPDDoc

  'Set the JS Object - Java Script Object.

            Set JSO = PDDoc.GetJSObject

            Set BMR = JSO.BookMarkROot

            vBookmark = BMR.Children

        End If

 

         For k = UBound(vBookmark) To 0 Step -1
            If vBookmark(k).Name Like "Hyp*" Then
                'What is URL of word doc
                'This determines the URL for the bookmark

                myAddress = GetHyperlinkAddress(myDoc, vBookmark(k).Name, LinkWithinDoc)

 

                'This selects the bookmark 
                vBookmark(k).Execute

               'I want to add the javascript to this bookmark.

 

                myAction = "app.launchurl('" & myAddress & "', True)"

 

                'This part doesn't work

               vBookmark(k).setAction myAction

            End If

 

         Next

 

I'd appreciate any assistance that you can provide.

 

Thanks,
Barb Reinhardt

 

Create a PDF and Word with Acrobat SDK in C#

$
0
0

Can we able to create a PDF with flash video as well as Word document (with Acrobat Add-In ) through Acrobat SDK programatically in C# windows application?

Acrobat DC and Reader

$
0
0

I have Acrobat DC and Reader both installed. I have one application that requires you to use Reader and IE 9,10 or 11.  No other browser is supported. When working in this application and trying to enter work into IE I get the following error regularly:

 

 

  Application Timestamp:        00003039

  Fault Module Name:        AcroPDFImpl.dll_unloaded

  Fault Module Version:        0.0.0.0

  Fault Module Timestamp:        55960ad6

  Exception Code:        c0000005

  Exception Offset:        0bfe0c9b

  OS Version:        6.1.7601.2.1.0.256.48

  Locale ID:        1033

  Additional Information 1:        0a9e

  Additional Information 2:        0a9e372d3b4ad19135b953a78882e789

  Additional Information 3:        0a9e

  Additional Information 4:        0a9e372d3b4ad19135b953a78882e789

 

The crash occurs when, in an IE web browser control, a PDF link is clicked on, the Adobe Gray Screen occurs, and the Back button is clicked to exit from the Adobe Gray Screen back to a previous HTML page. The Adobe Gray Screen occurs went it appears the PDF has not completely loaded. If 2 instances of AcroRd32.exe are the typical load behavior, then the Gray Screen will occur when none or 1 instance only have loaded. The crash occurs when attempting to exit the incomplete loading of the PDF. The faulting module listed above is AcroPDFImple.dll_unloaded.

Acrobat and Adobe Reader are both on the machine. Reader DC was attempted with worse results so it was uninstalled and Reader 11 was installed.

 

Can you provide any possible resolution?

Preflight droplet process returns too early – before it's done

$
0
0

I'm calling an Acrobat preflight DROPLET from program that I'm writing, and I need to know when the files are ready, that is when the preflight fixups are done.

 

I need to know this in order to go on with some other file system stuff in my program, that needs to be done after the preflight fixups.

 

I guess the droplet just tells Acrobat what to do, and then exits. The Droplet process stays up for a while but exits before the work is done.

 

There is an question from 2009 asking the exact same thing, but no answer.  Preflight droplet returns too early

Since it's in a locked section of the forum I venture to ask the same question now, six years later.

 

Checking the modified dates of all files does not seem to work since a preflight obviously does not alter files that are not in need of being altered.

 

I'm on windows, and I don't know whether this is a platform dependent problem.

 

What should I do?

 

Thanks,

Andreas

Adobe DC display data from Sql Server using Java Script

$
0
0

Hi,   I'm a asp.net developer and normally use MS Sql Server back ends.  Aside from he basic downloads,  this is my first shot at using active PDF's.

 

I have some labels i want to populate with data and subsequently print   using a PDF form template. I have the PDF form Template already.  It's my understanding that LifeCycle  & Forms Central  have been depreciated and the way to go is with  Adobe Acrobat DC.  I've been google-ing  the heck out of this and I am getting slammed with so much information especially from Adobe it's hard to sift through and determine what I need to use.    I'm Seeing FDF, XML, XFDF ,FDA  and a whole assortment of acronyms.

My Question is:  What is the most current product Adobe has to use to populate the fields in my form with data from my SQL server Database.

 

I'm not a JavaScript programmer but am willing to learn it if that's what I need to populate the form. 

 

I have subscribed to Adobe DC and have Acrobat DC  JS API developers guide and API reference.  Is this what I should be using?

Accessing acrobat PDF variables

$
0
0

I'm trying to find out if there is a way to pass variable values (specifically, the last page viewed) from an open PDF file to a web page or a Captivate 8 project.

 

Use case: some compliance material in a PDF must be reviewed and then verify that user viewed to the last page and send that value to our LMS launch page or to a Captivate 8 project that launched the PDF.

 

Any help or insight would be greatly appreciated. Thanks.

Populate PDF from Sql Server DB

$
0
0

It's my understanding that Life Cycle and Forms Central have been depreciated.

I have a PDF form which is a label template that I want to populate the fields with data I pull from a SQL server Data Base..

I understand that this can be done using Java Script. I am by trade an ASP.net developer.  I have found so many things that apply

from google and adobe that I find my self very confused on what to use to do this. I'm seeing FDF , XFDF, PDF/A, PDF/X, PDF/E and a host of other acronyms and environments.

My Question is what is the most current application that I can use.  I have subscribed to ADOBE Acrobat DC.  Is DC the latest environment to use?

 

Thanks

 

 


SDK com VB6

$
0
0

Olá,

preciso saber o que é necessário para criar relatórios em pdf com VB6.

Obrigado.

How to do "OCR Text Recognition" by plugin?

$
0
0
Acrobat 8 has the functionality "OCR Text Recognition". Can this be done programmatically by plug-in without people's interaction?
Some one suggested it can be done by AVCommands functions. The other said "Paper Capture" can do the job.
Could someone tell how it works? Could you please give a simple function name?


Thanks in advance!

 

 

 

Acrobat DC - HilightSel

$
0
0

Hello,

 

With previous Acrobat Pro, I use a app.menuItemExecute("Annots:TextEditMenu:HighlightSel") to hilight user selected.

In Acrobat Pro DC, menuItemExecute return true, but there is a PopUp message in Acrobat saying "Tentative d'utilisation d'une méthode qui n'a pas été mise en oeuvre".

Is there another way to hilight selected text? Or this menu name has changed? Anything to do before this call with Acrobat DC?

Thanks in advance.

Error Splitting Pdf - Error 1: A file I/O error has occurred

$
0
0

Hello,

 

Each time I try to split a pdf into a file on my hard drive, I receive the following error.


_______________________________________________________

AutoSplit Plug-in Error Log
Software build date: Feb 12 2013, Adobe Acrobat version: 11.13
Acrobat viewer host application: Adobe Acrobat

 

Error 1: A file I/O error has occurred.

________________________________________________________

 

Each bookmark is approximately 13 pages. Every error associated with I/O that I find in forums online have to do with saving, or reading the pdf, not splitting. I did notice that when the splitting starts, It always starts with 19 pages into document out of...


I have split other pdf's numerous times without error. No settings have been changed that I'm aware of and I have not downloaded any updates.

 

Please help!

 

Chrissy

Two questions on AFExecuteThisScript

$
0
0

A plug-in may use AFExecuteThisScript to execute JavaScript. My initial questions are

 

1. Is this considered privileged (like a console event) in all recent versions (9+)? Or is it the same privilege level as embedded JavaScript?

 

2. Is there a simple way to get and pass a document object to AFExecuteThisJavaScript, given an AVDoc in the plug-in? I have thought of iterating through app.ActiveDocs looking for a match on docID; this depends on being privileged, though.

How to run preflight from dotNet (VB or C#) using IAC and JSObject

$
0
0

Is it possible to run an Acrobat preflight from a .net language? How?

 

Until recently I used "droplets" (preflights made into executable files) and called those directly from my dotNet program, but Acrobat is no longer busy waiting for them to complete (after the October 2015 update), so the way I used to put my own program code "on hold" (paus) until the droplets were done does not work any more.

 

I got a suggestion in the other Adobe Acrobat Forum ( How do I make program code wait until an Acrobat snippet is done with its work?) ) to call preflight profiles instead of droplets, since such calls would be handled synchronously (my code would automatically wait until the call to the Preflight returned), but I'm having a hard time trying to figure out how to do it.

 

According to the JavaScript™ for Acrobat® API Reference (Adobe® Acrobat® DC SDK 2015) I would need a PreflightProfile object as parameter for the "Doc.Preflight()" call.

 

In javascript, this is the way to get a preflight profile:

var oProfile = Preflight.getProfileByName("Magazine Ads")

 

But I can't seem to get a proper reference to the Profile object from VB.Net, (using JSO / JSObject, as described in "Programming Acrobat JavaScript Using Visual Basic").

 

I just get errors about "Invalid arguments".

 

Imports Acrobat
Module Module1    Sub Main()        Dim gApp As Acrobat.CAcroApp        Dim gPDDoc As Acrobat.CAcroPDDoc        Dim jso As Object        gApp = CreateObject("AcroExch.App")        gPDDoc = CreateObject("AcroExch.PDDoc")        If gPDDoc.Open("c:\adobe.pdf") Then            jso = gPDDoc.GetJSObject            jso.console.Show()            jso.console.Clear()            jso.console.println("Hello, before!")            jso.console.println(jso.Preflight.getNumProfiles())            jso.console.println("Hello, after!")            gApp.Show()        End If    End Sub
End Module

This is the output I get in the Javascript console:

Hello, before!

InvalidArgsError: Invalid arguments.

Doc.preflight:0:

Hello, after!

 

And this is the error in Visual Studio:

System.Runtime.InteropServices.COMException was unhandled  ErrorCode=1001  HResult=1001  Message=InvalidArgsError: Invalid arguments.  Source=Acrobat JavaScript  StackTrace:       at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)       at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)       at VBAcrobatJavascript.Module1.Main() in C:\Dev\Combinations SVN\trunk\Customers\Bording AB\ConsoleApplication3\ConsoleApplication3\Module1.vb:line 16       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)       at System.Threading.ThreadHelper.ThreadStart()  InnerException:

 

 

Just trying to get a reference to the Preflight object results in the same error

Doc.preflight:0:

 

My guess is that in Acrobat javascript, there is no Preflight object available on the Document object... (it's on the same to plevel as Document) but Document is always the root object when dealing with JSObject.

 

So ... how should I go on to start a preflight from an external application?

SDK function FindText doesn't work from Acrobat X

$
0
0

I have written this question more than one time in this forum, but Adobe developers do not reply.

See the object. Other details it is possible to find in the following discussions:

http://forums.adobe.com/thread/826756

http://forums.adobe.com/message/3762837

https://forums.adobe.com/thread/1032471

https://forums.adobe.com/message/6080063

https://forums.adobe.com/message/4646354

https://forums.adobe.com/message/6531764

If Adobe developers want to solve this problem, I am available for any trial or details (also source code that it works with Acrobat 9 and it doesn't work from Acrobat X).

Regards


Change Acrobat DC to Acrobat 9

$
0
0

Hi I get Acrobat DC from I Cloud, but simply don't like it, I want to change to Acrobat 9 or same, but can't find in my I Cloud, how do i Get it ..?

detailed information about Action Wizard generated XML scripts

$
0
0

Reviewing scripts I find redundant information. I need to get a dictionary that defines the tags that are set in the scripts.

Thanks

Excel1star

I do not know how to use PDDrawPageOrCosObjectToBuffer () method in the Mac environment.

$
0
0

Use the PDDrawPageOrCosObjectToBuffer () method of Acrobat DC SDK in Mac environment,

I want to get a screen shot image of the PDF in the Bitmap.

 

A description of PDDrawPageOrCosObjectToBuffer () in Acrobat DC SDK API References, but I do not understand how to use the method.

Please tell me this usage.

 

If there is a sample code using PDDrawPageOrCosObjectToBuffer (), I'm happy.

VBA password protect merged PDF document

$
0
0

Hello,

 

I have spent quite a lot of time trying to work my questions out, and have searched the web as best I could for an answer, but alas I am stuck and hope someone here can help me

 

I am fairly competent around VBA and for the first time attempted to communicate with another application. This application is Adobe and I wanted to write some code that merged multiple PDFs into one document. I asked this question on a VBA forum and got no replies, so I thought I best to ask here where perhaps people are more familiar with Adobe Acrobat.

 

My two questions are the following

 

1.) When you specify the dimensions why is it Acrobat.CAcroApp and Acrobat.CAcroPDDoc? I tried it without the 'C' and it works fine, but all the code I saw on the net set the dimensions this way. I read the Adobe literature and it seems to be something to do Microsoft Visual C++. I have not been formally trained in computer science so there are many gaps in my knowledge. Could some please explain in layman terms what this is about?

 

2.) Adding a password to the final merged document? I dont know how to do this. I thought there would be a security or password property of the PDDoc object, but there isn't. I have seen sample code in Javascript (which I dont understand) which seems to add passwords to recently formed PDF documents. But I can't find or see anyway to do it using VBA/Adobe. Can anyone advise? Is it even possible to do this in VBA?

 

Any help would be much appreciated!

 

Please see below my code (I know its quite crude but I am keeping it simple whilst I learn):


Sub pdftest()

 

 

Dim AcroApp As Acrobat.CAcroApp

 

 

Dim Part1Document As Acrobat.CAcroPDDoc

Dim Part2Document As Acrobat.CAcroPDDoc

Dim Part3Document As Acrobat.CAcroPDDoc

Dim Part4Document As Acrobat.CAcroPDDoc

Dim Part5Document As Acrobat.CAcroPDDoc

Dim Part6Document As Acrobat.CAcroPDDoc

Dim Part7Document As Acrobat.CAcroPDDoc

 

 

Dim numpages As Integer

 

 

Set AcroApp = CreateObject("AcroExch.App")

 

 

Set Part1Document = CreateObject("AcroExch.PDDoc")

Set Part2Document = CreateObject("AcroExch.PDDoc")

Set Part3Document = CreateObject("AcroExch.PDDoc")

Set Part4Document = CreateObject("AcroExch.PDDoc")

Set Part5Document = CreateObject("AcroExch.PDDoc")

Set Part6Document = CreateObject("AcroExch.PDDoc")

Set Part7Document = CreateObject("AcroExch.PDDoc")

 

 

Part1Document.Open ("G:\Clients\weekly\1.pdf")

Part2Document.Open ("G:\Clients\weekly\2.pdf")

Part3Document.Open ("G:\Clients\weekly\3.pdf")

Part4Document.Open ("G:\Clients\weekly\4.pdf")

Part5Document.Open ("G:\Clients\weekly\5.pdf")

Part6Document.Open ("G:\Clients\weekly\6.pdf")

Part7Document.Open ("G:\Clients\weekly\7.pdf")

 

 

numpages = Part1Document.GetNumPages

 

 

If Part1Document.InsertPages(numpages - 1, Part2Document, 0, Part2Document.GetNumPages(), True) = False Then

  MsgBox ("Error")

End If

 

 

numpages = Part1Document.GetNumPages

 

 

 

 

If Part1Document.InsertPages(numpages - 1, Part3Document, 0, Part3Document.GetNumPages(), True) = False Then

  MsgBox ("Error")

End If

 

 

numpages = Part1Document.GetNumPages

 

 

 

 

If Part1Document.InsertPages(numpages - 1, Part4Document, 0, Part4Document.GetNumPages(), True) = False Then

  MsgBox ("Error")

End If

 

 

numpages = Part1Document.GetNumPages

 

 

 

 

If Part1Document.InsertPages(numpages - 1, Part5Document, 0, Part5Document.GetNumPages(), True) = False Then

  MsgBox ("Error")

End If

 

 

numpages = Part1Document.GetNumPages

 

 

 

 

If Part1Document.InsertPages(numpages - 1, Part6Document, 0, Part6Document.GetNumPages(), True) = False Then

  MsgBox ("Error")

End If

 

 

numpages = Part1Document.GetNumPages

 

 

 

 

If Part1Document.InsertPages(numpages - 1, Part7Document, 0, Part7Document.GetNumPages(), True) = False Then

  MsgBox ("Error")

End If

 

 

numpages = Part1Document.GetNumPages

 

 

 

 

 

 

If Part1Document.Save(PDSaveFull, "G:\Clients\weekly\WeeklyTest.pdf") = True Then

  MsgBox ("This has been saved")

End If

 

 

 

 

 

 

Debug.Print numpages

 

 

 

 

End Sub

Extracting Table Contents

$
0
0

Our Team have developed a PDF| parser , to extract text and text within tables in the PDF. With the help of Adobe PDF specification, we developed the parser,but few have few issues.

One among the issue is Extracting Table contents.We applied our logic but we have few issues.If the PDF have logical structure , we extracted the table's contents to a good accuracy and it was easier.But the logical structure is not present in all PDF's and we are facing issues while extracting the content within the tables.Can anyone shed light on this issue ? Is there any different approach to extract table's content?

 

PS:There are lot of PDF libraries(pdfbox,itext..) but still we designed our own PDF parser,as per the directions of senior folks.

Viewing all 2571 articles
Browse latest View live