|
-
Jan 2nd, 2006, 03:09 PM
#1
Thread Starter
New Member
Filling in PDF using Acrobat SDK
Please, I have searched through 13 pages of forum results and have not found an answer to what I believe is probably a simple question.
I have blank forms in .pdf format that I would like to fill out with data from my VBA application, then print the forms. I have Acrobat 7.0 and the Acrobat 7.0 SDK installed.
I have searched the SDK documentation and the closest example I have found is this simple code to open a JavaScript console:
VB Code:
Dim recSet As Recordset
Dim AcrobatObj As Acrobat.CAcroApp
Dim AcrobatDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Set AcrobatObj = CreateObject("AcroExch.App")
Set AcrobatDoc = CreateObject("AcroExch.PDDoc")
If AcrobatDoc.Open("U:\Templates\Sample.pdf") Then
Set jso = AcrobatDoc.GetJSObject
jso.console.Show
jso.console.Clear
jso.console.println ("Hello, Acrobat!")
AcrobatApp.Show
End If
DoEvents
Set AcrobatObj = Nothing
Set AcrobatDoc = Nothing
Exit Sub
This works; however I don't think I need to use the console to accomplish what I want. Can someone tell me what the syntax would be to move to a specific field (or bookmark?) within the PDF and insert text? Also the syntax for sending the document to the default printer would be helpful.
If anyone can direct me I would really appreciate it, as I have spent hours (weeks, really!) searching for the answers and I'm lost. Thanks!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|