|
-
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!!!
-
Jan 2nd, 2006, 05:20 PM
#2
Thread Starter
New Member
Re: Filling in PDF using Acrobat SDK
By they way, I've found a lot of code that builds PDF files, i.e. inserting fields and such, but nothing that fills in the values of fields that already exist.
I've looked at CutePDF and PDF Creator, but they don't do what I'm looking for.
The Acrobat SDK samples include a piece of code to fill out a form using C#, but it is fairly different from VBA, so it doesn't help me much.
Please help as I'm at the end of my rope with this one... Thanks.
-
Feb 28th, 2007, 09:02 AM
#3
New Member
Re: Filling in PDF using Acrobat SDK
I have the same cunundrum. filling in a pdf from VB6 app.
did you have any luck in working out the VB code for this?
-
Feb 28th, 2007, 11:13 AM
#4
Re: Filling in PDF using Acrobat SDK
Why is this in the webtech forum? And why was it revived after a year?
Binary guy: don't revive threads this old, especially if they don't contain an answer.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 28th, 2007, 11:20 AM
#5
New Member
Re: Filling in PDF using Acrobat SDK
Then i may as well post it as anew thread.
I think my quest stands valid.
-
Feb 28th, 2007, 11:27 AM
#6
Re: Filling in PDF using Acrobat SDK
... and still in the wrong forum, so yes, create a new thread, but do it in the proper forum.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|