Hello,
All what you have to do is to print all these files to the PDF Printer so you will get pdf files.
You can find sample code on printing Word and Excel documents using the Word and Excel objects of Microsoft (ie, creating an instance of Word, opening a Word document and then printing it using the Printout method of the Word object) in our technical notes available at:
http://www.amyuni.com/en/support/technotes.html
I will include here another method of generating pdf files from inside your application by using the BatchConvert() menthod of CDintfEx.
The below code will convert a bunch of html documents in a given folder to pdf, the pdf files name will be similar to the original files name.
Private Sub Command1_Click()
Dim pdf As New CDIntfEx.CDIntfEx
pdf.DriverInit PrinterName 'The printer should be installed on the system
pdf.EnablePrinter LicenseTo, ActivationCode
pdf.DefaultFileName = "C:\Temp\samples\BatchConvert.pdf"
' Set File options.
pdf.FileNameOptionsEx = NoPrompt + ConfirmOverwrite 'NoPrompt = 1, ConfirmOverwrite = 4096
pdf.BatchConvert "c:\Temp\samples\*.html"
' Reset 0ptions to zero
pdf.FileNameOptions = 0
End Sub
For further details about the use of the above functions please check the Developers' manual "Common Driver Interface 210.pdf" that you received with the PDF Converter.
Hope this helps.