The code below works perfect for me.
Dim AcroApp As New AcroApp
Dim theForma As New AcroAVDoc
Dim theform As AcroPDDoc
Dim jso As Object
Dim text1, text2 As String
theForma.Open "D:\Prih.pdf", ""
Set theform = theForma.GetPDDoc
Set jso = theform.GetJSObject
the code works fine. But I have a problem:
When I use the code on a machine, where Adobe Acrobat is installed, the code works (uses acrobat.tlb)
When I use the code on a machine, where only Adobe Reader is installed, the code stops at "theForma.Open..." whit error 429 "ActiveX-Error" (uses the Reader-dll)
What can I do to run the code on a computer whithout Acrobat?
Phil / Andy
This is not an API in Reader. You do need to buy Acrobat (or one of Adobe's LiveCycle workflow products if it is a server).
It's not a server.
I want to fill the formfields with data generated in Excel. The vba code runs in Excel too. I have many customers, so each customers would have to buy Acrobat
Is there something like a runtime library, or a SDK (which I buy as developer) with royalty free for users?
Sorry, I think Adobe's business plan (and the reason the API exists) would be to sell lots of copies of Acrobat. So far as I can see.
But if it were an Acroform you could make an FDF and open the FDF; Reader would see it was an FDF, locate the FDF and fill it. Don't know if there is any equivalent for XFA forms.
Thanks for your information.
For Acroform I use the QuickPDF Library which works fine even no Acrobat is on the computer. I want to use LiveCycle Designer to create the forms and save them as XFA-PDF, to keep the dynamic. I could flaten the files with the pdftk tool (drop_xfa). But then I loose the dynamic.
So, filling XFA fields works with code on local machine, but only if Acrobat exists... That is really too bad.
Hi,can I import a xml file to an acrobat ?