Expand my Community achievements bar.

com reference c#

Avatar

Level 1

Hi,

is it possible to make a com reference (c#, java or what else) and to work with it?

i just have the LiveCycle Designer ES3.

6 Replies

Avatar

Level 8

You can make a com reference with Acrobat's API but you need Acrobat Pro. Anything else you would use iText.

Kyle

Avatar

Former Community Member

Could you help us out by showing the createobject command to instansiate an instance of Acrobat?

Thanks

Avatar

Level 8

I've only ever needed two documents for Interapplication communication with Acrobat. I can't seam to find them online anymore so I posted them here and here.

Kyle

Avatar

Former Community Member

Thanks Kyle. That's helpful, but I am still not getting the syntax to open a pdf file. Here is what I have:

Dim oAdobe As Object = CreateObject("acroexch.app") 

Try

oAdobe.Show()

Dim oDoc As Object = oAdobe.AVDoc.Open("d:\216combined.pdf")

Dim pageview As Object = oDoc.GetAVPageView

pageview.goto(3)

Catch

oAdobe.CloseAllDocs()

Oadobe.Exit()

End Try


Can you shed some light?

Thanks

Avatar

Former Community Member

Also, I forgot to mention that my task here is to automate setting the security flags to prevent saving and printing the PDFs. I don't see any references to that in the 2 documents you provided. Do you know if that will be possible?

Thanks again.

Avatar

Level 8

Is there a reason why you can't use the Action Wizard in Acrobat?  Plus, I don't think there is a security setting that allows a user to open a PDF but doesn't allow them to save it.

Kyle