Results 1 to 6 of 6

Thread: Filling in PDF using Acrobat SDK

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    15

    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:
    1. Dim recSet As Recordset
    2.     Dim AcrobatObj As Acrobat.CAcroApp
    3.     Dim AcrobatDoc As Acrobat.CAcroPDDoc
    4.     Dim jso As Object
    5.  
    6.     Set AcrobatObj = CreateObject("AcroExch.App")
    7.     Set AcrobatDoc = CreateObject("AcroExch.PDDoc")
    8.     If AcrobatDoc.Open("U:\Templates\Sample.pdf") Then
    9.         Set jso = AcrobatDoc.GetJSObject
    10.         jso.console.Show
    11.         jso.console.Clear
    12.         jso.console.println ("Hello, Acrobat!")
    13.         AcrobatApp.Show
    14.     End If
    15.    
    16.     DoEvents
    17.    
    18.     Set AcrobatObj = Nothing
    19.     Set AcrobatDoc = Nothing
    20.     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!!!

  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    15

    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.

  3. #3
    New Member
    Join Date
    Feb 2007
    Posts
    2

    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?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  5. #5
    New Member
    Join Date
    Feb 2007
    Posts
    2

    Re: Filling in PDF using Acrobat SDK

    Then i may as well post it as anew thread.

    I think my quest stands valid.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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
  •  



Click Here to Expand Forum to Full Width