I already thought about using Word, but unfortunately it was requested that only Acrobat needs be installed on the computer.
Main Topics
Browse All Topicsso far I've found this undocumented function to convert one tif to a pdf ...
my problem is that need to put more then one tif in a pdf ... any pointers would be greatly appreciated as automation is pretty new to me ... thanks
--------------------------
Private Sub Tif2PDF(filename As String)
Dim AcroApp As Object
Dim AVDoc As Object
Dim PDDoc As Object
Dim IsSuccess As Boolean
Set AcroApp = CreateObject("AcroExch.App
Set AVDoc = CreateObject("AcroExch.AVD
Call AVDoc.Open(filename, "")
Set AVDoc = AcroApp.GetActiveDoc
If AVDoc.IsValid Then
Set PDDoc = AVDoc.GetPDDoc
' Fill in pdf properties.
PDDoc.SetInfo "Title", "test" 'txtDocTitle.Text
PDDoc.SetInfo "Author", "test" 'txtDocAuthor.Text
PDDoc.SetInfo "Subject", "test" 'cboDocType.Text
PDDoc.SetInfo "Keywords", "test" ' txtDocKeyword.Text
If PDDoc.Save(1 Or 4 Or 32, App.Path & "\docfile.pdf") <> True Then
MsgBox "Failed to save " & filename
End If
PDDoc.Close
End If
'Close the PDF
AVDoc.Close True
AcroApp.Exit
'Cleanup
Set PDDoc = Nothing
Set AVDoc = Nothing
Set AcroApp = Nothing
End Sub
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
i was able to figure it out myself...
.........
'open a template pdf, with one empty page
Set pdDoc = CreateObject("AcroExch.PDD
pdDoc.Open template
Set AVDoc = CreateObject("AcroExch.AVD
'Setzen der Dokumenteigenschaften
pdDoc.SetInfo "Title", Now
pdDoc.SetInfo "Author", ""
pdDoc.SetInfo "Subject", curBarcodeNr
pdDoc.SetInfo "Keywords", curBarcodeNr
'insert images ( call function as often as needed)
If Not insertTif(basePath & .Fields("Volume2")) Then
MsgBox "error occurred while inserting the file"
End If
.............
'save the document
pdDoc.DeletePages 0, 0 'delete first, empty page
'Save PDF-Document
If pdDoc.Save(1 Or 4 Or 32, PDF) <> True Then
Print #2, "unable to save file"
Else
Print #2, "file saved"
pdDoc.Close
End If
Set AVDoc = Nothing
....................
Private Function insertTif(file As String) As Boolean
Dim tmp_PDDoc As Acrobat.CAcroPDDoc
Call AVDoc.Open(file, "")
Set AVDoc = AcroApp.GetActiveDoc
If AVDoc.IsValid Then
Set tmp_PDDoc = AVDoc.GetPDDoc
pdDoc.InsertPages 0, tmp_PDDoc, 0, 1, False
insertTif = True
Else
'Fehler beim Einfügen
insertTif = False
End If
'Close the PDF
AVDoc.Close True
Set tmp_PDDoc = Nothing
End Function
Business Accounts
Answer for Membership
by: ryancysPosted on 2002-07-03 at 00:30:20ID: 7126231
Some info that generate PDF using Word:
lication.8 ")
tOut
e.com/visu albasic/Q_ 20318802.h tml
Dim msWord As Word.Application
Set msWord = GetObject(Class:="Word.App
msWord.Visible = False
msWord.ActivePrinter = "Acrobat PDFWriter"
msWord.Documents.Open "c:\temp\spec.doc"
msWord.ActiveDocument.Prin
source: http://www.experts-exchang