This is a sample code that shows how to scan documents in adobe and save them from a VB application.
VB Code:
  1. Sub ScanFile()
  2.   Dim adobe As CAcroApp
  3.   Dim ok As Integer
  4.   Dim pdDoc As CAcroPDDoc
  5.   Dim AvDoc As CAcroAVDoc
  6.   Dim pdffile As String
  7.  
  8.   Set adobe = CreateObject("AcroExch.app")
  9.   'Set AvDoc = CreateObject("AcroExch.avdoc")
  10.   pdffile = "C:\temp.pdf"
  11.  
  12.   ok = adobe.MenuItemExecute("Scan")
  13.   Set AvDoc = adobe.GetActiveDoc
  14.  
  15.   If AvDoc.IsValid Then
  16.     Set pdDoc = AvDoc.GetPDDoc
  17.    
  18.     If pdDoc.Save(1, pdffile) <> True Then
  19.       MsgBox ("Failed to save " & pdffile)
  20.     End If
  21.    
  22.     pdDoc.Close
  23.   Else
  24.     MsgBox ("Invalid file")
  25.   End If
  26.  
  27.   AvDoc.Close (0)
  28.   adobe.Exit
  29. End Sub